Commit 5fde1bbb authored by Peter Jansweijer's avatar Peter Jansweijer

automatically generate bin file for QSPI slot 1 programming (use smapx8 and disbale bitswap)

parent 4f8e5a82
......@@ -181,12 +181,18 @@ close_design
set bitfile_name ${spec7_design}${version}_[string range $proj_device 3 6]_[clock format [clock seconds] -format %y%m%d_%H%M]
file copy ./work/${proj_name}.runs/impl_1/${proj_name}.bit ../${bitfile_name}.bit
file copy ./work/${proj_name}.runs/impl_1/${proj_name}.bit ./work/${bitfile_name}.bit
if [file exists ./${proj_name}.mmi] {
file copy ./${proj_name}.mmi ../${bitfile_name}.mmi
file copy ./${proj_name}.mmi ./work/${bitfile_name}.mmi
exec updatemem -meminfo ./${proj_name}.mmi -data ${wrpc_cpu_elf} -bit ./work/${proj_name}.runs/impl_1/${proj_name}.bit -proc ${wrpc_cpu_instpath} -out ../${bitfile_name}_elf.bit -force
file copy ../${bitfile_name}_elf.bit ./work/${bitfile_name}_elf.bit
# generate bin file (for QSPI slot 1 programming; use smapx8 and disbale bitswap
write_cfgmem -force -format bin -interface smapx8 -disablebitswap -loadbit "up 0x0 ../${bitfile_name}_elf.bit" -file ../${bitfile_name}_elf.bin
} else {
write_cfgmem -force -format bin -interface smapx8 -disablebitswap -loadbit "up 0x0 ../${bitfile_name}.bit" -file ../${bitfile_name}_elf.bin
}
if [file exists ./${proj_name}.xsa] {
file copy ./${proj_name}.xsa ../${bitfile_name}.xsa
file copy ./${proj_name}.xsa ./work/${bitfile_name}.xsa
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment