VPPREPROC(1p)
π VPPREPROC π
okay bestie, gather round, because this is the manual page for vppreproc β the preprocess-Verilog-code-using-verilog-perl girlie. she's the one you call when you want your Verilog chewed up and spat out all pretty. π¦
β¨ SYNOPSIS β¨
vppreproc --help
vppreproc [verilog_options] [-o filename] [verilog_files.v...]
πΈ DESCRIPTION πΈ
so here's the vibe: vppreproc reads the Verilog files you hand it on the command line, and then it spits out the preprocessed output β either to standard out, or to whatever filename you gave it with -o. that's it. that's the whole job. she's simple, she's efficient, she's that girl. π
π«Ά heads up, tiny lore drop:vppreprocwas literally namedvpppup until release3.100. so if you came here looking forvppp... bestie, this IS the right replacement, you found her. thevpppname had beef with another non-Verilog-related tool, so she rebranded. main character move honestly.
π VERILOG ARGUMENTS π
these arguments are compatible with GCC, VCS, and honestly most Verilog programs out there. they play nice. β¨
+define+var+value=item-Dvar=valueβ defines the given preprocessor symbol. it's giving "here's a thing, remember it."-f fileβ read the specified file, and act as if all text inside it was specified as command line parameters. lowkey a whole file's worth of args in one flag, iconic.-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. (yes bestie, this one's listed again β and it comes with the relative-paths detail this time. the manual said it twice so we're saying it twice. no cap. π)+incdir+dir=item-Idirβ add the directory to the list of directories that should be searched for include directories or libraries. it's the "look here too" flag.+libext+ext+ext...β specify the extensions that should be used for finding modules. if for example modulexis referenced, look inx.ext. slay, autodiscovery.-y dirβ add the directory to the list of directories that should be searched for include directories or libraries.
π VPPREPROC ARGUMENTS π
these are her own flags. her personal collection. π
--helpβ displays this message and program version and exits. the classic "help meee" move.--o fileβ use the given filename for output instead of stdout. (yep, that's how it's spelled in the page β one dash, two letters,--o. we keep it exactly, no fixing, no inventing.)--dump-definesβ suppress normal output, and instead print a list of all defines existing at the end of processing the input file. receipts, basically. π§Ύ--noblankβ removes empty lines from the output. should be used with--noline, because if correct line numbers are needed, blank lines must be preserved for proper accounting by the program reading the output ofvppreproc. so like... don't do this one casually, it matters. π«--nocommentβ remove comments. bye bye commentary. π--nolineβ remove`linedirectives.-Pβ same as--noline --noblank, similar to "GCC -P" behavior.--pedanticβ rigorously obey the Verilog spec. this disables the`errorfeature, and may disable other features that are not specified in the approved language reference manual. defaultsfalse. she's strict. she's giving hall monitor energy. π--simpleβ requests simple output, an alias for--noline,--nocommentand--noblank. one flag, three jobs, efficiency queen. π₯--synthesisβ defineSYNTHESIS, and ignore text between"ambit","pragma","synopsys"or"synthesis"translate_off and translate_on meta comments.
β οΈ ngl, using metacomments is discouraged β they have led to silicon bugs (versus ifdef SYNTHESIS). like, actual hardware bugs, bestie, not a vibe. see <https://www.veripool.org/papers/TenIPEdits_SNUGBos07_paper.pdf> for the whole story.
--versionβ displays program version and exits.
π LANGUAGE EXTENSIONS π
vppreproc supports the preprocessing constructs defined in the Verilog 2001 and SystemVerilog 2005 standards. so she speaks the official languages, fluently. π
and also?? the following additional constructs may be added to your Verilog code. bonus features, bestie. π
`__FILE__β the__FILE__define expands to the current filename as a string, like C++'s__FILE__. this was incorporated into to the 1800-2009 standard (but supported by Verilog-Perl since 2004!). she was ahead of the curve, periodt. β`__LINE__β the__LINE__define expands to the current filename as a string, like C++'s__LINE__. this was incorporated into to the 1800-2009 standard (but supported by Verilog-Perl since 2004!). (yes, the page says "current filename" here β we're keeping it word for word even though it's a little chaotic. π)`error stringβ this will report an error when encountered, like C++'s#error. dramatic exits only. π
π¦ DISTRIBUTION π¦
Verilog-Perl is part of the <https://www.veripool.org/> free Verilog EDA software tool suite. the latest version is available from CPAN and from <https://www.veripool.org/verilog-perl>.
Copyright 2000-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.
π AUTHORS π
Wilson Snyder <wsnyder@wsnyder.org>
π«Ά SEE ALSO π«Ά
Verilog-Perl, Verilog::Getopt, Verilog::Preproc
and that's a wrap, bestie! π this page is perl v5.40.1, dated 2025-04-20, from VPPREPROC(1p). go forth and preprocess. slay. πβ¨
π¦ where this page comes from
- debian trixie: libverilog-perl 3.482-2 Β· Artistic-2.0 OR LGPL-3.0-only
- ubuntu resolute: libverilog-perl 3.482-2 Β· Artistic-2.0 OR LGPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms