1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/iverilog.md

25 lines
770 B
Markdown
Raw Normal View History

2019-10-03 20:35:53 +00:00
# iverilog
2022-11-27 20:13:48 +05:30
> Preprocesses and compiles Verilog HDL (IEEE-1364) code into executable programs for simulation.
> More information: <https://github.com/steveicarus/iverilog>.
2019-10-03 20:35:53 +00:00
- Compile a source file into an executable:
2022-11-27 20:13:48 +05:30
`iverilog {{path/to/source.v}} -o {{path/to/executable}}`
2019-10-03 20:35:53 +00:00
2022-11-27 20:13:48 +05:30
- Compile a source file into an executable while displaying all warnings:
2019-10-03 20:35:53 +00:00
2022-11-27 20:13:48 +05:30
`iverilog {{path/to/source.v}} -Wall -o {{path/to/executable}}`
2019-10-03 20:35:53 +00:00
- Compile and run explicitly using the VVP runtime:
2022-11-27 20:13:48 +05:30
`iverilog -o {{path/to/executable}} -tvvp {{path/to/source.v}}`
2019-10-03 20:35:53 +00:00
- Compile using Verilog library files from a different path:
2022-11-27 20:13:48 +05:30
`iverilog {{path/to/source.v}} -o {{path/to/executable}} -I{{path/to/library_directory}}`
2019-10-03 20:35:53 +00:00
- Preprocess Verilog code without compiling:
2022-11-27 20:13:48 +05:30
`iverilog -E {{path/to/source.v}}`