Skip to content

Instantly share code, notes, and snippets.

@zeptometer
Created June 6, 2014 10:37
Show Gist options
  • Select an option

  • Save zeptometer/53f1a420a7be3bd24d0e to your computer and use it in GitHub Desktop.

Select an option

Save zeptometer/53f1a420a7be3bd24d0e to your computer and use it in GitHub Desktop.
TESTBENCH = u232c_in_tb u232c_out_tb u232c_byteio_tb
OBJECTS = u232c_in.o u232c_out.o u232c_byteio.o \
u232c_in_tb.o u232c_out_tb.o u232c_byteio_tb.o \
byte_processor.o
GHDLC = ghdl
GHDLFLAGS = -fexplicit --ieee=synopsys
GHDL_SIM_OPT = --stop-time=1ms --ieee-asserts=disable
.PHONY: clean
all: $(TESTBENCH)
$(OBJECTS): %.o: %.vhd
$(GHDLC) -a $(GHDLFLAGS) $^
$(TESTBENCH): $(OBJECTS)
$(GHDLC) -e $(GHDLFLAGS) $@
$(GHDLC) -r $(GHDLFLAGS) $@ $(GHDL_SIM_OPT) --vcd=$@.vcd
clean :
$(GHDLC) --clean
rm *.vcd work-obj93.cf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment