Function: vhdl-template-clocked-wait
vhdl-template-clocked-wait is an interactive and byte-compiled
function defined in vhdl-mode.el.gz.
Signature
(vhdl-template-clocked-wait)
Documentation
Insert a wait statement for rising/falling clock edge.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/vhdl-mode.el.gz
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Special templates
(defun vhdl-template-clocked-wait ()
"Insert a wait statement for rising/falling clock edge."
(interactive)
(let ((start (point))
clock)
(vhdl-insert-keyword "WAIT UNTIL ")
(when (setq clock
(or (and (not (equal "" vhdl-clock-name))
(progn (insert vhdl-clock-name) vhdl-clock-name))
(vhdl-template-field "clock name" nil t start (point))))
(insert "'event")
(vhdl-insert-keyword " AND ")
(insert clock)
(insert
" = " (if vhdl-clock-rising-edge vhdl-one-string vhdl-zero-string) ";")
(vhdl-comment-insert-inline
(concat (if vhdl-clock-rising-edge "rising" "falling")
" clock edge")))))