Skip to content

Commit 5d6d484

Browse files
Fix Makefile: add missing tab characters in recipe lines
All recipe lines in the Makefile must start with a tab character, not spaces. This fixes the 'Makefile:46: *** missing separator. Stop.' error. Fixed lines: - Line 43: verilator target recipe - Line 46-49: $(BUILD_DIR)/V$(TOP_MODULE) target recipe - Line 52: run-verilator target recipe - Line 55-58: xsim target recipe - Line 61: clean target recipe - Line 64-80: help target recipe
1 parent 2ad61c3 commit 5d6d484

1 file changed

Lines changed: 28 additions & 28 deletions

File tree

‎sim/Makefile‎

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -40,41 +40,41 @@ XSIM_FLAGS := -nolog -norecompile
4040
all: verilator
4141

4242
verilator: $(BUILD_DIR)/V$(TOP_MODULE)
43-
@echo "✓ Simulation binary ready: $(BUILD_DIR)/V$(TOP_MODULE)"
43+
@echo "✓ Simulation binary ready: $(BUILD_DIR)/V$(TOP_MODULE)"
4444

4545
$(BUILD_DIR)/V$(TOP_MODULE): $(RTL_SRCS) $(TB_SRCS)
46-
@mkdir -p $(BUILD_DIR)
47-
verilator $(VERILATOR_FLAGS) \
48-
$(RTL_SRCS) $(TB_SRCS)
49-
$(MAKE) -C $(OBJ_DIR) -f V$(TOP_MODULE).mk
46+
@mkdir -p $(BUILD_DIR)
47+
verilator $(VERILATOR_FLAGS) \
48+
$(RTL_SRCS) $(TB_SRCS)
49+
$(MAKE) -C $(OBJ_DIR) -f V$(TOP_MODULE).mk
5050

5151
run-verilator: $(BUILD_DIR)/V$(TOP_MODULE)
52-
$(BUILD_DIR)/V$(TOP_MODULE)
52+
$(BUILD_DIR)/V$(TOP_MODULE)
5353

5454
xsim:
55-
@echo "Compiling with XSIM (Vivado)..."
56-
xvlog $(RTL_SRCS) $(TB_SRCS)
57-
xelab $(XSIM_FLAGS) $(TOP_MODULE)
58-
xsim $(TOP_MODULE) $(XSIM_FLAGS)
55+
@echo "Compiling with XSIM (Vivado)..."
56+
xvlog $(RTL_SRCS) $(TB_SRCS)
57+
xelab $(XSIM_FLAGS) $(TOP_MODULE)
58+
xsim $(TOP_MODULE) $(XSIM_FLAGS)
5959

6060
clean:
61-
rm -rf $(BUILD_DIR) *.log *.jou xelab.* xsim.dir/ *.wdb
61+
rm -rf $(BUILD_DIR) *.log *.jou xelab.* xsim.dir/ *.wdb
6262

6363
help:
64-
@echo "Open Cognitive Core Project - Build System"
65-
@echo "============================================="
66-
@echo ""
67-
@echo "Usage:"
68-
@echo " make - Build with Verilator (default)"
69-
@echo " make verilator - Build with Verilator"
70-
@echo " make xsim - Build with XSIM (Vivado)"
71-
@echo " make run-verilator - Run Verilator simulation"
72-
@echo " make clean - Remove build artifacts"
73-
@echo ""
74-
@echo "Environment Variables:"
75-
@echo " SIM=<tool> - Select simulator (verilator|xsim)"
76-
@echo " TOP_MODULE=<name> - Top module for simulation"
77-
@echo ""
78-
@echo "Examples:"
79-
@echo " make TOP_MODULE=tb_softmax"
80-
@echo " make xsim TOP_MODULE=tb_axi4_lite"
64+
@echo "Open Cognitive Core Project - Build System"
65+
@echo "============================================="
66+
@echo ""
67+
@echo "Usage:"
68+
@echo " make - Build with Verilator (default)"
69+
@echo " make verilator - Build with Verilator"
70+
@echo " make xsim - Build with XSIM (Vivado)"
71+
@echo " make run-verilator - Run Verilator simulation"
72+
@echo " make clean - Remove build artifacts"
73+
@echo ""
74+
@echo "Environment Variables:"
75+
@echo " SIM=<tool> - Select simulator (verilator|xsim)"
76+
@echo " TOP_MODULE=<name> - Top module for simulation"
77+
@echo ""
78+
@echo "Examples:"
79+
@echo " make TOP_MODULE=tb_softmax"
80+
@echo " make xsim TOP_MODULE=tb_axi4_lite"

0 commit comments

Comments
 (0)