1 # Be aware of required VHDL_ENTITIES sequence! All entities must be listed in
2 # bottom to up order (e.g. the top entity is the last in this list). Otherwise
5 # Target 'view' can be used to compile & run testbench and show the result
6 # in gtkwave. When lauching gtkwave, timing diagram settings (named after
7 # the testbench) is also loaded, so it's possible to store view settings
8 # by invoking 'File/Write Save File (Ctrl+S)' in gtkwave.
11 VHDL_MAIN = tb_qcounter
12 VHDL_ENTITIES = dff.o \
17 ##############################################################################
22 ghdl -r $< --stop-time=$(STOP_TIME) --vcd=$<.vcd
25 gtkwave $(VHDL_MAIN).vcd $(VHDL_MAIN).sav
27 $(VHDL_MAIN): $(VHDL_ENTITIES) $(VHDL_MAIN).o
28 ghdl -e -fexplicit --ieee=synopsys $@
32 ghdl -a -fexplicit --ieee=synopsys $<
35 ghdl -a -fexplicit --ieee=synopsys $<
38 rm -Rf *.o *.vcd $(VHDL_MAIN) results.txt work-obj93.cf