summaryrefslogtreecommitdiffstats
path: root/s3estarter/sim/Makefile
blob: 0535859b10ddb55efc65aac4d81d1ceec2f37691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
library      = s3estarter
top          = top_tb

rtl_files    = ../rtl/fpga_types.vhd \
	       ../rtl/fpga_components.vhd \
               ../rtl/*.vhd

rtl_tb_files = ../rtl_tb/*.vhd

vhdlfiles    = $(rtl_files) $(rtl_tb_files)


all: compile simulate

compile_others:
	make compile --directory ../../rena3/sim

compile: lib
	vcom -2008 -work $(library) $(vhdlfiles) | ccze -A

simulate:
	export top=$(top); \
	vsim -quiet -gui $(library).$(top) -do run.do


clean:
	rm -rf $(library) 
	rm -f transcript
	rm -f *.wlf
	rm -f wlf*


# default patterns

lib:	$(library)

$(library):
	vlib $(library)
OpenPOWER on IntegriCloud