From cb3dde850285987997a61c70a208f69ee310aa92 Mon Sep 17 00:00:00 2001 From: Ashish Shenoy Date: Thu, 3 Oct 2019 20:35:53 +0000 Subject: [PATCH] iverilog: add page (#3303) --- pages/common/iverilog.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/iverilog.md diff --git a/pages/common/iverilog.md b/pages/common/iverilog.md new file mode 100644 index 000000000..007510362 --- /dev/null +++ b/pages/common/iverilog.md @@ -0,0 +1,24 @@ +# iverilog + +> Preprocesses and compiles Verilog HDL (IEEE-1364) code, into executable programs for simulation. +> More information: . + +- 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: + +`iverilog -o {{execuable}} -tvvp {{source.v}}` + +- 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}}`