heron_sqrt/Makefile
2014-01-13 09:08:21 +01:00

31 lines
509 B
Makefile

C99?=c99
all: bericht check fsm_tb
bericht:
cd bericht && make
check: sqrt
./sqrt
sqrt: c/sqrt.c
$(C99) -lm -o sqrt c/sqrt.c
fsm: verilog/heron_fsm.vcd
gtkwave verilog/heron_fsm.vcd
ctrl: verilog/heron_ctrl.vcd
gtkwave verilog/heron_ctrl.vcd
fsm_tb: verilog/heron_fsm.vcd
ctrl_tb: verilog/heron_ctrl.vcd
%.vcd : %.vvp
vvp $<
%.vvp: %_tb.v %.v
iverilog -o $@ -Iverilog verilog/heron_{fsm,ctrl}.v
sync:
rsync -av --inplace --rsync-path=~/rsync-3.1.0/rsync -avHz -e ssh verilog/ eeets2:verilog