heron_sqrt/Makefile

27 lines
387 B
Makefile
Raw Normal View History

2014-01-02 12:01:07 +00:00
C99?=c99
2013-12-04 20:32:13 +00:00
2014-01-02 12:01:07 +00:00
all: bericht check fsm_tb
2013-12-04 20:32:13 +00:00
2013-12-11 12:57:26 +00:00
check: sqrt
2013-12-04 20:32:13 +00:00
./sqrt
2014-01-02 12:01:07 +00:00
sqrt: c/sqrt.c
$(C99) -lm -o sqrt c/sqrt.c
2013-12-11 12:57:26 +00:00
2014-01-02 12:01:07 +00:00
bericht/graph.pdf: bericht/graph.dot
cd bericht; dot -Tpdf graph.dot > graph.pdf
2013-12-04 20:32:13 +00:00
2014-01-02 12:01:07 +00:00
bericht: bericht/graph.pdf
latexmk -pdf bericht/bericht.tex;
2013-12-04 20:32:13 +00:00
2014-01-02 12:01:07 +00:00
fsm: verilog/fsm.vcd
gtkwave verilog/fsm.vcd
fsm_tb: verilog/heron_fsm.vcd
%.vcd : %.vvp
vvp $<
%.vvp: %_tb.v %.v
iverilog -o $@ $^