Line 156... |
Line 156... |
$(Q)echo "#TIMESPEC \"TS_wb_clk\" = PERIOD \"wb_clk\" 20 ns HIGH 10;" >> $@
|
$(Q)echo "#TIMESPEC \"TS_wb_clk\" = PERIOD \"wb_clk\" 20 ns HIGH 10;" >> $@
|
|
|
# Generate coregen cores
|
# Generate coregen cores
|
coregen:
|
coregen:
|
$(Q)echo; echo "#### Running CORE Gen ####"; echo
|
$(Q)echo; echo "#### Running CORE Gen ####"; echo
|
$(Q)(. $(XILINX_SETTINGS_SCRIPT))
|
|
$(Q)$(shell cp $(COREGEN_XCO_FILES) .)
|
$(Q)$(shell cp $(COREGEN_XCO_FILES) .)
|
$(Q)$(shell cp $(COREGEN_CGP_FILE) .)
|
$(Q)$(shell cp $(COREGEN_CGP_FILE) .)
|
$(Q)for file in $(COREGEN_XCO_FILES); do \
|
$(Q)for file in $(COREGEN_XCO_FILES); do \
|
coregen -b $(notdir $$file) -p $(notdir $(COREGEN_CGP_FILE)) $(XILINX_FLAGS); \
|
coregen -b $(notdir $$file) -p $(notdir $(COREGEN_CGP_FILE)) $(XILINX_FLAGS); \
|
done
|
done
|
|
|
# XST command
|
# XST command
|
$(NGC_FILE): $(PRJ_FILE) $(XST_FILE) $(XCF_FILE) $(GENERATED_DEFINES) coregen
|
$(NGC_FILE): $(PRJ_FILE) $(XST_FILE) $(XCF_FILE) $(GENERATED_DEFINES) coregen
|
$(Q)echo; echo "\t#### Running XST ####"; echo;
|
$(Q)echo; echo "\t#### Running XST ####"; echo;
|
$(Q)(. $(XILINX_SETTINGS_SCRIPT) ; xst -ifn $(XST_FILE) $(XILINX_FLAGS) $(XST_FLAGS) )
|
$(Q)xst -ifn $(XST_FILE) $(XILINX_FLAGS) $(XST_FLAGS)
|
$(Q)echo
|
$(Q)echo
|
|
|
netlist: $(NETLIST_FILE)
|
netlist: $(NETLIST_FILE)
|
|
|
# Netlist generation command
|
# Netlist generation command
|
$(NETLIST_FILE): $(NGC_FILE)
|
$(NETLIST_FILE): $(NGC_FILE)
|
$(Q)echo; echo "\t#### Generating verilog netlist ####"; echo;
|
$(Q)echo; echo "\t#### Generating verilog netlist ####"; echo;
|
$(Q)(. $(XILINX_SETTINGS_SCRIPT) ; \
|
$(Q)netgen -sim -aka -dir . -ofmt verilog $< -w $@
|
netgen -sim -aka -dir . -ofmt verilog $< -w $@ )
|
|
|
|
|
|
clean:
|
clean:
|
$(Q)rm -rf *.* xst tmp _xmsgs xlnx_auto* *.lso
|
$(Q)rm -rf *.* xst tmp _xmsgs xlnx_auto* *.lso
|
|
|