Files
ciciec2026_loongson/fpga/copy_bits.tcl

10 lines
205 B
Tcl

# 获取 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"