1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 17:42:07 +02:00
tldr/pages/common/verilator.md
Vítor Henrique 5edbf734fb
pages*: improve page descriptions (#12558)
* pages*: improve page descriptions

* ical: improve page description

* cockpit-desktop: remove unneeded word from page description

* nc: improve description wording

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-04-25 19:58:21 -03:00

20 lines
742 B
Markdown

# verilator
> Convert Verilog and SystemVerilog hardware description language (HDL) design into a C++ or SystemC model to be executed after compiling.
> More information: <https://veripool.org/guide/latest/>.
- Build a specific C project in the current directory:
`verilator --binary --build-jobs 0 -Wall {{path/to/source.v}}`
- Create a C++ executable in a specific folder:
`verilator --cc --exe --build --build-jobs 0 -Wall {{path/to/source.cpp}} {{path/to/output.v}}`
- Perform linting over a code in the current directory:
`verilator --lint-only -Wall`
- Create XML output about the design (files, modules, instance hierarchy, logic and data types) to feed into other tools:
`verilator --xml-output -Wall {{path/to/output.xml}}`