build(script): add bitstream copy automation script
This commit is contained in:
9
fpga/copy_bits.tcl
Normal file
9
fpga/copy_bits.tcl
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# 获取 bit 文件路径
|
||||||
|
set bitfile "project/Loongson_Soc.runs/impl_1/soc_top.bit"
|
||||||
|
# 目标路径
|
||||||
|
set dst "../sdk/top.bit"
|
||||||
|
|
||||||
|
# 执行复制
|
||||||
|
file copy -force $bitfile $dst
|
||||||
|
|
||||||
|
puts "Bitstream copied to $dst"
|
||||||
Reference in New Issue
Block a user