emacsvhdl - Electric VHDL mode Major mode for editing VHDL...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Electric VHDL mode: Major mode for editing VHDL code. Usage: ------ - TEMPLATE INSERTION (electrification) (`SPC'): After typing a VHDL keyword and entering `SPC', you are prompted for arguments while a template is generated for that VHDL construct. Typing `RET' (or `C-g' in yes-no queries) at the first prompt aborts the current template generation. Typing `M-SPC' after a keyword inserts a space without calling the template generator. Automatic calling of the template generators (i.e. electrification) can be disabled (enabled) by setting the variable `vhdl-electric-mode' to nil (non-nil) or by typing `C-c C-e' (toggles electrification mode). Template generators can be called using the VHDL menu, the key bindings, or by typing the keyword (first word of menu entry not in parenthesis) and `SPC'. The following abbreviations can also be used: arch, attr, conc, conf, comp, cons, func, inst, pack, ret, sig, sub, var. - HEADER INSERTION (`C-c C-t h'): A customized header can be inserted including the actual file name, user name, and current date as well as prompted title strings. A custom header can be defined in a separate file (see custom variable `vhdl-header-file'). - STUTTERING (double strike): Double striking of some keys inserts cumbersome VHDL syntax elements. Stuttering can be disabled by variable `vhdl-stutter-mode' and be toggled by typing `C-c C-s'. '' --> " [ --> ( -- --> comment ;; --> " : " [[ --> [ --CR --> comment-out code ;;; --> " := " ] --> ) --- --> horizontal line .. --> " => " ]] --> ] ---- --> display comment ,, --> " <= " aa --> A - zz --> Z - WORD COMPLETION (`TAB'): Typing `TAB' after a (not completed) word looks for a word in the buffer that starts alike and inserts it. Re-typing `TAB' toggles through alternative word completions. This also works in the minibuffer (i.e. in template generator prompts). Typing `TAB' after a non-word character indents the line if at the beginning of a line (i.e. no preceding non-blank characters), and inserts a tabulator stop otherwise. `M-TAB' always inserts a tabulator stop. - COMMENTS (`--', `---', `----', `--CR'): `--' puts a single comment. `---' draws a horizontal line for separating code segments. `----' inserts a display comment, i.e. two horizontal lines with a comment in between. `--CR' comments out code on that line. Re-hitting CR comments out following lines. `C-c C-c' comments out a region if not commented out, uncomments out a region if already commented out.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
You are prompted for comments after object definitions (i.e. signals, variables, constants, ports) and after subprogram and process specifications if variable `vhdl-prompt-for-comments' is non-nil. Comments are automatically inserted as additional labels (e.g. after begin statements) and help comments if `vhdl-self-insert-comments' is non-nil. Inline comments (i.e. comments after a piece of code on the same line) are
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 7

emacsvhdl - Electric VHDL mode Major mode for editing VHDL...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online