]> rtime.felk.cvut.cz Git - fpga/pwm.git/blob - tb/Makefile
Multiplier and vector scaling components added
[fpga/pwm.git] / tb / Makefile
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
3 # it won't compile.
4
5 VHDL_MAIN     = tb_vector_scale
6 VHDL_ENTITIES = counter.o \
7                 pwm.o \
8                 wave_table.o \
9                 vector_gen.o \
10                 priority_encoder.o \
11                 mcc_master.o \
12                 sequencer.o \
13                 multiplier.o \
14                 vector_scale.o \
15                 pwm_dump.o \
16                 irc_dump.o \
17                 irc_base.o \
18                 mcc.o
19
20
21 STOP_TIME     = 50us
22
23
24 all: $(VHDL_MAIN)
25
26 run: $(VHDL_MAIN)
27         ghdl -r $< --stop-time=$(STOP_TIME) --vcd=$<.vcd
28
29 view: run
30         gtkwave $(VHDL_MAIN).vcd $(VHDL_MAIN).sav
31
32 $(VHDL_MAIN): $(VHDL_ENTITIES) $(VHDL_MAIN).o
33         ghdl -e -fexplicit --ieee=synopsys $@
34
35 %.o: %.vhd
36         ghdl -a -fexplicit --ieee=synopsys $<
37
38 %.o: ../%.vhd
39         ghdl -a -fexplicit --ieee=synopsys $<
40
41 clean:
42         rm -Rf *.o *.vcd $(VHDL_MAIN) results.txt work-obj93.cf
43