1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-10 16:13:31 +02:00

verilator: add page (#9443)

This commit is contained in:
acass91 2022-11-26 01:07:29 -07:00 committed by GitHub
parent df6ed27267
commit 3e13850ea4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
pages/common/verilator.md Normal file
View file

@ -0,0 +1,20 @@
# verilator
> Converts Verilog and SystemVerilog hardware description language (HDL) designs into a C++ or SystemC model that after compiling can be executed.
> 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}}`