TA147

Ejecicios y trabajos prácticos de la materia Taller de Sistemas Digitales (TA147)
Index Commits Files Refs
vhdl/dev/adder_generic/Makefile (440B)
   1 GHDL          = ghdl
   2 DEV_NAME      = adder
   3 TOP           = $(DEV_NAME)_tb
   4 TOP_SRC       = $(TOP).vhd
   5 SRCS          = reg.vhd adder.vhd
   6 WAVEFORM_FILE = $(TOP).vcd
   7 
   8 all: run
   9 
  10 analyze:
  11     $(GHDL) -a $(SRCS)
  12     $(GHDL) -a $(TOP_SRC)
  13 
  14 elaborate: analyze
  15     $(GHDL) -e $(TOP)
  16 
  17 run: elaborate
  18     $(GHDL) -r $(TOP) --vcd=$(WAVEFORM_FILE) --stop-time=1ms
  19 
  20 clean:
  21     rm -f *.o *.cf $(TOP) $(TOP).vcd
  22 
  23 view: all
  24     nohup surfer $(WAVEFORM_FILE) >/dev/null 2>&1 &