📄 xilinx.mf
字号:
@echo "-priority_extract yes" >> $@ @echo "-shreg_extract yes" >> $@ @echo "-shift_extract yes" >> $@ @echo "-xor_collapse yes" >> $@ @echo "-resource_sharing yes" >> $@ @echo "-mult_style auto" >> $@ @echo "-iobuf yes" >> $@ @echo "-max_fanout 500" >> $@ @echo "-bufg 8" >> $@ @echo "-register_duplication yes" >> $@ @echo "-equivalent_register_removal yes" >> $@ @echo "-register_balancing no" >> $@ @echo "-slice_packing yes" >> $@ @echo "-optimize_primitives no" >> $@ @echo "-iob auto" >> $@$(PROJ).ngc $(PROJ).xst.log : $(VHDL_SOURCES) $(PROJ).prj $(PROJ).lso $(PROJ).xst-script rm -rf work dump.xst xst $(OPT_INTSTYLE) -ifn $(PROJ).xst-script -ofn $(PROJ).xst.log rm -rf work dump.xst################################################################################ ## STAGE 2: ngdbuild ## needs: ## ## $(PROJ).ngc ## ## created files: ## ## $(PROJ).bld - human-readable build log ## $(PROJ).ngd - XILINX-XDB 0.1 STUB 0.1 ASCII / XILINX-XDM V1.2e ## ## created dir: ## _ngo ## ################################################################################$(PROJ).ngd $(PROJ).bld: $(PROJ).ngc rm -rf _ngo ngdbuild $(OPT_INTSTYLE) -dd _ngo -aul -p $(FPGA_TYPE) $(PROJ).ngc $(PROJ).ngd rm -rf _ngo################################################################################ ## STAGE 3: Mapper ## needs: ## ## $(PROJ).ngd ## ## created files: ## ## $(PROJ).pcf - ASCII file ## $(PROJ)_map.mrp - human-readable mapping report ## $(PROJ)_map.ncd - binary format ## $(PROJ)_map.ngm - XILINX-XDB 0.1 STUB 0.1 ASCII / XILINX-XDM V1.2e ## ## NOTE: ## ## In order to prevent the make process from terminating on these spurious ## problems, we precede the "map" invocation with a hyphen, instructing ## make to ignore the return code from "map". ## ################################################################################$(PROJ).pcf $(PROJ)_map.mrp $(PROJ)_map.ncd $(PROJ)_map.ngm: $(PROJ).ngd map $(OPT_INTSTYLE) -p $(FPGA_TYPE) -cm area -pr b -k 4 -c 100 -tx off -o $(PROJ)_map.ncd $(PROJ).ngd $(PROJ).pcf################################################################################ ## STAGE 4: Place-and-Route ## needs: ## ## $(PROJ).pcf ## $(PROJ)_map.ncd ## ## created files: ## ## $(PROJ).ncd - binary file ## $(PROJ).pad - ASCII file for import in spreadsheet ## $(PROJ).par - human-readable place-and-route report ## $(PROJ).xpi - ASCII file ## $(PROJ)_pad.csv - human-readable CVS file ## $(PROJ)_pad.txt - human-readable file ## ################################################################################$(PROJ).ncd $(PROJ).pad $(PROJ).par $(PROJ).xpi $(PROJ)_pad.csv $(PROJ)_pad.txt: $(PROJ).pcf $(PROJ)_map.ncd par -w $(OPT_INTSTYLE) -ol std -t 1 $(PROJ)_map.ncd $(PROJ).ncd $(PROJ).pcf################################################################################ ## STAGE 4.5 (optional): trace ## needs: ## ## created files: ## ################################################################################$(PROJ).twr $(PROJ).twx : $(PROJ)_map.ncd $(PROJ).pcf trce $(OPT_INTSTYLE) -e 3 -l 3 -xml $(PROJ) $(PROJ)_map.ncd -o $(PROJ).twr $(PROJ).pcf################################################################################ ## STAGE 5: Generate BIT-file ## needs: ## ## $(PROJ).ncd ## ## created files: $(PROJ).bgn $(PROJ).bit $(PROJ).drc ## ## $(PROJ).bgn - human-readable BitGen report ## $(PROJ).drc - human readable DRC report ## $(PROJ).bit - binary image file ## ################################################################################# We omit "-g StartUpClk:JtagClk" ; this doesn't work if the image is loaded# from a PROM.OPT_BITGEN = -w \ -g DebugBitstream:No \ -g Binary:no \ -g CRC:Enable \ -g ConfigRate:6 \ -g CclkPin:PullUp \ -g M0Pin:PullUp \ -g M1Pin:PullUp \ -g M2Pin:PullUp \ -g ProgPin:PullUp \ -g DonePin:PullUp \ -g TckPin:PullUp \ -g TdiPin:PullUp \ -g TdoPin:PullUp \ -g TmsPin:PullUp \ -g UnusedPin:PullDown \ -g UserID:0xFFFFFFFF \ -g DCMShutDown:Disable \ -g DONE_cycle:4 \ -g GTS_cycle:5 \ -g GWE_cycle:6 \ -g LCK_cycle:NoWait \ -g Match_cycle:Auto \ -g Security:None \ -g DonePipe:No \ -g DriveDone:No$(PROJ).bit $(PROJ).bgn $(PROJ).drc: $(PROJ).ncd bitgen $(OPT_INTSTYLE) $(OPT_BITGEN) $(PROJ).ncd
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -