13.07.2015 Views

VHDL Templates This is a quick crib sheet for understanding vhdl ...

VHDL Templates This is a quick crib sheet for understanding vhdl ...

VHDL Templates This is a quick crib sheet for understanding vhdl ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>VHDL</strong> <strong>Templates</strong><strong>Th<strong>is</strong></strong> <strong>is</strong> a <strong>quick</strong> <strong>crib</strong> <strong>sheet</strong> <strong>for</strong> <strong>understanding</strong> <strong>vhdl</strong> templates in emacs. Itassumes that you haveemacs running, in <strong>vhdl</strong>-mode and that you have an empty file to play with. ( or use the and2example)When you type in a keyword, or select from the templates submenu, you will be prompted <strong>for</strong>input at each stage. Toabandon a template just hit enter on an empty field. The following hould allbe done in emacs.type C-c C-t en<strong>Th<strong>is</strong></strong> will start atemplate that looks like ...It will enter the keyword <strong>for</strong> you, put a marker ininred text, move the cursor to the minibufferat the bottom and wait <strong>for</strong> you to type in the entity name. When you have typed in the name,eg and2, hit enter. Emacs will then look likeWe are not using generics at th<strong>is</strong> stage so just hit return toabandon th<strong>is</strong> sub-template. Youwill then see (overleaf) the template <strong>for</strong> entering the port descr iption which will expect you,in sequence, toenter the name(s) of the port(s)followed by[enter], the direction of the port[enter], the type of the port [enter] and then a comment [enter]. At each stage the cursorwill move to the minibuffer and wait <strong>for</strong> input. If there <strong>is</strong> a limited selection, as with direction,it will show you the choices.


-2-por t templatedirection templatetype template


-3-comment templatecompleted entity, hit enter on empty name field to end.star t of architecture template

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!