-
- $(xilinx_ise)xst -intstyle xflow -ifn main.xst -ofn main.syr < main.xst
- $(xilinx_ise)ngdbuild -intstyle xflow -aul -dd _ngo -nt timestamp -uc main.ucf -p $(device) main.ngc main.ngd
- $(xilinx_ise)map -intstyle xflow -ol ${effort} -p $(device) -pr b -cm area -o main_map.ncd main.ngd main.pcf
- $(xilinx_ise)par -intstyle xflow -ol ${effort} -w main_map.ncd main.ncd main.pcf
- $(xilinx_ise)bitgen -intstyle xflow -f main.ut main.ncd
-# $(xilinx_ise)trce -intstyle xflow -e 3 -l 3 -s ${speed_grade} -xml main main.ncd -o main.twr main.pcf
-# $(xilinx_edk)xmd -tcl $(remote_edk)/data/xmd/genace.tcl -jprog -hw main.bit -board ${board} -ace mainx.ace
-# mv build/fpga/mainx.ace build/fpga/main.ace # genace throws a fit if the filename prefix is the same?
-
+endif
+ifeq ($(impl),bee2)
+ echo '-w' >> build/fpga/main.ut
+ echo '-g DebugBitstream:No' >> build/fpga/main.ut
+ echo '-g Binary:no' >> build/fpga/main.ut
+ echo '-g CRC:Enable' >> build/fpga/main.ut
+ echo '-g ConfigRate:4' >> build/fpga/main.ut
+ echo '-g CclkPin:PullUp' >> build/fpga/main.ut
+ echo '-g M0Pin:PullUp' >> build/fpga/main.ut
+ echo '-g M1Pin:PullUp' >> build/fpga/main.ut
+ echo '-g M2Pin:PullUp' >> build/fpga/main.ut
+ echo '-g ProgPin:PullUp' >> build/fpga/main.ut
+ echo '-g DonePin:PullUp' >> build/fpga/main.ut
+ echo '-g PowerdownPin:PullUp' >> build/fpga/main.ut
+ echo '-g TckPin:PullUp' >> build/fpga/main.ut
+ echo '-g TdiPin:PullUp' >> build/fpga/main.ut
+ echo '-g TdoPin:PullNone' >> build/fpga/main.ut
+ echo '-g TmsPin:PullUp' >> build/fpga/main.ut
+ echo '-g UnusedPin:PullDown' >> build/fpga/main.ut
+ echo '-g UserID:0xFFFFFFFF' >> build/fpga/main.ut
+ echo '-g DCMShutdown:Disable' >> build/fpga/main.ut
+ echo '-g DisableBandgap:No' >> build/fpga/main.ut
+ echo '-g DCIUpdateMode:AsRequired' >> build/fpga/main.ut
+ echo '-g StartUpClk:CClk' >> build/fpga/main.ut
+ echo '-g DONE_cycle:4' >> build/fpga/main.ut
+ echo '-g GTS_cycle:5' >> build/fpga/main.ut
+ echo '-g GWE_cycle:6' >> build/fpga/main.ut
+ echo '-g LCK_cycle:NoWait' >> build/fpga/main.ut
+ echo '-g Security:None' >> build/fpga/main.ut
+ echo '-g DonePipe:No' >> build/fpga/main.ut
+ echo '-g DriveDone:No' >> build/fpga/main.ut
+ echo '-g Encrypt:No' >> build/fpga/main.ut
+endif
+ $(xilinx_ise)xst ${intstyle} -ifn main.xst -ofn main.syr < main.xst \
+ | grep --line-buffered -v 'been backward balanced into' \
+ | grep --line-buffered -v 'IDDR has been replaced by IDDR_2CLK' \
+ | grep --line-buffered -v 'WARNING:Xst:616 - Invalid property'
+ cat build/fpga/*.ucf > build/fpga/main.ucf
+ $(xilinx_ise)ngdbuild ${intstyle} -aul -dd _ngo -nt timestamp -uc main.ucf -p $(device) main.ngc main.ngd
+ $(xilinx_ise)map ${intstyle} -ol ${effort} -p $(device) -pr b -cm ${opt_for} -o main_map.ncd main.ngd main.pcf
+ $(xilinx_ise)par ${intstyle} -pl ${effort} -ol ${effort} -w main_map.ncd main.ncd main.pcf
+ $(xilinx_ise)trce ${intstyle} -e 3 -l 3 -s ${speed_grade} -xml main main.ncd -o main.twr main.pcf
+ $(xilinx_ise)bitgen ${intstyle} -f main.ut main.ncd
+ifneq ($(impl),bee2)
+ $(xilinx) tcl $(remote_edk)/data/xmd/genace.tcl -jprog -hw main.bit -board ${board} -ace mainx.ace
+ mv build/fpga/mainx.ace build/fpga/main.ace # genace throws a fit if the filename prefix is the same?
+endif