update sim environment
This commit is contained in:
@@ -1,20 +1,17 @@
|
||||
TARGETS= timer interrupt_controller spi_controller
|
||||
TB=$(patsubst %, %_tb.sv, $(TARGETS))
|
||||
SRCS=$(shell find src/ -type f -name "*.*v")
|
||||
SRCS+=$(shell find ../ip/ -type f -name "*.*v" -not \( -name "*tmpl*" \))
|
||||
SRCS+=$(shell find ../src/ -type f -name "*.*v")
|
||||
|
||||
all: $(TARGETS)
|
||||
INC=$(shell find include/ -type f)
|
||||
|
||||
timer: timer_tb.sv
|
||||
iverilog -g2005-sv -s sim -o $@ $@_tb.sv ../$@.sv
|
||||
#TODO implement something like sources.list
|
||||
|
||||
spi_controller: spi_controller_tb.sv ../spi_controller.sv
|
||||
iverilog -g2005-sv -s sim -o $@ $@_tb.sv ../$@.sv
|
||||
TOP_MODULE=sim_top
|
||||
TARGET=sim_top
|
||||
|
||||
interrupt_controller: interrupt_controller_tb.sv
|
||||
iverilog -g2005-sv -s sim -o $@ $@_tb.sv ../$@.sv
|
||||
all:
|
||||
iverilog -g2005-sv -s $(TOP_MODULE) -o $(TARGET) $(INC) $(SRCS)
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
clean:
|
||||
rm -f $(TARGETS)
|
||||
rm -f *.vcd
|
||||
rm -f *.vvp
|
||||
rm -rf $(TARGET)
|
||||
Reference in New Issue
Block a user