GHDL=ghdl tumbl_SRC=mbl_pkg.vhd mem.vhd fetch.vhd exeq.vhd decode.vhd core_ctrl.vhd tumbl_DIR=../tumbl lx_util_SRC=util_pkg.vhd lx_dad_pkg.vhd xilinx_dualport_bram.vhd lx_util_DIR=.. lx_dad_SRC=dff3.vhd dff2.vhd cnt_div.vhd measurement_register.vhd \ lx_crosdom_ser_fifo.vhd \ bus_example.vhd lx_example_mem.vhd bus_measurement.vhd lx_dad_top.vhd \ clockgen.vhd bus_sensor.vhd sensor_mem.vhd lx_adc_if.vhd lx_dad_DIR=.. MODULES=lx_util lx_dad SRC=$(foreach m, $(MODULES), $($(m)_SRC:%=$($(m)_DIR)/%)) $(warning SRC=$(SRC)) SRC+=lx_dad_top_tb.vhd CFLAGS += -Wall GHDLFLAGS+= ANALYZEFLAGS+=--std=93c -fexplicit -ggdb #SIM_FLAGS=--stop-time=1000ns #--ieee-asserts=disable all: test-lx-dad #convert_bin2bits : convert_bin2bits.o #imem.bits : imem.bin convert_bin2bits # ./convert_bin2bits $< >$@ test-lx-dad: analyze-all #imem.bits $(GHDL) $(GHDLFLAGS) -m $(ANALYZEFLAGS) lx_dad_top_tb $(GHDL) $(GHDLFLAGS) -r lx_dad_top_tb --stop-time=1000000ns --vcd=$@.vcd --wave=$@.ghw analyze-all: $(SRC) $(GHDL) $(GHDLFLAGS) -a $(ANALYZEFLAGS) $(SRC) clean: rm -f convert_bin2bits rm -f *.o $(GHDL) --clean $(RM) work-obj93.cf