@@ -7,7 +7,6 @@ FPGA_ARCH = virtexuplus
77# Files for synthesis
88SYN_FILES = rtl/fpga.v
99SYN_FILES += rtl/fpga_core.v
10- SYN_FILES += rtl/debounce_switch.v
1110SYN_FILES += rtl/sync_signal.v
1211SYN_FILES += lib/eth/rtl/eth_mac_10g_fifo.v
1312SYN_FILES += lib/eth/rtl/eth_mac_10g.v
@@ -70,7 +69,7 @@ program: $(FPGA_TOP).bit
7069 echo " exit" >> program.tcl
7170 vivado -nojournal -nolog -mode batch -source program.tcl
7271
73- % _primary .mcs % _secondary.mcs % _primary.prm % _secondary .prm : % .bit
72+ % .mcs % .prm : % .bit
7473 echo " write_cfgmem -force -format mcs -size 128 -interface SPIx4 -loadbit {up 0x0000000 $* .bit} -checksum -file $* .mcs" > generate_mcs.tcl
7574 echo " exit" >> generate_mcs.tcl
7675 vivado -nojournal -nolog -mode batch -source generate_mcs.tcl
@@ -83,16 +82,16 @@ program: $(FPGA_TOP).bit
8382 do cp $* $$ x rev/$* _rev$$ COUNT$$ x; \
8483 echo " Output: rev/$* _rev$$ COUNT$$ x" ; done ;
8584
86- flash : $(FPGA_TOP ) _primary .mcs $(FPGA_TOP ) _secondary.mcs $( FPGA_TOP ) _primary.prm $( FPGA_TOP ) _secondary .prm
85+ flash : $(FPGA_TOP ) .mcs $(FPGA_TOP ) .prm
8786 echo " open_hw" > flash.tcl
8887 echo " connect_hw_server" >> flash.tcl
8988 echo " open_hw_target" >> flash.tcl
9089 echo " current_hw_device [lindex [get_hw_devices] 0]" >> flash.tcl
9190 echo " refresh_hw_device -update_hw_probes false [current_hw_device]" >> flash.tcl
9291 echo " create_hw_cfgmem -hw_device [current_hw_device] [lindex [get_cfgmem_parts {mt25qu01g-spi-x1_x2_x4}] 0]" >> flash.tcl
9392 echo " current_hw_cfgmem -hw_device [current_hw_device] [get_property PROGRAM.HW_CFGMEM [current_hw_device]]" >> flash.tcl
94- echo " set_property PROGRAM.FILES [list \" $( FPGA_TOP) _primary.mcs \" \" $( FPGA_TOP ) _secondary .mcs\" ] [current_hw_cfgmem]" >> flash.tcl
95- echo " set_property PROGRAM.PRM_FILES [list \" $( FPGA_TOP) _primary.prm \" \" $( FPGA_TOP ) _secondary .prm\" ] [current_hw_cfgmem]" >> flash.tcl
93+ echo " set_property PROGRAM.FILES [list \" $( FPGA_TOP) .mcs\" ] [current_hw_cfgmem]" >> flash.tcl
94+ echo " set_property PROGRAM.PRM_FILES [list \" $( FPGA_TOP) .prm\" ] [current_hw_cfgmem]" >> flash.tcl
9695 echo " set_property PROGRAM.ERASE 1 [current_hw_cfgmem]" >> flash.tcl
9796 echo " set_property PROGRAM.CFG_PROGRAM 1 [current_hw_cfgmem]" >> flash.tcl
9897 echo " set_property PROGRAM.VERIFY 1 [current_hw_cfgmem]" >> flash.tcl
0 commit comments