sponsor Vim development Vim logo Vim Book Ad

automatic for Verilog & RtlTree : Automatic generator for Verilog HDL (upgraded) & RtlTree

 script karma  Rating 14/9, Downloaded by 1104    Comments, bugs, improvements  Vim wiki

created by
zhang guo
 
script type
ftplugin
 
description
upgrade form   "http://www.vim.org/scripts/script.php?script_id=2372

Support Automatic functions like Emacs for Verilog HDL


=========================================================
=  Install
=========================================================

1. vim version need >= 7.0
2. copy automatic.vim to your home directory .vim/plugin/
3. decompress Draw_pixmaps.rar, copy *.xpm file to .vim/after,
   if directory no exist, create it.
4. modify your vim config file .vimrc:
  
   set fileformat=unix
   syntax on

   set expandtab        " use <space> char replace <tab> char

   set shiftwidth=4
   set tabstop=4
   set ruler
  
   set smartindent
   set incsearch
   set hlsearch

   map <F4> :RtlTree<CR>
   map <F5> <C-w><C-w>

   " save cursor position at exit edit file
   autocmd BufReadPost *
       \ if (line("'\"") > 0 && line("'\"") <= line("$") |
       \    exe "normal g`\"" |
       \ endif


=========================================================
=  Usage
=========================================================

== Automatic for Verilog

1. Auto Argument,         :call AutoArg()   or shortcut key <Shift>+<F1>
2. Auto Definition,       :call AutoDef()   or shortcut key <Shift>+<F2>
3. Auto Instance,         :call AutoInst(0) or shortcut key <Shift>+<F3>  "key words /*autoinst*/
4. Auto Comment,
     single line comment, :call AutoComment()  or shortcut key <F2>
     multi line comment,  :call AutoComment2() or shortcut key <F3>
5. "Always @" block quick input template, leftclick icon "AL**"
6. abbrev "<=" to "<= #1" in insert mode

== Draw wave

1. leftclick icon "CLK" to create a clock signal wave
2. leftclick icon "SIG" to create a one-bit signal wave
3. leftclick icon "BUS" to create a bus signal wave
4. leftclick icon "SEP" to create a blank line
5. leftclick icon "NEG" to add a flag char 'neg' to end of one sig
6. to draw wave use shortcut key <F8>

note: goto bottom line of sig line(total 3 lines) to create a new sig/blank line

== RtlTree

1. Only use in gvim
2. use script ctags_gen to create file tags, rtltree work need file tags
3. Use like Verdi


=========================================================
=  Limit
=========================================================

1. One design unit per file

        A file must not contain more than one design unit. Everything contained in a design
     unit must be completely contained in a single module/endmodule construct.

2. File naming conventions

    The file name must be composed in the following way:
    <design unit name>.v

    where:
    <design unit name> is the name of the design unit (i.e., module name).

    example: spooler.v Synthesizable Verilog code for module spooler

 
install details
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
automatic_v1.4.rar v1.4 2013-12-21 7.0 zhang guo 1. Add always block quick input template
2. clr rtltree no definition g: variable bug (NERDTree)
3. update Draw wave for negedge toggle logic
4. update FileHeader for .v file
automatic_v1.3.rar 1.3 2013-02-09 7.0 zhang guo rtltree support tree fold, it's init_max_display_layer is 3
automatic_v1.2.3.rar 1.2.3 2013-01-11 7.0 zhang guo fix some bugs on function AutoDef
automatic.rar 1.2.2 2012-11-21 7.0 zhang guo fix AutoArg bug
fix AutoInst bug (function GetIO)
automatic.rar 1.2.1 2012-10-30 7.0 zhang guo add icon for DrawTiming, only use in gvim.  Usage: decompress Draw_pixmaps.rar , modify the icon file path in file automatic.vim
automatic1.2.rar 1.2 2012-08-04 7.0 zhang guo new add RtlTree  
   - it's useful, refrence NERDTree source code, work like EDA tool verdi.
automatic.rar v1.1 2012-06-09 7.0 zhang guo upgrade a little, and clr a bug about autodef
automatic.rar 1.01 2012-05-14 7.3 zhang guo append file: ctags_gen
automatic.rar 1.00 2012-05-14 7.0 zhang guo Initial upload
ip used for rating: 54.92.241.157

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo