-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 677 Bytes
/
Copy pathMakefile
File metadata and controls
27 lines (21 loc) · 677 Bytes
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
GHDL = ghdl
TARGET_001 = I2C_minion_TB_001_ideal
TARGET_002 = I2C_minion_TB_002_noisy_scl
RM = rm -rf
SIM_DIR = ./sim
MKDIR_P = mkdir -p
all: mkdir_and_copy target_001 target_002
mkdir_and_copy:
$(MKDIR_P) $(SIM_DIR)
cp *.vhd $(SIM_DIR)
target_001: $(TARGET_001).vhd
cd $(SIM_DIR) && $(GHDL) -i *.vhd && $(GHDL) -m $(TARGET_001) ; \
$(GHDL) -r $(TARGET_001) --stop-delta=10 --wave=./$(TARGET_001).ghw ;
target_002: $(TARGET_002).vhd
cd $(SIM_DIR) && $(GHDL) -i *.vhd && $(GHDL) -m $(TARGET_002) ; \
$(GHDL) -r $(TARGET_002) --stop-delta=50 --wave=./$(TARGET_002).ghw ;
.PHONY: clean
clean:
$(RM) $(SIM_DIR)/*.vhd
$(RM) $(SIM_DIR)/*.ghw
$(RM) $(SIM_DIR)/*.cf