tldr/pages/common/iverilog.md

25 lines
770 B
Markdown
Raw Normal View History

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