From 336a1b3a0edd43a3471ed622a352224529a0e5c1 Mon Sep 17 00:00:00 2001 From: FallenSigh Date: Sun, 12 Apr 2026 22:21:21 +0800 Subject: [PATCH] build(script): add bitstream copy automation script --- fpga/copy_bits.tcl | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 fpga/copy_bits.tcl diff --git a/fpga/copy_bits.tcl b/fpga/copy_bits.tcl new file mode 100644 index 0000000..57daee3 --- /dev/null +++ b/fpga/copy_bits.tcl @@ -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"