📄 v2html.1
字号:
if it does not exist, but will not overwrite an existing one). .SpIf you have many different html directories which you want to use theone central cascading style sheet then you can use the \fB\-css\fR optionto specify one. For example:.Sp.Vb 1\& -css http://www.barking.com/joes_style.css.Ve.Ip "\fB\-h\fR\ hier_file" 5.IX Item "-hhier_file"Set the name of the file that the hierarchy is written to. The defaultis hierarchy.html. This is also used as a base for the index filenames. These file names are formed put appending \f(CW\*(C`\-f\*(C'\fR, \f(CW\*(C`\-m\*(C'\fR,\&\f(CW\*(C`\-s\*(C'\fR, \f(CW\*(C`\-t\*(C'\fR and \f(CW\*(C`\-fn\*(C'\fR to the part of the hierarchy file namebefore the first dot (so hier.htm will put the files index inhier-f.htm)..Ip "\fB\-ht\fR\ top_module" 5.IX Item "-httop_module"Set the name of a top module you want in the hierarchy. You can specifymultiple \fB\-ht\fR options to specify multiple top modules. .SpIf you don't specify any \fB\-ht\fR options then \fBv2html\fR will inspectthe hierarchy and find all the top modules in the verilog files andprint these out. The 'top modules' are modules that are notinstantiated but instantiate other modules that \fBv2html\fR has foundthe definition of..Ip "\fB\-hc\fR\ hierarchy_comment" 5.IX Item "-hchierarchy_comment"Specifies some text to put at the top of the hierarchy. For instance:.Sp.Vb 1\& v2html -hc "This is our ASIC" *.v.Ve.Ip "\fB\-htf\fR" 5.IX Item "-htf"Turns on printing of tasks and functions in the hierarchy. By default theyare not printed..Ip "\fB\-lines\fR\ max_lines_per_file" 5.IX Item "-linesmax_lines_per_file"In order to speed up viewing \fBv2html\fR splits large verilog files across multiplehtml pages. This option lets you specify how many lines you want on a page. The default is 1000..Ip "\fB\-nnm\fR" 5.IX Item "-nnm"No \*(L"No modules\*(R". By default the hierarchy contains three sections, thehierarchies of the top modules, a list of files containing no modulesand a list of unconnected modules (modules that are not instantiatedbut also do not qualify as top modules). The \fB\-nnm\fR makes\&\fBv2html\fR skip printing the list of files containing no modules.See \fB\-nu\fR..Ip "\fB\-nu\fR" 5.IX Item "-nu"No unconnected. See \fB\-nnm\fR. Makes \fBv2html\fR skip writing the listof unconnected modules in the hierarchy file..Ip "\fB\-nh\fR" 5.IX Item "-nh"No hierarchy. Don't print out the hierarchy..Ip "\fB\-nindex\fR" 5.IX Item "-nindex"No indexes. Don't print out the indexes..Ip "\fB\-ni\fR" 5.IX Item "-ni"By default \fBv2html\fR 'greys out' any code that is ifdefed out. The \fB\-ni\fRturns this greying out off. Note that v2html always ignores code that isifdefed out when it is parsing..Ip "\fB\-z\fR" 5.IX Item "-z"Compress the html files generated (and make sure the links point tothe compressed versions). This can be useful if you convert machinegenerated code, like \s-1ASIC\s0 \s-1RAM\s0 macros which are huge before they areconverted and even bigger afterwards..Ip "\fB\-zc\fR\ compresser" 5.IX Item "-zccompresser"The executable to use to compress the html files if \fB\-z\fR is used. TheDefault is 'compress \f(CW\*(C`\-f\*(C'\fR'. For instance to use gzip use \fB\-zc\fR 'gzip \f(CW\*(C`\-f\*(C'\fR'(the \f(CW\*(C`\-f\*(C'\fR stops gzip prompting you about overwriting files)..Ip "\fB\-ze\fR\ compressed_extension" 5.IX Item "-zecompressed_extension"The extension that your compress executable uses. The default is '.Z'. If youwere using gzip then you'd want \fB\-ze\fR .gz.Ip "\fB\-F\fR\ [frame_file.html]" 5.IX Item "-F[frame_file.html]"Frame mode. Using \fB\-F\fR turns on the generation of framed outputwhere a top level frame file is generated that creates threeframes in your browser, the top one for the hierarchy the middleone for the code and the bottom one for any definitions to appear in..SpThe default name for the frame file is frame.html. This defaultcan be overridden by specifying a file name after the \fB\-F\fR option..Ip "\fB\-VF\fR\ [frame_file.html]" 5.IX Item "-VF[frame_file.html]"Same as \fB\-F\fR but arranges the frames vertically so that the hierarchy isdown the side..Ip "\fB\-s\fR" 5.IX Item "-s"Link to the source. This causes the file name in From field ofthe page footer to become a link to the unconverted verilog file:.Sp.Vb 4\& This page:\& Maintained by: Joe_Bloggs@barking.com\& Created: Thu Nov 6 08:53:37 1997\& From: /asic/verilog/test2.v.VeFor this to work your web server must have access to the source code.Also, you must either run v2html in the output directory or useabsolute path names for the verilog files..SpFor example, if the source is in /home/asic/verilog and the html fileswant to end up in /home/www/verilog then there are two ways to run itto get \fB\-s\fR to work:.Sp.Vb 3\& 1) In the output directory with verilog files specified by relative paths:\& cd /home/www/verilog\& v2html -s ../../asic/verilog/*.v.Ve.Vb 3\& 2) In any directory with verilog files specified by absolute paths:\& cd /anywhere\& v2html -s -o /home/www/verilog /home/asic/verilog/*.v.Ve.Ip "\fB\-c\fR\ /cgi_script\ /path_to_html_files" 5.IX Item "-c/cgi_script/path_to_html_files"Activate \s-1CGI\s0 features which allow the user to hide and showregions of the hierarchy in a similar way to the old file manageron windows 3.1. This method only works if you put the files ona web server..SpTo use this you must have installed the v2html \s-1CGI\s0 script on yourweb-server. The /cgi_script is the name of the \s-1CGI\s0 script (with path).The /path_to_v_files is the directory you are putting your html files..SpThese paths are the paths your web server sees (not the full paths onthe system) so is the same path that appears after \fIhttp://server\fR when accessing the files..SpHere's an example:.Sp.Vb 2\& cp v2html-cgi /opt/CERNhttpd/cgi-bin/ \& chmod 755 /opt/CERNhttpd/cgi-bin/v2html-cgi.Ve.Vb 2\& cd /home/web/v2html/example/ex1\& v2html -c /cgi-bin/v2html-cgi /v2html/example/ex1 ../verilog/*.v.VeNote that \fBv2html\fR can't check the parameters to \fB\-c\fR whileconverting the files. You'll have to do it yourself by viewing thehierarchy in your web browser and clicking on \fB[Hide\ All]\fR at thetop of the hierarchy. Make sure you view the file using the web server(use \fIhttp://server/v2html/example/ex1/hierarchy.html\fR rather than\&\fIfile:/home/web/v2html/example/ex1/hierarchy.html\fR)..SpDepending on your webserver you may also need to use the \-css tospecify the full \s-1URL\s0 to your cascading stylesheet eg:.Sp.Vb 3\& v2html -c /cgi-bin/v2html-cgi /v2html/examples/millennium_clock/hier_cgi\& -css http://www.burbleland.com/v2html/examples/millennium_clock/hier_cgi/v2html.css\& *.v.VeIf you get a message like this when you click on \fB[Hide\ All]\fR:.Sp.Vb 2\& Bad script request -- neither '/opt/CERNhttpd/cgi-bin/v2html-cg' \& nor '/opt/CERNhttpd/cgi-bin/v2html-cg.pp' is executable.VeThen either there is either a problem with the installation of the cgiscript or you have incorrectly specified the first parameter to \fB\-c\fR..SpIf you get a message like this:.Sp.Vb 1\& v2html error..Vethen you have probably got the second parameter to \fB\-c\fR wrong..Ip "\fB\-k\fR\ key_string" 5.IX Item "-kkey_string"Specify the key to use for to stop people looking at hierarchy filesthat are protected by web-server security. The default is to use arandom key, but this means that you can't have bookmarks of thehierarchy in various states (because the bookmark will contain thekey, and the key will change each time you run \fBv2html\fR). To getround this problem you can use \fB\-k\fR and always have the samekey string. The key can be any string of digits and letters..Ip "\fB\-njshier\fR" 5.IX Item "-njshier"Deactivate Javascript features that allow the user to hide andcollapse regions of the hierarchy..Ip "\fB\-ncookies\fR" 5.IX Item "-ncookies"The Javascript version of the hierarchy uses cookies to remember the stateyou left the hierarchy in, so when you next visit the hierarchy page it willbe in the same state. If you hate cookies then use the \fB\-ncookies\fR optionto turn them off..Ip "\fB\-nsigpopup\fR" 5.IX Item "-nsigpopup"Turn off the generation of javascript that does the signal popup window.Specifying this option also turns off \*(L"Quick Search\*(R"..Ip "\fB\-tab\fR\ value" 5.IX Item "-tabvalue"Expand tabs to the specified value..Ip "\fB\-debug\fR" 5.IX Item "-debug"Turn on lots of debugging information..SH "AUTHOR".IX Header "AUTHOR"Costas Calamvokis <\fIv2html730@burbleland.com\fR>..SH "EXAMPLES".IX Header "EXAMPLES"Here is an example where \fBv2html\fR is run in the directory containingthe verilog files (note the \fB\-o\fR option):.PP.Vb 3\& cd /users/jb/verilog_files/\& v2html -F my_frame.html -h my_hier.html -ht chip_top -htf -nu\& -o /users/www/project/verilog -m Joe_Blogs@barking.com -s *.v.VeAs the verilog files don't have absolute paths and we aren't runningin the destination directory can't use \fB\-s\fR (link to source) as thelinks \fBv2html\fR will create wouldn't allow the web server to find thefiles..PPHere is an example where \fBv2html\fR is run in the directory wherewe want the html files (no \fB\-o\fR option):.PP.Vb 4\& cd /users/www/project/verilog\& v2html -F my_frame.html -h my_hier.html -ht chip_top -nu -htf\& -m Joe_Blogs@barking.com -s \& -c /cgi-bin/v2html-cgi /project/verilog ../../../jb/verilog_files/*.v.VeHere we can use the \fB\-s\fR option because we are running the the destinationdirectory, so the links \fBv2html\fR creates to the source will work(providing the web server is allowed to server files from/users/jb/verilog_files)..SH "DIAGNOSTICS".IX Header "DIAGNOSTICS"By default \fBv2html\fR tells you a lot about what it is doing (this isbecause it is slow and if it didn't you'd think it had crashed!). Thesemessages can get in the way of the warnings \fBv2html\fR produces, so ifyou have a problem first try \fB\-q\fR (quiet) to see if there are any warningsyou missed in the deluge of messages..PPMost of the Error messages concern failures to open files, I guess thesewill be caused by bad permissions, or you pointing \fBv2html\fR at filesor directories that don't exist..PPThe errors that say things like:.PP.Vb 5\& Warning: Confused in t.v line 2 (state=SIGNAL_AFTER_NAME):\& wire g xx;\& ^\&mean that you have written some verilog that I wasn't expecting - send\&it to me and I'll see what I can do..VeMost of the warnings concern things that \fBv2html\fR will ignore becauseit found more than one of them. The most common is a duplicate modulebeing found because an old copy of one of the files is lurking inyour source directory. The easiest way around this is to use the\&\fB\-f\fR option something like this:.PP.Vb 2\& ls /path/*.v | grep -v old_module_file.v > src_files\& v2html -f src_files.VeGenerally \fBv2html\fR will ignore duplicate things (so for examplemodules won't appear in the hierarchy), but sometimes it will just pickone of them, so watch those warnings.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -