little improvement on Makefile

This commit is contained in:
2020-10-22 22:15:18 -05:00
parent 7bb2d41932
commit 9fe8d26364

View File

@@ -34,15 +34,16 @@ $(SIM_TARGET): $(SIM_SRC) $(BUILD_DIR)/Vtop__ALL.a
@echo "Run simulation with ./$(SIM_TARGET)" @echo "Run simulation with ./$(SIM_TARGET)"
$(BUILD_DIR)/top.json: $(RTL_SRC) $(BUILD_DIR)/top.json: $(RTL_SRC)
@echo "Synthesizing" @echo "Synthesizing ..."
@mkdir -p $(BUILD_DIR) @mkdir -p $(BUILD_DIR)
@$(YOSYS) -p "synth_ice40 -top top -json build/top.json" -q $^ @$(YOSYS) -p "synth_ice40 -top top -json build/top.json" -q $^
$(BIN_TARGET): $(BUILD_DIR)/top.json $(PCF) $(BIN_TARGET): $(BUILD_DIR)/top.json $(PCF)
@echo "Routing and building binary stream" @echo "Routing and building binary stream ..."
@$(PNR) -r --hx8k --json $< --package cb132 \ @$(PNR) -r --hx8k --json $< --package cb132 \
--asc build/top.asc --opt-timing --pcf $(PCF) -q --asc $(BUILD_DIR)/top.asc --opt-timing --pcf $(PCF) -q
@$(IPACK) build/top.asc build/top.bin @$(IPACK) $(BUILD_DIR)/top.asc $@
@echo "Done!"
burn: $(BIN_TARGET) burn: $(BIN_TARGET)
@$(BURN) $< @$(BURN) $<