build(script): add bitstream copy automation script

This commit is contained in:
2026-04-12 22:21:21 +08:00
parent 190c2edbb2
commit 336a1b3a0e

9
fpga/copy_bits.tcl Normal file
View 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"