diff options
| author | 2024-02-20 20:34:10 -0500 | |
|---|---|---|
| committer | 2024-02-20 20:34:10 -0500 | |
| commit | 4bcefafb697c27501cda3cb6f1584df78d9011bc (patch) | |
| tree | f4aa662ee9eef6c02dd7a13301a1d61247210c82 /Makefile | |
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..355baa5 --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +VERILATOR_FLAGS = --cc --exe -x-assign fast -Wall +VERILATOR_INPUT = xorshift.v xorshift.cpp + +obj_dir/Vxorshift: obj_dir/Vxorshift.mk obj_dir/Vxorshift.cpp \ + obj_dir/Vxorshift.h xorshift.cpp + cd obj_dir && make -f Vxorshift.mk && ./Vxorshift +obj_dir/Vxorshift.mk: $(VERILATOR_INPUT) + verilator $(VERILATOR_FLAGS) $(VERILATOR_INPUT) +clean: + rm -rf obj_dir |
