run.log 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. > alta::tcl_whisper "Cmd : [alta::prog_path] [alta::prog_version]([alta::prog_subversion])\n"
  2. Cmd : C:/Users/zzz17/AgRV_pio/packages/tool-agrv_logic/bin/af.exe 2025.06.b0(3f05be1c)
  3. > alta::tcl_whisper "Args : [string map {\{ \" \} \"} $tcl_cmd_args]\n"
  4. Args : -X "set QUARTUS_SDC true" -X "set FITTING Auto" -X "set FITTER full" -X "set EFFORT high" -X "set HOLDX default" -X "set SKEW basic" -X "set MODE QUARTUS" -X "set FLOW ALL" -F ./af_run.tcl
  5. >
  6. > set_seed_rand $SEED
  7. > set ar_timing_derate ${TIMING_DERATE}
  8. >
  9. > date_time
  10. Sat May 09 16:12:48 2026
  11. > if { [file exists [file join . ${DESIGN}.pre.asf]] } {
  12. alta::tcl_highlight "Using pre-ASF file ${DESIGN}.pre.asf.\n"
  13. source [file join . ${DESIGN}.pre.asf]
  14. }
  15. Using pre-ASF file fpga_boot.pre.asf.
  16. > # pio_begin >>>>>> DO NOT MODIFY THIS SECTION! >>>>>>
  17. > set BOARD_PLL_CLKIN PIN_OSC
  18. > set db_io_name_priority False
  19. > set ip_pll_vco_lowpower true
  20. > set_global_assignment -name ON_CHIP_BITSTREAM_DECOMPRESSION "ON"
  21. > # pio_end <<<<<< DO NOT MODIFY THIS SECTION! <<<<<<
  22. > ##
  23. >
  24. >
  25. > set LOAD_DB false
  26. > set LOAD_PLACE false
  27. > set LOAD_ROUTE false
  28. > set LOAD_PACK false
  29. > if { $FLOW == "LOAD" || $FLOW == "CHECK" || $FLOW == "PROBE" } {
  30. set LOAD_DB true
  31. set LOAD_PLACE true
  32. set LOAD_ROUTE true
  33. } elseif { $FLOW == "R" || $FLOW == "ROUTE" } {
  34. set LOAD_DB true
  35. set LOAD_PLACE true
  36. } elseif { $FLOW == "PR" || $FLOW == "PLACE_AND_ROUTE" } {
  37. set LOAD_DB false
  38. set LOAD_PACK true
  39. }
  40. >
  41. > set ORIGINAL_QSF "./fpga_boot.qsf"
  42. > set ORIGINAL_PIN ""
  43. >
  44. > #################################################################################
  45. >
  46. > # The default SDC file is ${DESIGN}.sdc
  47. > set sdc_file $SDC_FILE
  48. > if { $sdc_file == "" } {
  49. set sdc_file [file join . ${DESIGN}.adc]
  50. if { ! [file exists $sdc_file] } { set sdc_file [file join . ${DESIGN}.sdc]; }
  51. }
  52. > # No default VE file is not specified
  53. > set ve_file $VEX_FILE
  54. >
  55. > while (1) {
  56. if { $FLOW == "SKIP" } { break }
  57. if { [info exists CORNER] } { set_mode -corner $CORNER; }
  58. eval "load_architect ${no_route} -type ${DEVICE} 1 1 1000 1000"
  59. foreach ip_file $IP_FILES { read_ip $ip_file; }
  60. if { $FLOW == "GEN" } {
  61. if { ! [info exists CONFIG_BITS] } {
  62. set CONFIG_BITS [file join ${RESULT_DIR} ${DESIGN}.bin]
  63. }
  64. if { [llength $CONFIG_BITS] > 1 } {
  65. if { ! [info exists BOOT_BINARY] } {
  66. set BOOT_BINARY [file join ${RESULT_DIR} ${DESIGN}_boot.bin]
  67. }
  68. if { ! [info exists CONFIG_ADDRESSES] } {
  69. set CONFIG_ADDRESSES ""
  70. }
  71. generate_binary -master $BOOT_BINARY -inputs $CONFIG_BITS -address $CONFIG_ADDRESSES
  72. } else {
  73. set CONFIG_ROOT [file rootname [lindex $CONFIG_BITS 0]]
  74. set SLAVE_RBF "${CONFIG_ROOT}_slave.rbf"
  75. set MASTER_BINARY "${CONFIG_ROOT}_master.bin"
  76. if { [file exists [lindex $CONFIG_BITS 0]] } {
  77. generate_binary -slave $SLAVE_RBF -inputs [lindex $CONFIG_BITS 0] -reverse
  78. generate_binary -master $MASTER_BINARY -inputs [lindex $CONFIG_BITS 0]
  79. }
  80. if { ! [info exists BOOT_BINARY] } {
  81. set BOOT_BINARY $MASTER_BINARY
  82. }
  83. }
  84. set PRG_FILE [file rootname $BOOT_BINARY].prg
  85. set AS_FILE [file rootname $BOOT_BINARY]_as.prg
  86. generate_programming_file $BOOT_BINARY -erase $ERASE \
  87. -program $PROGRAM -verify $VERIFY -offset $OFFSET \
  88. -prg $PRG_FILE -as $AS_FILE
  89. break
  90. }
  91. if { $LOAD_DB } {
  92. load_db -top ${TOP_MODULE}
  93. if { [file exists $sdc_file] } { read_sdc $sdc_file; }
  94. } elseif { $MODE == "QUARTUS" } {
  95. set verilog ${DESIGN}.vo
  96. set is_migrated false
  97. if { ! [file exists $verilog] } {
  98. set verilog [file join . simulation modelsim ${DESIGN}.vo]
  99. set is_migrated true
  100. }
  101. if { ! [file exists $verilog] } {
  102. error "Can not find design verilog file $verilog"
  103. }
  104. alta::tcl_highlight "Using design verilog file $verilog.\n"
  105. if { $ve_file != "" && ! [file exists $ve_file] } {
  106. alta::tcl_warn "Can not find design VE file $ve_file"
  107. set ve_file ""
  108. } else {
  109. alta::tcl_highlight "Using design VE file $ve_file.\n"
  110. }
  111. set ret [read_design -top ${TOP_MODULE} -ve $ve_file -qsf $ORIGINAL_QSF $verilog -hierachy 1]
  112. if { !$ret } { exit -1; }
  113. if { $sdc_file != "" && ! [file exists $sdc_file] } {
  114. alta::tcl_warn "Can not find design SDC file $sdc_file"
  115. set sdc_file ""
  116. } else {
  117. alta::tcl_highlight "Using design SDC file $sdc_file.\n"
  118. read_sdc $sdc_file
  119. }
  120. } elseif { $MODE == "SYNPLICITY" || $MODE == "NATIVE" } {
  121. set_hierarchy_separator .
  122. set db_gclk_assignment_level 2
  123. set verilog ${DESIGN}.vqm
  124. set is_migrated false
  125. if { ! [file exists $verilog] } {
  126. error "Can not find design verilog file $verilog"
  127. }
  128. if { $VEX_FILE != "" } {
  129. if { $VEX_FILE == "-" } {
  130. set VEX_FILE ""
  131. } elseif { ! [file exists $VEX_FILE] } {
  132. error "Can not find design VE file $VEX_FILE"
  133. }
  134. }
  135. if { $AGF_FILE != "" } {
  136. if { $AGF_FILE == "-" } {
  137. set AGF_FILE ""
  138. } elseif { ! [file exists $AGF_FILE] } {
  139. error "Can not find design AGF file $AGF_FILE"
  140. }
  141. }
  142. set alta0_asf [file join $::alta_work alta0.asf]
  143. set alta0_apf [file join $::alta_work alta0.apf]
  144. file delete -force $alta0_asf
  145. file delete -force $alta0_apf
  146. if { $AGF_FILE != "" || $VEX_FILE != "" } {
  147. alta::convert_pio_settings_cmd $VEX_FILE $AGF_FILE $alta0_asf $alta0_apf
  148. }
  149. alta::tcl_highlight "Using design verilog file $verilog.\n"
  150. if { $sdc_file != "" && ! [file exists $sdc_file] } {
  151. alta::tcl_warn "Can not find design SDC file $sdc_file"
  152. set sdc_file ""
  153. } else {
  154. alta::tcl_highlight "Using design SDC file $sdc_file.\n"
  155. }
  156. set load_pack ""
  157. if { $LOAD_PACK } { set load_pack "-load_pack"; }
  158. set ret [eval "read_design_and_pack $load_pack -sdc {$sdc_file} -top ${TOP_MODULE} -type vqm -gclk_level 2 $verilog"]
  159. set FITTER "full"
  160. if { !$ret } { exit -1; }
  161. } else {
  162. error "Unsupported mode $MODE"
  163. }
  164. if { $FLOW == "PACK" } { break }
  165. if { [info exists FITTING] } {
  166. if { $FITTING == "Auto" } { set FITTING auto; }
  167. set_mode -fitting $FITTING
  168. }
  169. if { [info exists FITTER] } {
  170. if { $FITTER == "Auto" } {
  171. if { $MODE == "QUARTUS" } { set FITTER hybrid; } else { set FITTER full; }
  172. }
  173. if { $MODE == "SYNPLICITY" || $MODE == "NATIVE" } { set FITTER full; }
  174. set_mode -fitter $FITTER
  175. }
  176. if { [info exists EFFORT] } { set_mode -effort $EFFORT; }
  177. if { [info exists SKEW ] } { set_mode -skew $SKEW ; }
  178. if { [info exists SKOPE ] } { set_mode -skope $SKOPE ; }
  179. if { [info exists HOLDX ] } { set_mode -holdx $HOLDX; }
  180. if { [info exists TUNING] } { set_mode -tuning $TUNING; }
  181. if { [info exists TARGET] } { set_mode -target $TARGET; }
  182. if { [info exists PRESET] } { set_mode -preset $PRESET; }
  183. if { [info exists ADJUST] } { set pl_criticality_wadjust $ADJUST; }
  184. set alta_aqf [file join $::alta_work alta.aqf]
  185. if { $LOAD_DB } {
  186. # Empty
  187. } else {
  188. file delete -force $alta_aqf
  189. if { true } {
  190. if { $ORIGINAL_PIN != "" } {
  191. if { [file exists $VE_FILE] } {
  192. set ORIGINAL_PIN ""
  193. } elseif { $ORIGINAL_PIN == "-" } {
  194. set ORIGINAL_PIN ""
  195. } elseif { ! [file exists $ORIGINAL_PIN] } {
  196. if { $is_migrated } {
  197. error "Can not find design PIN file $ORIGINAL_PIN, please compile design first"
  198. }
  199. set ORIGINAL_PIN ""
  200. }
  201. }
  202. if { $ORIGINAL_QSF != "" } {
  203. if { $ORIGINAL_QSF == "-" } {
  204. set ORIGINAL_QSF ""
  205. } elseif { ! [file exists $ORIGINAL_QSF] } {
  206. if { $is_migrated } {
  207. error "Can not find design exported QSF file $ORIGINAL_QSF, please export assigments first"
  208. }
  209. }
  210. }
  211. if { $ORIGINAL_QSF != "" || $ORIGINAL_PIN != "" } {
  212. alta::convert_quartus_settings_cmd $ORIGINAL_QSF $ORIGINAL_PIN $alta_aqf
  213. }
  214. }
  215. }
  216. if { [file exists "$alta_aqf"] } {
  217. alta::tcl_highlight "Using AQF file $alta_aqf.\n"
  218. source "$alta_aqf"
  219. }
  220. if { [file exists [file join . ${DESIGN}.asf]] } {
  221. alta::tcl_highlight "Using ASF file ${DESIGN}.asf.\n"
  222. source [file join . ${DESIGN}.asf]
  223. }
  224. if { $FLOW == "PROBE" } {
  225. set ret [eval "place_pseudo ${user_io} -place_io -place_pll -place_gclk"]
  226. if { !$ret } { exit -1 }
  227. set force ""
  228. if { [info exists PROBE_FORCE] && $PROBE_FORCE } { set force "-force" }
  229. eval "probe_design -froms {${PROBE_FROMS}} -tos {${PROBE_TOS}} ${force}"
  230. } elseif { $FLOW == "CHECK" } {
  231. set ret [eval "place_pseudo ${user_io} -place_io -place_pll -place_gclk"]
  232. if { !$ret } { exit -1 }
  233. if { [file exists [file join . ${DESIGN}.chk]] } {
  234. alta::tcl_highlight "Using CHK file ${DESIGN}.chk.\n"
  235. source [file join . ${DESIGN}.chk]
  236. place_design -dry
  237. check_design -rule led_guide
  238. } else {
  239. error "Can not find design CHECK file ${DESIGN}.chk"
  240. }
  241. } else {
  242. set ret [eval "place_pseudo ${user_io} -place_io -place_pll -place_gclk -warn_io"]
  243. if { !$ret } { exit -1 }
  244. set org_place ""
  245. set load_place ""
  246. set load_route ""
  247. set quiet ""
  248. if { $ORG_PLACE } { set org_place "-org_place" ; }
  249. if { $LOAD_PLACE } { set load_place "-load_place"; }
  250. if { $LOAD_ROUTE } { set load_route "-load_route"; }
  251. eval "place_and_route_design $org_place $load_place $load_route \
  252. -retry $RETRY $seed_rand $quiet"
  253. }
  254. date_time
  255. if { $FLOW != "CHECK" } {
  256. if { $FLOW != "PROBE" } {
  257. report_timing -verbose 2 -setup -file $::alta_work/setup.rpt.gz
  258. report_timing -verbose 1 -setup -file $::alta_work/setup_summary.rpt
  259. report_timing -verbose 2 -hold -file $::alta_work/hold.rpt.gz
  260. report_timing -verbose 1 -hold -file $::alta_work/hold_summary.rpt
  261. set ta_report_auto_constraints 0
  262. report_timing -fmax -file $::alta_work/fmax.rpt
  263. report_timing -xfer -file $::alta_work/xfer.rpt
  264. set ta_report_auto_constraints $ta_report_auto
  265. set ta_dump_uncovered 1
  266. report_timing -verbose 1 -coverage >! $::alta_work/coverage.rpt.gz
  267. set ta_dump_uncovered -1
  268. if { ! [info exists rt_report_timing_fast] } {
  269. set rt_report_timing_fast false
  270. }
  271. if { $rt_report_timing_fast } {
  272. set_timing_corner fast
  273. route_delay -quiet
  274. report_timing -verbose 2 -setup -file $::alta_work/setup_fast.rpt.gz
  275. report_timing -verbose 1 -setup -file $::alta_work/setup_fast_summary.rpt
  276. report_timing -verbose 2 -hold -file $::alta_work/hold_fast.rpt.gz
  277. report_timing -verbose 1 -hold -file $::alta_work/hold_fast_summary.rpt
  278. set ta_report_auto_constraints 0
  279. report_timing -fmax -file $::alta_work/fmax_fast.rpt
  280. report_timing -xfer -file $::alta_work/xfer_fast.rpt
  281. set ta_report_auto_constraints $ta_report_auto
  282. }
  283. write_routed_design "${RESULT_DIR}/${RESULT}_routed.v"
  284. }
  285. bitgen normal -prg "${RESULT_DIR}/${RESULT}.prg" -bin "${RESULT_DIR}/${RESULT}.bin"
  286. if { true } {
  287. alta::bin_to_asc "${RESULT_DIR}/${RESULT}.bin" "${RESULT_DIR}/${RESULT}.inc"
  288. set python_exe [expr {$tcl_platform(platform) eq "unix" ? "python3" : "python.exe"}]
  289. if { ! [ info exist BATCH_ARG ] } {
  290. set BATCH_ARG ""
  291. }
  292. set LOGIC_COMPRESS [alta::get_global_assignment_cmd ON_CHIP_BITSTREAM_DECOMPRESSION false]
  293. if { [string toupper $LOGIC_COMPRESS] != "OFF" } {
  294. set BATCH_ARG "$BATCH_ARG --logic-compress"
  295. }
  296. set BATCH_MCU 0xbff5105000730062aa234371030002b7
  297. if { [info exists BATCH_HSE] } {
  298. set BATCH_MCU 0xbff5105000730062a62343110062aa234371030002b7
  299. }
  300. set GEN_BATCH "{[alta::prog_home]/python_dist/$python_exe} {[alta::prog_home]/pio/gen_batch}\
  301. -d [[alta::get_device_info_cmd $DEVICE] device_id]\
  302. -i $BATCH_MCU\
  303. -o ${RESULT_DIR}/${RESULT}_batch.bin\
  304. --logic-config ${RESULT_DIR}/${RESULT}.bin\
  305. --logic-address 0x80007000\
  306. $BATCH_ARG"
  307. alta::tcl_highlight "Generating batch file: $GEN_BATCH\n"
  308. eval "exec $GEN_BATCH"
  309. } else {
  310. bitgen sram -prg "${RESULT_DIR}/${RESULT}_sram.prg"
  311. bitgen download -bin "${RESULT_DIR}/${RESULT}.bin" -svf "${RESULT_DIR}/${RESULT}_download.svf"
  312. generate_binary -slave "${RESULT_DIR}/${RESULT}_slave.rbf" \
  313. -inputs "${RESULT_DIR}/${RESULT}.bin" -reverse
  314. generate_binary -master "${RESULT_DIR}/${RESULT}_master.bin" \
  315. -inputs "${RESULT_DIR}/${RESULT}.bin"
  316. generate_programming_file "${RESULT_DIR}/${RESULT}_master.bin" -prg "${RESULT_DIR}/${RESULT}_master.prg" \
  317. -as "${RESULT_DIR}/${RESULT}_master_as.prg" -hybrid "${RESULT_DIR}/${RESULT}_hybrid.prg"
  318. }
  319. }
  320. break
  321. }
  322. Total IO : 150
  323. Total Pin : 128/17
  324. Top array is built.
  325. Loading architect libraries...
  326. ## CPU time: 0:0:0, REAL time: 0:0:0
  327. ## Memory Usage: 52MB (52MB)
  328. Loading route table...
  329. ## CPU time: 0:0:2, REAL time: 0:0:2
  330. ## Memory Usage: 317MB (317MB)
  331. Using design verilog file ./simulation/modelsim/fpga_boot.vo.
  332. Using design VE file fpga_boot.vex.
  333. Preparing design...
  334. Info: Rename duplicated module cell alta_rv32 to alta_rv32_duplicated at ./alta_db/flatten.vx:1.
  335. Info: Removing bbox feeder slice gpio0_io_in[0] driving BBOX rv32|gpio0_io_in[0].
  336. Info: Removing bbox feeder slice gpio0_io_out_data[0] driven by BBOX rv32|gpio0_io_out_data[0].
  337. Info: Removing bbox feeder slice gpio0_io_out_en[0] driven by BBOX rv32|gpio0_io_out_en[0].
  338. Info: Removing bbox feeder slice gpio4_io_in[1] driving BBOX rv32|gpio4_io_in[1].
  339. Info: Removing bbox feeder slice gpio4_io_in[2] driving BBOX rv32|gpio4_io_in[2].
  340. Info: Removing bbox feeder slice gpio4_io_out_data[1] driven by BBOX rv32|gpio4_io_out_data[1].
  341. Info: Removing bbox feeder slice gpio4_io_out_data[2] driven by BBOX rv32|gpio4_io_out_data[2].
  342. Info: Removing bbox feeder slice gpio4_io_out_data[5] driven by BBOX rv32|gpio4_io_out_data[5].
  343. Info: Removing bbox feeder slice gpio4_io_out_data[6] driven by BBOX rv32|gpio4_io_out_data[6].
  344. Info: Removing bbox feeder slice gpio4_io_out_en[1] driven by BBOX rv32|gpio4_io_out_en[1].
  345. Info: Removing bbox feeder slice gpio4_io_out_en[2] driven by BBOX rv32|gpio4_io_out_en[2].
  346. Info: Removing bbox feeder slice gpio4_io_out_en[5] driven by BBOX rv32|gpio4_io_out_en[5].
  347. Info: Removing bbox feeder slice gpio4_io_out_en[6] driven by BBOX rv32|gpio4_io_out_en[6].
  348. Info: Removing bbox feeder slice gpio6_io_in[1] driving BBOX rv32|gpio6_io_in[1].
  349. Info: Removing bbox feeder slice gpio7_io_out_data[6] driven by BBOX rv32|gpio7_io_out_data[6].
  350. Info: Removing bbox feeder slice gpio7_io_out_en[6] driven by BBOX rv32|gpio7_io_out_en[6].
  351. Info: Removing bbox feeder slice sys_ctrl_clkSource[0] driven by BBOX rv32|sys_ctrl_clkSource[0].
  352. Info: Removing bbox feeder slice sys_ctrl_clkSource[1] driven by BBOX rv32|sys_ctrl_clkSource[1].
  353. ## CPU time: 0:0:0, REAL time: 0:0:0
  354. ## Memory Usage: 336MB (336MB)
  355. Pseudo pack design...
  356. Using location file fpga_boot.vex
  357. VCO frequency: 416.000 Mhz
  358. clkout0: Enabled , 104.000 Mhz
  359. clkout1: Disabled, 0.812 Mhz
  360. clkout2: Disabled, 0.812 Mhz
  361. clkout3: Disabled, 0.812 Mhz
  362. clkout4: Disabled, 0.812 Mhz
  363. Info: Instance gclksw_inst|gclk_switch is identified as a clock switch.
  364. Packing Statistics
  365. Total Logics : 25/2112 ( 1%)
  366. Total LUTs : 25/2112 ( 1%)
  367. Total Registers : 1/2112 ( 0%)
  368. Total Block Rams : 0/ 4 ( 0%)
  369. Total PLLs : 1/ 1 (100%)
  370. Total Pins : 15/ 128 ( 11%)
  371. Global Signals : 2/ 5 ( 40%)
  372. PLL_ENABLE~clkctrl_outclk (from: PLL_ENABLE~combout)
  373. auto_generated_inst.hbo_22_f9ff3d300b43c0f2_bp (from: auto_generated_inst.hbo_22_f9ff3d300b43c0f2_bp)
  374. Total Lonely Datain : 1
  375. Total Lonely Register : 0
  376. Total LUT-FF Pairs : 0
  377. Total Register Packings : 0
  378. Registers with synchronous reset : 0
  379. Registers with asynchronous reset : 1
  380. Registers with sync and async reset : 0
  381. ## CPU time: 0:0:0, REAL time: 0:0:0
  382. ## Memory Usage: 334MB (336MB)
  383. Filter verilog...
  384. ## CPU time: 0:0:0, REAL time: 0:0:0
  385. ## Memory Usage: 334MB (336MB)
  386. Reading DB design...
  387. ## CPU time: 0:0:0, REAL time: 0:0:1
  388. ## Memory Usage: 334MB (336MB)
  389. Processing design...
  390. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to TEST_SINGLE~output false
  391. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to BAUD_RATE~output false
  392. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to SPI0_SCK~output false
  393. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to GPIO4_1~output false
  394. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to SPI0_CSN~output false
  395. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to GPIO4_2~output false
  396. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to UART0_UARTTXD~output false
  397. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to SPI0_SI_IO0~output false
  398. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to so_io1~output false
  399. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to UART1_TX~output false
  400. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to UART1_RX~output false
  401. > set_instance_assignment -extension -name CLKIN_FREQ -to pll_inst|auto_generated|pll1 8
  402. > set_instance_assignment -extension -name FIXED_COORD -to gclksw_inst|gclk_switch__alta_gclksw {22 4 0}
  403. > set_instance_assignment -extension -name FIXED_COORD -to gclksw_inst|gclk_switch {22 4 5}
  404. > set_location_assignment -to BAUD_RATE PIN_18
  405. > set_location_assignment -to GPIO4_1 PIN_29
  406. > set_location_assignment -to GPIO4_2 PIN_10
  407. > set_location_assignment -to PIN_HSE PIN_HSE
  408. > set_location_assignment -to PIN_HSI PIN_HSI
  409. > set_location_assignment -to PLL_CLKIN PIN_OSC
  410. > set_location_assignment -to SPI0_CSN PIN_3
  411. > set_location_assignment -to SPI0_SCK PIN_2
  412. > set_location_assignment -to SPI0_SI_IO0 PIN_31
  413. > set_location_assignment -to TEST_SINGLE PIN_13
  414. > set_location_assignment -to UART0_UARTRXD PIN_21
  415. > set_location_assignment -to UART0_UARTTXD PIN_20
  416. > set_location_assignment -to UART1_RX PIN_9
  417. > set_location_assignment -to UART1_TX PIN_8
  418. > set_location_assignment -to so_io1 PIN_1
  419. Info: Found GCLK net auto_generated_inst.hbo_22_f9ff3d300b43c0f2_bp (1).
  420. Info: Found GCLK net PLL_ENABLE~clkctrl_outclk (1).
  421. Info: Fixing net rv32.resetn_out, from rv32|resetn_out to gclksw_inst|gclk_switch__alta_gclksw|resetn.
  422. Info: Fixing net PIN_HSE~input_o, from PIN_HSE~input|combout to gclksw_inst|gclk_switch__alta_gclksw|clkin1.
  423. Info: Fixing net gclksw_inst|gclk_switch__alta_gclksw__clkout, from gclksw_inst|gclk_switch__alta_gclksw|clkout to rv32|sys_clk.
  424. Info: Fixing net auto_generated_inst.hbo_13_a8f89aa4d95b80e7_bp, from pll_inst|auto_generated|pll1|lock to rv32|sys_ctrl_pllReady.
  425. Info: Slice gpio4_io_in[5] is removed.
  426. Info: Slice gpio4_io_in[0] is removed.
  427. Info: Slice gpio0_io_in[4] is removed.
  428. Info: Slice ~VCC is removed.
  429. Info: Slice gpio0_io_in[7] is removed.
  430. Info: Slice gpio0_io_in[5] is removed.
  431. Info: Slice gpio0_io_in[6] is removed.
  432. Info: Slice gpio0_io_in[3] is removed.
  433. Info: Slice gpio0_io_in[1] is removed.
  434. Info: Slice gpio0_io_in[2] is removed.
  435. Info: Slice gpio6_io_in[2] is removed.
  436. Info: Slice gpio6_io_in[6] is removed.
  437. Info: Slice gpio6_io_in[7] is removed.
  438. Info: Slice gpio6_io_in[3] is removed.
  439. Info: Slice gpio6_io_in[4] is removed.
  440. Info: Slice gpio4_io_in[3] is removed.
  441. Info: Slice gpio6_io_in[5] is removed.
  442. Info: Slice gpio4_io_in[7] is removed.
  443. Info: Slice gpio4_io_in[6] is removed.
  444. Info: Slice gpio6_io_in[0] is removed.
  445. Info: Slice gpio4_io_in[4] is removed.
  446. Info: Slice ~GND is removed.
  447. Info: The input of IO BAUD_RATE is disabled since all input pins are unused.
  448. Info: The input of IO TEST_SINGLE is disabled since all input pins are unused.
  449. Info: The input of IO UART1_RX is disabled since all input pins are unused.
  450. Info: The input of IO UART1_TX is disabled since all input pins are unused.
  451. Info: The input of IO so_io1 is disabled since all input pins are unused.
  452. ## CPU time: 0:0:0, REAL time: 0:0:0
  453. ## Memory Usage: 335MB (336MB)
  454. Using design SDC file ./fpga_boot.sdc.
  455. # pio_begin
  456. if { ! [info exists ::HSI_PERIOD] } {
  457. set ::HSI_PERIOD 100.0
  458. }
  459. create_clock -name PIN_HSI -period $::HSI_PERIOD [get_ports PIN_HSI]
  460. set_clock_groups -asynchronous -group PIN_HSI
  461. if { ! [info exists ::HSE_PERIOD] } {
  462. set ::HSE_PERIOD 125.0
  463. }
  464. create_clock -name PIN_HSE -period $::HSE_PERIOD [get_ports PIN_HSE]
  465. set_clock_groups -asynchronous -group PIN_HSE
  466. derive_pll_clocks -create_base_clocks
  467. Info: Auto constraint PLL: create_clock -name PLL_CLKIN -period 125.000 PLL_CLKIN.
  468. Info: Auto constraint PLL: create_generated_clock -name pll_inst|auto_generated|pll1|clk[0] -multiply_by 13 -add -source PLL_CLKIN -master_clock PLL_CLKIN pll_inst|auto_generated|pll1|clkout0.
  469. set_false_path -from rv32|resetn_out
  470. # pio_end
  471. ##
  472. derive_pll_clocks -create_base_clocks
  473. > set pl_criticality_wratio "2.50 2.50 2.50 1.00"
  474. > #set pl_max_iter_eco "10 20 300 40 3 100 100 1"
  475. > ##et pl_eco_slack_crit "99999. 1.00 0.10 7 0.03 30 0.01 150"
  476. >
  477. > ##et pl_priority_compare "2 2 2 3"
  478. > #set pl_priority_result "2 1 1 0"
  479. > #set pl_priority_pass "2 1 1 0"
  480. > #set pl_swap_cost_margin "200.0 0.0 200.0 0.0 200.0 0.0 0.00 0.0"
  481. > set pl_swap_wirelength_margin "200.0 0.0 200.0 0.0 200.0 0.0 020.0 -0.3 2000. 1.50"
  482. > set pl_swap_congestion_margin "100.0 0.0 100.0 0.0 100.0 0.0 010.0 -0.3 1000. 1.25"
  483. > #set pl_criticality_beta "1.0 3.0 1.0 1.0 3.0 1.0 1.0 3.0 1.0 99999 3.0 3.0"
  484. > #set pl_oci_iter "1 1 100 1"
  485. >
  486. > set rt_retiming_idx 5
  487. > set rt_converge_accelerator "2 1 0 3"
  488. > #set rt_pres_cost_ratio "1.00 1.50 2.00 2.50"
  489. > set rt_dly_ratio "0.55 0.35 0.30 0.50 0.50 0.30"
  490. > set rt_reroute_max_iter "6 5 6 7 9 12"
  491. > set rt_reroute_start_iter "0 1 2 2 4 0 "
  492. > set rt_quick_converge_ratio 0.25
  493. > set pl_reuse_existing_placement false
  494. > set pl_fix_bram_cells 0
  495. > set pl_fix_mult_cells 0
  496. > set pl_neighbor_swap_range "3 6 6 3 "
  497. > set pl_pass_result "1 1 1 1"
  498. > set pl_max_pass "1 1 1 1 1"
  499. > set pl_max_iter 10
  500. > set pl_max_iter_part 20
  501. > set pl_max_iter_final 20
  502. > set pl_max_iter_legal 10
  503. > set pl_max_iter_touch 00
  504. > #set pl_neighbor_swap_range "2 6 6 3 "
  505. > #set pl_spread_swap_max_iter "3 5 5 4"
  506. > #set pl_use_initial_place_once 0
  507. > set rt_min_converge "5"
  508. > set rt_optimize_max "3"
  509. > set pl_useful_skew_level -1
  510. > set rt_useful_skew_level 0
  511. > set rt_useful_skew_bram true
  512. > set rt_useful_skew_io false
  513. > set rt_useful_skew_io_ireg false
  514. > set rt_useful_skew_io_oreg false
  515. > set rt_useful_skew_output_io false
  516. > set rt_useful_skew_input_io false
  517. > set rt_useful_skew_unconstraint "false false"
  518. > set rt_useful_skew_max "0 100"
  519. > set rt_skew_crit_minmax "0.00 1.00"
  520. > #set rt_useful_skew_setup_slac_margin "1.00 1.00 1.00 1.00 1.00 0.10 0.50 0.10 0.70 0.10 1.00"
  521. > #set rt_useful_skew_hold_slack_margin "0.10 0.10 0.30 0.30 0.30 0.30"
  522. > #set rt_useful_skew_hold_slack_ratio "0.05 0.05 0.10 0.10 0.10 0.10"
  523. > # Minimal logical slice hold fix, only by routing to bram/mult, no IO delay
  524. >
  525. > set ta_cross_clock_slack "2 0"
  526. >
  527. > #set pl_max_iter_hold_fix "30 1 3"
  528. > #set pl_hold_slack_margin 0.2
  529. > #set pl_setup_slack_margin "0.5 -1000."
  530. > #set pl_net_hold_fix_target "alta_bram alta_bram9k alta_mult"
  531. >
  532. > set rt_hold_slack_margin "0.2 0.2 0.2 0.2 0.2 0.7 -1000. 0.0"
  533. > set rt_setup_slack_margin "0.5 -1000. 0.5 -1000. 0.0 -1000."
  534. > #set rt_net_hold_crit_minmax "0.5 0.5"
  535. > set rt_net_hold_budget_method 0
  536. > set rt_net_hold_fix_target "alta_bram alta_bram9k alta_mult"
  537. >
  538. > #set pl_net_hold_fix_clock false
  539. > #set pl_net_hold_fix_auto false
  540. > #set pl_net_hold_fix_io false
  541. > #set rt_net_hold_fix_start false
  542. > #set rt_net_hold_fix_clock false
  543. > #set rt_net_hold_fix_auto false
  544. > #set rt_net_hold_fix_io false
  545. Using AQF file ./alta_db/alta.aqf.
  546. > set_global_assignment -name DEVICE_IO_STANDARD "3.3-V LVTTL"
  547. Using ASF file fpga_boot.asf.
  548. > # pio_begin >>>>>> DO NOT MODIFY THIS SECTION! >>>>>>
  549. > if { [info exists BOARD_PLL_CLKIN] } {
  550. if { $BOARD_PLL_CLKIN == "PIN_OSC" } {
  551. set_config -loc 18 0 0 CFG_RCOSC_EN 1'b1
  552. }
  553. }
  554. > if { [info exists USB0_MODE] } {
  555. alta::tcl_info "USB0_MODE = $USB0_MODE"
  556. set_config -loc 0 1 3 CFG_PULLUP_ENB 1'b0
  557. set_config -loc 0 1 3 CFG_PULLDN_ENB 1'b0
  558. }
  559. > # pio_end <<<<<< DO NOT MODIFY THIS SECTION! <<<<<<
  560. > ##
  561. >
  562. Info: The input of IO BAUD_RATE is disabled since all input pins are unused.
  563. Info: The input of IO TEST_SINGLE is disabled since all input pins are unused.
  564. Info: The input of IO UART1_RX is disabled since all input pins are unused.
  565. Info: The input of IO UART1_TX is disabled since all input pins are unused.
  566. Info: The input of IO so_io1 is disabled since all input pins are unused.
  567. Info: The input of IO BAUD_RATE is disabled since all input pins are unused.
  568. Info: The input of IO TEST_SINGLE is disabled since all input pins are unused.
  569. Info: The input of IO UART1_RX is disabled since all input pins are unused.
  570. Info: The input of IO UART1_TX is disabled since all input pins are unused.
  571. Info: The input of IO so_io1 is disabled since all input pins are unused.
  572. Placement Statistics
  573. Total Logic Counts : 3/2112 (0.1%)
  574. Total Logic Tiles : 1/132 (0.8%)
  575. Total Valid Nets : 25 (22+3)
  576. Total Valid Fanouts : 53 (47+6)
  577. Total Tile Fanouts : 23
  578. Tile Zip Fanins : 2 (2:2)
  579. Tile Zip Fanouts : 2 (2:2)
  580. Total Ignored Nets : 299
  581. Total Valid Blocks : 10 (1/7)
  582. Total Ignored Blocks : 3
  583. Total Zip Complexities : 10/21 1.60/16.00
  584. Avg Zip Bottleneck : 0.00 0.00
  585. Avg Net Bottleneck : 0.00 0.00
  586. Iter #1/1 ...
  587. Pass 1 #1/1 ...
  588. Partitioning...
  589. step = 0, partition : 20,12
  590. step = 1, partition : 10,7
  591. ....................
  592. step = 2, partition : 5,3
  593. ....................
  594. step = 3, partition : 2,2
  595. ....................
  596. step = 4, partition : 2,2
  597. ....................
  598. ## CPU time: 0:0:0, REAL time: 0:0:0
  599. Pass 2 #1/1 ...
  600. Legalization and Swapping...
  601. ..........
  602. ## CPU time: 0:0:0, REAL time: 0:0:0
  603. Pass 3 #1/1 ...
  604. Touchup...
  605. ## CPU time: 0:0:0, REAL time: 0:0:0
  606. Pass 4 #1/1 ...
  607. Optimization...
  608. ............................................................
  609. Finishing...
  610. ## CPU time: 0:0:0, REAL time: 0:0:0
  611. Total wire cost after placement: 0:0:0(0:0) 42.439(0.799004)+234(0)+2 227.606(26.8771)+221.25
  612. *** Post Placement Timing Report ***
  613. === User constraints ===
  614. === Auto constraints ===
  615. Coverage report
  616. User constraints covered 5 connections out of 27 total, coverage: 18.5%
  617. Auto constraints covered 5 connections out of 27 total, coverage: 18.5%
  618. *** End Timing Report ***
  619. route_design -dump ./alta_db/route.tx -replace ./alta_db/replace.tx
  620. Route Design Statistics
  621. Total Routing Nets : 25
  622. Fanout Average : 1.12 (1..2)
  623. Max Fanout Net : PLL_ENABLE~combout
  624. Logic Slices : 3/2112 (0.1%)
  625. Routing...
  626. Budget Useful Skew...
  627. ## CPU time: 0:0:0, REAL time: 0:0:0
  628. iter = 1/1, route#: 25, violation# : 4, overflow# : 4, conflict# : 4, node#: 148
  629. ## CPU time: 0:0:0, REAL time: 0:0:0
  630. iter = 2/2, route#: 25, violation# : 2, overflow# : 2, conflict# : 2, node#: 153
  631. ## CPU time: 0:0:0, REAL time: 0:0:0
  632. iter = 3/3, route#: 25, violation# : 0, overflow# : 0, conflict# : 0, node#: 155
  633. Optimizing...
  634. ...
  635. Done
  636. *** Post Routing Timing Report ***
  637. === User constraints ===
  638. === Auto constraints ===
  639. Coverage report
  640. User constraints covered 5 connections out of 27 total, coverage: 18.5%
  641. Auto constraints covered 5 connections out of 27 total, coverage: 18.5%
  642. *** End Timing Report ***
  643. Sat May 09 16:12:53 2026
  644. Warn: User constraints coverage is too low at 18.5%.
  645. Generating batch file: {C:/Users/zzz17/AgRV_pio/packages/tool-agrv_logic/python_dist/python.exe} {C:/Users/zzz17/AgRV_pio/packages/tool-agrv_logic/pio/gen_batch} -d 1075838977 -i 0xbff5105000730062aa234371030002b7 -o ./fpga_boot_batch.bin --logic-config ./fpga_boot.bin --logic-address 0x80007000 --logic-compress
  646. >
  647. > if { [file exists "./${DESIGN}.post.asf"] } {
  648. alta::tcl_highlight "Using post-ASF file ${DESIGN}.post.asf.\n"
  649. source "./${DESIGN}.post.asf"
  650. }
  651. Using post-ASF file fpga_boot.post.asf.
  652. > # pio_begin >>>>>> DO NOT MODIFY THIS SECTION! >>>>>>
  653. > # pio_end <<<<<< DO NOT MODIFY THIS SECTION! <<<<<<
  654. > ##
  655. >
  656. > date_time
  657. Sat May 09 16:12:53 2026
  658. > exit
  659. Total 0 fatals, 0 errors, 1 warnings, 65 infos.