aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2022-08-09 18:13:47 -0400
committerGravatar Peter McGoron 2022-08-09 18:13:47 -0400
commitd4a4cda8776dbd122b24b5caa29a89e120901d88 (patch)
tree706efb32acd824d91c37936bf7ce55653b040eb6 /Makefile
Booth multiplier
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9fc482d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+VERILATOR_FLAGS = --cc --exe -x-assign fast -Wall -DBOOTH_SIM \
+ -GA1_LEN=16 -GA2_LEN=16 -GA2LEN_SIZ=5
+VERILATOR_INPUT = boothmul.v sim.cpp
+
+obj_dir/Vboothmul: obj_dir/Vboothmul.mk obj_dir/Vboothmul.cpp \
+ obj_dir/Vboothmul.h sim.cpp
+ cd obj_dir && make -f Vboothmul.mk
+obj_dir/Vboothmul.mk: $(VERILATOR_INPUT)
+ verilator $(VERILATOR_FLAGS) $(VERILATOR_INPUT)