sponsor Vim development Vim logo Vim Book Ad

vlog_inst_gen : utility for verilog instance generation

 script karma  Rating 80/26, Downloaded by 1130    Comments, bugs, improvements  Vim wiki

created by
wenming zhang
script type
This script is used for automatically generating verilog instance from the file. When you type the given hot-key, instance will be copied to system clipboard, and display or not by  its working mode. Once your file can access syntax check, this plunin will work, or there must be a bug. It's encouraged to share it with me and all other people.

Supported working mode:
    mode 0(default):
        copy inst to clipboard and echo inst in commandline
    mode 1:
        only copy to clipboard
    mode 2:
        copy to clipboard and echo inst in split window
    mode 3:
        copy to clipboard and update inst_comment to file
  To change the default working mode, you should modify the line in this script "let g:vlog_inst_gen_mode=x", x is the default working mode; or you can add  "let g:vlog_inst_gen_mode=x" to your _vimrc or .vimrc file.

User defined command:
        VlogInstGen : generate verilog instance
        VlogInstMod : change working mode
Default hot-keys:
        ,ig         : VlogInstGen
        ,im        : VlogInstMod
install details
Only tested in gvim7.3 for windows version, it may works well in linux, you can try.

copy the vlog_inst_gen.vim file to some place.
added the following to your _vimrc(it's better to the last line):
so %path for that file located%\vlog_inst_gen.vim


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
vlog_inst_gen.vim 1.5 2017-08-30 7.4 wenming zhang 1. Thank LongTang for bugs feedback
2. Parameter support keywords signed/integer/real/realtime/time
3. Support `ifdef/`else/`endif in module port declearation
4. Disable port declearation check
vlog_inst_gen.vim 1.4 2012-08-20 7.3 wenming zhang add one feature:
copy instance also to clickboard ", so that you can use key 'p' to paste it. Also you can disable this feature by modifying  this script's line:
    let g:is_copy_inst_to_doublequotation = 1
    let g:is_copy_inst_to_doublequotation = 0
vlog_inst_gen.vim 1.3 2012-08-07 7.3 wenming zhang only modified a little that you can't feel..
vlog_inst_gen.vim 1.2 2012-07-30 7.3 wenming zhang 1. add user defined command:
        VlogInstGen and VlogInstMod
2. change key-mapping to ,ig and ,im
        ig: instance generation
        im: instance mode
3. add my voice to zhizhi
        hot-key:,zz  ,,,  ,tc
vlog_inst_gen.vim 1.1 2012-07-30 7.3 wenming zhang Add working mode information to file head...
Update file head information;
Remove test functions;
Remove additional records when I debugging;
Remove additional key-map(eg. reload this script)
vlog_inst_gen.vim 1.0 2012-07-30 7.0 wenming zhang Initial upload
ip used for rating:

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