diff options
-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 |