.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "VHIER 1p" .TH VHIER 1p 2024-01-27 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME vhier \- Return all files in a verilog hierarchy using Verilog::Netlist .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 2 \& vhier \-\-help \& vhier [verilog_options] [\-o filename] [verilog_files.v...] .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" Vhier reads the Verilog files passed on the command line and outputs a tree of all of the filenames, modules, and cells referenced by that file. .SH "VERILOG ARGUMENTS" .IX Header "VERILOG ARGUMENTS" The following arguments are compatible with GCC, VCS and most Verilog programs. .IP "+define+\fIvar\fR+\fIvalue\fR =item \-D\fIvar\fR=\fIvalue\fR" 4 .IX Item "+define+var+value =item -Dvar=value" Defines the given preprocessor symbol. .IP "\-F \fIfile\fR" 4 .IX Item "-F file" Read the specified file, and act as if all text inside it was specified as command line parameters. Any relative paths are relative to the directory containing the specified file. .IP "\-f \fIfile\fR" 4 .IX Item "-f file" Read the specified file, and act as if all text inside it was specified as command line parameters. Any relative paths are relative to the current directory. .IP "+incdir+\fIdir\fR =item \-I\fIdir\fR" 4 .IX Item "+incdir+dir =item -Idir" Add the directory to the list of directories that should be searched for include directories or libraries. .IP +libext+\fIext\fR+\fIext\fR... 4 .IX Item "+libext+ext+ext..." Specify the extensions that should be used for finding modules. If for example module \fIx\fR is referenced, look in \fIx\fR.\fIext\fR. .IP \-sv 4 .IX Item "-sv" Specifies SystemVerilog language features should be enabled; equivalent to "\-\-language 1800\-2023". This option is selected by default, it exists for compatibility with other simulators. .IP "\-y \fIdir\fR" 4 .IX Item "-y dir" Add the directory to the list of directories that should be searched for include directories or libraries. .SH "VHIER ARGUMENTS" .IX Header "VHIER ARGUMENTS" .IP \-\-help 4 .IX Item "--help" Displays this message and program version and exits. .IP "\-\-o \fIfile\fR" 4 .IX Item "--o file" Use the given filename for output instead of stdout. .IP \-\-cells 4 .IX Item "--cells" Show the module name of all cells in top-down order. .IP \-\-forest 4 .IX Item "--forest" Show "ASCII-art" hierarchy tree of all cells (like ps \-\-forest) .IP \-\-input\-files 4 .IX Item "--input-files" Show all input filenames. Copying all of these files should result in only those files needed to represent the entire design. .IP \-\-includes 4 .IX Item "--includes" Show each source filename that includes another filename. The included filename will be as specified in the original source filename, so it may be necessary to resolve it into an absolute path for further processing. .IP \-\-instance 4 .IX Item "--instance" With \-\-cells or \-\-forest, show module instance names. .IP "\-\-language <1364\-1995|1364\-2001|1364\-2005|1800\-2005|1800\-2009|1800\-2012|1800\-2017|1800\-2023>" 4 .IX Item "--language <1364-1995|1364-2001|1364-2005|1800-2005|1800-2009|1800-2012|1800-2017|1800-2023>" Set the language standard for the files. This determines which tokens are signals versus keywords, such as the ever-common "do" (data-out signal, versus a do-while loop keyword). .IP \-\-resolve\-files 4 .IX Item "--resolve-files" Show resolved filenames passed on the command line. This will convert raw module and filenames without paths to include the library search path directory. Output filenames will be in the same order as passed on the command line. Unlike \-\-input\-files or \-\-module\-files, hierarchy is not traversed. .IP \-\-module\-files 4 .IX Item "--module-files" Show all module filenames in top-down order. Child modules will always appear as low as possible, so that reversing the list will allow bottom-up processing of modules. Unlike input-files, header files are not included. .IP \-\-modules 4 .IX Item "--modules" Show all module names. .IP \-\-no\-missing 4 .IX Item "--no-missing" Do not complain about references to missing modules. .IP \-\-missing\-modules 4 .IX Item "--missing-modules" With \-\-nomissing, show all modules that are not found. .IP "\-\-skiplist \fIfile\fR" 4 .IX Item "--skiplist file" Given file contains a list of regular expressions, one per line. If a module name in the design hierarchy matches one of these expressions, skip showing that module and any sub-hierarchy. .IP \-\-synthesis 4 .IX Item "--synthesis" Define SYNTHESIS, and ignore text between "ambit", "pragma", "synopsys" or "synthesis" translate_off and translate_on meta comments. Note using metacomments is discouraged as they have led to silicon bugs (versus ifdef SYNTHESIS); see . .IP "\-\-top\-module \fImodule\fR" 4 .IX Item "--top-module module" Start the report at the specified module name, ignoring all modules that are not the one specified with \-\-top\-module or below, and report an error if the \-\-top\-module specified does not exist. Without this option vhier will report all modules, starting at the module(s) that have no children below them. .Sp Note this option will not change the result of the \-\-input\-files list, as the files needed to parse any design are independent of which modules are used. .IP \-\-version 4 .IX Item "--version" Displays program version and exits. .IP \-\-xml 4 .IX Item "--xml" Create output in XML format. .SH DISTRIBUTION .IX Header "DISTRIBUTION" Verilog-Perl is part of the free Verilog EDA software tool suite. The latest version is available from CPAN and from . .PP Copyright 2005\-2024 by Wilson Snyder. This package is free software; you can redistribute it and/or modify it under the terms of either the GNU Lesser General Public License Version 3 or the Perl Artistic License Version 2.0. .SH AUTHORS .IX Header "AUTHORS" Wilson Snyder .SH "SEE ALSO" .IX Header "SEE ALSO" Verilog-Perl, Verilog::Getopt, Verilog::Preproc, Verilog::Netlist