]> rtime.felk.cvut.cz Git - fpga/zynq/canbench-sw.git/blob - system/script/dist.tcl
bootscript: changed IPs, updated paths
[fpga/zynq/canbench-sw.git] / system / script / dist.tcl
1 # post-write_bitstream script
2 # executed in impl_1 directory
3
4 #set dir [get_property DIRECTORY [current_project]]
5 #set impl_dir [get_property DIRECTORY [current_run]]
6 set _pwd [pwd]
7 set impl_dir .
8 set dir ../..
9 puts "Current dir: $_pwd"
10 puts "Project dir: $dir"
11 puts "Impl dir: $impl_dir"
12 file copy -force $impl_dir/top_wrapper.hwdef $dir/../system.hdf
13 file copy -force $impl_dir/top_wrapper.bit $dir/../system.bit
14 file copy -force $dir/../system.bit /tftpboot/uzedcan/system.bit
15
16 cd $dir/..
17 exec bootgen -image system.bif -w -process_bitstream bin
18 cd $_pwd
19
20 file copy -force $dir/../system.bit.bin /export/canbench/system.bit.bin
21 exec gzip -f /export/canbench/system.bit.bin