tldr/pages/common/iverilog.md

25 lines
642 B
Markdown
Raw Normal View History

2019-10-03 21:35:53 +01:00
# iverilog
> Preprocesses and compiles Verilog HDL (IEEE-1364) code, into executable programs for simulation.
> More information: <http://iverilog.icarus.com/>.
- Compile a source file into an executable:
`iverilog {{source.v}} -o {{executable}}`
- Also display all warnings:
`iverilog {{source.v}} -Wall -o {{executable}}`
- Compile and run explicitly using the VVP runtime:
2020-12-04 12:37:44 +00:00
`iverilog -o {{executable}} -tvvp {{source.v}}`
2019-10-03 21:35:53 +01:00
- Compile using Verilog library files from a different path:
`iverilog {{source.v}} -o {{executable}} -I{{path/to/library_directory}}`
- Preprocess Verilog code without compiling:
`iverilog -E {{source.v}}`