diff options
author | Martin Stensgård <mastensg@mastensg.net> | 2025-04-26 17:23:07 +0200 |
---|---|---|
committer | Martin Stensgård <mastensg@mastensg.net> | 2025-04-26 17:23:07 +0200 |
commit | 7b201fcb831296eaf4b7b69550e81f7fc006982e (patch) | |
tree | 39275b71b3c6111a5971e6c51b5b7d9ccdc36e6f | |
parent | 1cb35c28b523d3849385dbeca5369511bb9a0b58 (diff) |
verilator_example_binary: hello
-rw-r--r-- | verilator_example_binary/.gitignore | 1 | ||||
-rw-r--r-- | verilator_example_binary/Makefile | 14 | ||||
-rw-r--r-- | verilator_example_binary/hello.v | 6 |
3 files changed, 21 insertions, 0 deletions
diff --git a/verilator_example_binary/.gitignore b/verilator_example_binary/.gitignore new file mode 100644 index 0000000..d38e9f1 --- /dev/null +++ b/verilator_example_binary/.gitignore @@ -0,0 +1 @@ +/obj_dir diff --git a/verilator_example_binary/Makefile b/verilator_example_binary/Makefile new file mode 100644 index 0000000..6f95089 --- /dev/null +++ b/verilator_example_binary/Makefile @@ -0,0 +1,14 @@ +TOP = hello + +all: obj_dir/Vhello + +check: all + obj_dir/Vhello + +clean: + rm -fr obj_dir + +.PHONY: all check clean + +obj_dir/Vhello: hello.v + verilator --binary -j 0 -Wall hello.v diff --git a/verilator_example_binary/hello.v b/verilator_example_binary/hello.v new file mode 100644 index 0000000..8e163d5 --- /dev/null +++ b/verilator_example_binary/hello.v @@ -0,0 +1,6 @@ +module hello; + initial begin + $display("hello."); + $finish; + end +endmodule |