run.log 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  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.02.b0(5327d24e)
  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. Tue Jul 15 15:10:21 2025
  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_HSE
  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 db_gclk_assignment_level 2
  122. set verilog ${DESIGN}.vqm
  123. set is_migrated false
  124. if { ! [file exists $verilog] } {
  125. error "Can not find design verilog file $verilog"
  126. }
  127. if { $VEX_FILE != "" } {
  128. if { $VEX_FILE == "-" } {
  129. set VEX_FILE ""
  130. } elseif { ! [file exists $VEX_FILE] } {
  131. error "Can not find design VE file $VEX_FILE"
  132. }
  133. }
  134. if { $AGF_FILE != "" } {
  135. if { $AGF_FILE == "-" } {
  136. set AGF_FILE ""
  137. } elseif { ! [file exists $AGF_FILE] } {
  138. error "Can not find design AGF file $AGF_FILE"
  139. }
  140. }
  141. set alta0_asf [file join $::alta_work alta0.asf]
  142. set alta0_apf [file join $::alta_work alta0.apf]
  143. file delete -force $alta0_asf
  144. file delete -force $alta0_apf
  145. if { $AGF_FILE != "" || $VEX_FILE != "" } {
  146. alta::convert_pio_settings_cmd $VEX_FILE $AGF_FILE $alta0_asf $alta0_apf
  147. }
  148. alta::tcl_highlight "Using design verilog file $verilog.\n"
  149. if { $sdc_file != "" && ! [file exists $sdc_file] } {
  150. alta::tcl_warn "Can not find design SDC file $sdc_file"
  151. set sdc_file ""
  152. } else {
  153. alta::tcl_highlight "Using design SDC file $sdc_file.\n"
  154. }
  155. set load_pack ""
  156. if { $LOAD_PACK } { set load_pack "-load_pack"; }
  157. set ret [eval "read_design_and_pack $load_pack -sdc {$sdc_file} -top ${TOP_MODULE} -type vqm -gclk_level 2 $verilog"]
  158. set FITTER "full"
  159. if { !$ret } { exit -1; }
  160. } else {
  161. error "Unsupported mode $MODE"
  162. }
  163. if { $FLOW == "PACK" } { break }
  164. if { [info exists FITTING] } {
  165. if { $FITTING == "Auto" } { set FITTING auto; }
  166. set_mode -fitting $FITTING
  167. }
  168. if { [info exists FITTER] } {
  169. if { $FITTER == "Auto" } {
  170. if { $MODE == "QUARTUS" } { set FITTER hybrid; } else { set FITTER full; }
  171. }
  172. if { $MODE == "SYNPLICITY" || $MODE == "NATIVE" } { set FITTER full; }
  173. set_mode -fitter $FITTER
  174. }
  175. if { [info exists EFFORT] } { set_mode -effort $EFFORT; }
  176. if { [info exists SKEW ] } { set_mode -skew $SKEW ; }
  177. if { [info exists SKOPE ] } { set_mode -skope $SKOPE ; }
  178. if { [info exists HOLDX ] } { set_mode -holdx $HOLDX; }
  179. if { [info exists TUNING] } { set_mode -tuning $TUNING; }
  180. if { [info exists TARGET] } { set_mode -target $TARGET; }
  181. if { [info exists PRESET] } { set_mode -preset $PRESET; }
  182. if { [info exists ADJUST] } { set pl_criticality_wadjust $ADJUST; }
  183. set alta_aqf [file join $::alta_work alta.aqf]
  184. if { $LOAD_DB } {
  185. # Empty
  186. } else {
  187. file delete -force $alta_aqf
  188. if { true } {
  189. if { $ORIGINAL_PIN != "" } {
  190. if { [file exists $VE_FILE] } {
  191. set ORIGINAL_PIN ""
  192. } elseif { $ORIGINAL_PIN == "-" } {
  193. set ORIGINAL_PIN ""
  194. } elseif { ! [file exists $ORIGINAL_PIN] } {
  195. if { $is_migrated } {
  196. error "Can not find design PIN file $ORIGINAL_PIN, please compile design first"
  197. }
  198. set ORIGINAL_PIN ""
  199. }
  200. }
  201. if { $ORIGINAL_QSF != "" } {
  202. if { $ORIGINAL_QSF == "-" } {
  203. set ORIGINAL_QSF ""
  204. } elseif { ! [file exists $ORIGINAL_QSF] } {
  205. if { $is_migrated } {
  206. error "Can not find design exported QSF file $ORIGINAL_QSF, please export assigments first"
  207. }
  208. }
  209. }
  210. if { $ORIGINAL_QSF != "" || $ORIGINAL_PIN != "" } {
  211. alta::convert_quartus_settings_cmd $ORIGINAL_QSF $ORIGINAL_PIN $alta_aqf
  212. }
  213. }
  214. }
  215. if { [file exists "$alta_aqf"] } {
  216. alta::tcl_highlight "Using AQF file $alta_aqf.\n"
  217. source "$alta_aqf"
  218. }
  219. if { [file exists [file join . ${DESIGN}.asf]] } {
  220. alta::tcl_highlight "Using ASF file ${DESIGN}.asf.\n"
  221. source [file join . ${DESIGN}.asf]
  222. }
  223. if { $FLOW == "PROBE" } {
  224. set ret [eval "place_pseudo ${user_io} -place_io -place_pll -place_gclk"]
  225. if { !$ret } { exit -1 }
  226. set force ""
  227. if { [info exists PROBE_FORCE] && $PROBE_FORCE } { set force "-force" }
  228. eval "probe_design -froms {${PROBE_FROMS}} -tos {${PROBE_TOS}} ${force}"
  229. } elseif { $FLOW == "CHECK" } {
  230. set ret [eval "place_pseudo ${user_io} -place_io -place_pll -place_gclk"]
  231. if { !$ret } { exit -1 }
  232. if { [file exists [file join . ${DESIGN}.chk]] } {
  233. alta::tcl_highlight "Using CHK file ${DESIGN}.chk.\n"
  234. source [file join . ${DESIGN}.chk]
  235. place_design -dry
  236. check_design -rule led_guide
  237. } else {
  238. error "Can not find design CHECK file ${DESIGN}.chk"
  239. }
  240. } else {
  241. set ret [eval "place_pseudo ${user_io} -place_io -place_pll -place_gclk -warn_io"]
  242. if { !$ret } { exit -1 }
  243. set org_place ""
  244. set load_place ""
  245. set load_route ""
  246. set quiet ""
  247. if { $ORG_PLACE } { set org_place "-org_place" ; }
  248. if { $LOAD_PLACE } { set load_place "-load_place"; }
  249. if { $LOAD_ROUTE } { set load_route "-load_route"; }
  250. eval "place_and_route_design $org_place $load_place $load_route \
  251. -retry $RETRY $seed_rand $quiet"
  252. }
  253. date_time
  254. if { $FLOW != "CHECK" } {
  255. if { $FLOW != "PROBE" } {
  256. report_timing -verbose 2 -setup -file $::alta_work/setup.rpt.gz
  257. report_timing -verbose 1 -setup -file $::alta_work/setup_summary.rpt
  258. report_timing -verbose 2 -hold -file $::alta_work/hold.rpt.gz
  259. report_timing -verbose 1 -hold -file $::alta_work/hold_summary.rpt
  260. set ta_report_auto_constraints 0
  261. report_timing -fmax -file $::alta_work/fmax.rpt
  262. report_timing -xfer -file $::alta_work/xfer.rpt
  263. set ta_report_auto_constraints $ta_report_auto
  264. set ta_dump_uncovered 1
  265. report_timing -verbose 1 -coverage >! $::alta_work/coverage.rpt.gz
  266. set ta_dump_uncovered -1
  267. if { ! [info exists rt_report_timing_fast] } {
  268. set rt_report_timing_fast false
  269. }
  270. if { $rt_report_timing_fast } {
  271. set_timing_corner fast
  272. route_delay -quiet
  273. report_timing -verbose 2 -setup -file $::alta_work/setup_fast.rpt.gz
  274. report_timing -verbose 1 -setup -file $::alta_work/setup_fast_summary.rpt
  275. report_timing -verbose 2 -hold -file $::alta_work/hold_fast.rpt.gz
  276. report_timing -verbose 1 -hold -file $::alta_work/hold_fast_summary.rpt
  277. set ta_report_auto_constraints 0
  278. report_timing -fmax -file $::alta_work/fmax_fast.rpt
  279. report_timing -xfer -file $::alta_work/xfer_fast.rpt
  280. set ta_report_auto_constraints $ta_report_auto
  281. }
  282. write_routed_design "${RESULT_DIR}/${RESULT}_routed.v"
  283. }
  284. bitgen normal -prg "${RESULT_DIR}/${RESULT}.prg" -bin "${RESULT_DIR}/${RESULT}.bin"
  285. if { true } {
  286. alta::bin_to_asc "${RESULT_DIR}/${RESULT}.bin" "${RESULT_DIR}/${RESULT}.inc"
  287. set python_exe [expr {$tcl_platform(platform) eq "unix" ? "python3" : "python.exe"}]
  288. if { ! [ info exist BATCH_ARG ] } {
  289. set BATCH_ARG ""
  290. }
  291. set LOGIC_COMPRESS [alta::get_global_assignment_cmd ON_CHIP_BITSTREAM_DECOMPRESSION false]
  292. if { [string toupper $LOGIC_COMPRESS] != "OFF" } {
  293. set BATCH_ARG "$BATCH_ARG --logic-compress"
  294. }
  295. set BATCH_MCU 0xbff5105000730062aa234371030002b7
  296. if { [info exists BATCH_HSE] } {
  297. set BATCH_MCU 0xbff5105000730062a62343110062aa234371030002b7
  298. }
  299. set GEN_BATCH "{[alta::prog_home]/python_dist/$python_exe} {[alta::prog_home]/pio/gen_batch}\
  300. -d [[alta::get_device_info_cmd $DEVICE] device_id]\
  301. -i $BATCH_MCU\
  302. -o ${RESULT_DIR}/${RESULT}_batch.bin\
  303. --logic-config ${RESULT_DIR}/${RESULT}.bin\
  304. --logic-address 0x80007000\
  305. $BATCH_ARG"
  306. alta::tcl_highlight "Generating batch file: $GEN_BATCH\n"
  307. eval "exec $GEN_BATCH"
  308. } else {
  309. bitgen sram -prg "${RESULT_DIR}/${RESULT}_sram.prg"
  310. bitgen download -bin "${RESULT_DIR}/${RESULT}.bin" -svf "${RESULT_DIR}/${RESULT}_download.svf"
  311. generate_binary -slave "${RESULT_DIR}/${RESULT}_slave.rbf" \
  312. -inputs "${RESULT_DIR}/${RESULT}.bin" -reverse
  313. generate_binary -master "${RESULT_DIR}/${RESULT}_master.bin" \
  314. -inputs "${RESULT_DIR}/${RESULT}.bin"
  315. generate_programming_file "${RESULT_DIR}/${RESULT}_master.bin" -prg "${RESULT_DIR}/${RESULT}_master.prg" \
  316. -as "${RESULT_DIR}/${RESULT}_master_as.prg" -hybrid "${RESULT_DIR}/${RESULT}_hybrid.prg"
  317. }
  318. }
  319. break
  320. }
  321. Total IO : 150
  322. Total Pin : 128/17
  323. Top array is built.
  324. Loading architect libraries...
  325. ## CPU time: 0:0:0, REAL time: 0:0:0
  326. ## Memory Usage: 51MB (51MB)
  327. Loading route table...
  328. ## CPU time: 0:0:2, REAL time: 0:0:2
  329. ## Memory Usage: 317MB (317MB)
  330. Using design verilog file ./simulation/modelsim/fpga_boot.vo.
  331. Using design VE file fpga_boot.vex.
  332. Preparing design...
  333. Info: Rename duplicated module cell alta_rv32 to alta_rv32_duplicated at ./alta_db/flatten.vx:1.
  334. Info: Removing bbox feeder slice gpio3_io_in[0] driving BBOX rv32|gpio3_io_in[0].
  335. Info: Removing bbox feeder slice gpio6_io_out_data[0] driven by BBOX rv32|gpio6_io_out_data[0].
  336. Info: Removing bbox feeder slice gpio6_io_out_data[2] driven by BBOX rv32|gpio6_io_out_data[2].
  337. Info: Removing bbox feeder slice gpio6_io_out_en[0] driven by BBOX rv32|gpio6_io_out_en[0].
  338. Info: Removing bbox feeder slice gpio6_io_out_en[2] driven by BBOX rv32|gpio6_io_out_en[2].
  339. Info: Removing bbox feeder slice gpio9_io_in[1] driving BBOX rv32|gpio9_io_in[1].
  340. Info: Removing bbox feeder slice gpio9_io_out_data[0] driven by BBOX rv32|gpio9_io_out_data[0].
  341. Info: Removing bbox feeder slice gpio9_io_out_data[1] driven by BBOX rv32|gpio9_io_out_data[1].
  342. Info: Removing bbox feeder slice gpio9_io_out_data[2] driven by BBOX rv32|gpio9_io_out_data[2].
  343. Info: Removing bbox feeder slice gpio9_io_out_en[0] driven by BBOX rv32|gpio9_io_out_en[0].
  344. Info: Removing bbox feeder slice gpio9_io_out_en[1] driven by BBOX rv32|gpio9_io_out_en[1].
  345. Info: Removing bbox feeder slice gpio9_io_out_en[2] driven by BBOX rv32|gpio9_io_out_en[2].
  346. Info: Removing bbox feeder slice sys_ctrl_clkSource[0] driven by BBOX rv32|sys_ctrl_clkSource[0].
  347. Info: Removing bbox feeder slice sys_ctrl_clkSource[1] driven by BBOX rv32|sys_ctrl_clkSource[1].
  348. ## CPU time: 0:0:0, REAL time: 0:0:0
  349. ## Memory Usage: 334MB (334MB)
  350. Pseudo pack design...
  351. Using location file fpga_boot.vex
  352. VCO frequency: 480.000 Mhz
  353. clkout0: Enabled , 240.000 Mhz
  354. clkout1: Disabled, 0.938 Mhz
  355. clkout2: Disabled, 0.938 Mhz
  356. clkout3: Disabled, 0.938 Mhz
  357. clkout4: Disabled, 0.938 Mhz
  358. Info: Instance gclksw_inst|gclk_switch is identified as a clock switch.
  359. Packing Statistics
  360. Total Logics : 18/2112 ( 0%)
  361. Total LUTs : 18/2112 ( 0%)
  362. Total Registers : 1/2112 ( 0%)
  363. Total Block Rams : 0/ 4 ( 0%)
  364. Total PLLs : 1/ 1 (100%)
  365. Total Pins : 9/ 128 ( 7%)
  366. Global Signals : 2/ 5 ( 40%)
  367. auto_generated_inst.hbo_22_f9ff3d300b43c0f2_bp (from: auto_generated_inst.hbo_22_f9ff3d300b43c0f2_bp)
  368. pll_inst|auto_generated|locked~clkctrl_outclk (from: pll_inst|auto_generated|locked~combout)
  369. Total Lonely Datain : 1
  370. Total Lonely Register : 0
  371. Total LUT-FF Pairs : 0
  372. Total Register Packings : 0
  373. Registers with synchronous reset : 0
  374. Registers with asynchronous reset : 1
  375. Registers with sync and async reset : 0
  376. ## CPU time: 0:0:0, REAL time: 0:0:0
  377. ## Memory Usage: 335MB (335MB)
  378. Filter verilog...
  379. ## CPU time: 0:0:0, REAL time: 0:0:0
  380. ## Memory Usage: 335MB (335MB)
  381. Reading DB design...
  382. ## CPU time: 0:0:0, REAL time: 0:0:1
  383. ## Memory Usage: 335MB (335MB)
  384. Processing design...
  385. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to GPIO6_2~output false
  386. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to GPIO6_0~output false
  387. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to GPIO9_1~output false
  388. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to GPIO9_2~output false
  389. > set_instance_assignment -name ENABLE_OPEN_DRAIN -to GPIO9_0~output false
  390. > set_instance_assignment -extension -name CLKIN_FREQ -to pll_inst|auto_generated|pll1 8
  391. > set_instance_assignment -extension -name FIXED_COORD -to gclksw_inst|gclk_switch__alta_gclksw {22 4 0}
  392. > set_instance_assignment -extension -name FIXED_COORD -to gclksw_inst|gclk_switch {22 4 5}
  393. > set_location_assignment -to GPIO3_0 PIN_95
  394. > set_location_assignment -to GPIO6_0 PIN_51
  395. > set_location_assignment -to GPIO6_2 PIN_52
  396. > set_location_assignment -to GPIO9_0 PIN_47
  397. > set_location_assignment -to GPIO9_1 PIN_48
  398. > set_location_assignment -to GPIO9_2 PIN_46
  399. > set_location_assignment -to PIN_HSE PIN_HSE
  400. > set_location_assignment -to PIN_HSI PIN_HSI
  401. > set_location_assignment -to PIN_OSC PIN_OSC
  402. Info: Found GCLK net pll_inst|auto_generated|locked~clkctrl_outclk (0).
  403. Info: Found GCLK net auto_generated_inst.hbo_22_f9ff3d300b43c0f2_bp (1).
  404. Info: Fixing net rv32.resetn_out, from rv32|resetn_out to gclksw_inst|gclk_switch__alta_gclksw|resetn.
  405. Info: Fixing net PIN_HSE~input_o, from PIN_HSE~input|combout to gclksw_inst|gclk_switch__alta_gclksw|clkin1.
  406. Info: Fixing net gclksw_inst|gclk_switch__alta_gclksw__clkout, from gclksw_inst|gclk_switch__alta_gclksw|clkout to rv32|sys_clk.
  407. Info: Fixing net auto_generated_inst.hbo_13_1797ab7b230f061a_bp, from pll_inst|auto_generated|pll1|lock to rv32|sys_ctrl_pllReady.
  408. Info: Slice gpio9_io_in[6] is removed.
  409. Info: Slice gpio9_io_in[0] is removed.
  410. Info: Slice gpio9_io_in[5] is removed.
  411. Info: Slice gpio3_io_in[1] is removed.
  412. Info: Slice gpio3_io_in[5] is removed.
  413. Info: Slice gpio3_io_in[7] is removed.
  414. Info: Slice gpio3_io_in[2] is removed.
  415. Info: Slice gpio9_io_in[3] is removed.
  416. Info: Slice ~GND is removed.
  417. Info: Slice gpio3_io_in[4] is removed.
  418. Info: Slice gpio3_io_in[6] is removed.
  419. Info: Slice gpio3_io_in[3] is removed.
  420. Info: Slice gpio9_io_in[2] is removed.
  421. Info: Slice gpio9_io_in[7] is removed.
  422. Info: Slice ~VCC is removed.
  423. Info: Slice gpio9_io_in[4] is removed.
  424. ## CPU time: 0:0:0, REAL time: 0:0:0
  425. ## Memory Usage: 336MB (336MB)
  426. Using design SDC file ./fpga_boot.sdc.
  427. # pio_begin
  428. if { ! [info exists ::HSI_PERIOD] } {
  429. set ::HSI_PERIOD 100.0
  430. }
  431. create_clock -name PIN_HSI -period $::HSI_PERIOD [get_ports PIN_HSI]
  432. set_clock_groups -asynchronous -group PIN_HSI
  433. if { ! [info exists ::HSE_PERIOD] } {
  434. set ::HSE_PERIOD 125.0
  435. }
  436. create_clock -name PIN_HSE -period $::HSE_PERIOD [get_ports PIN_HSE]
  437. set_clock_groups -asynchronous -group PIN_HSE
  438. derive_pll_clocks -create_base_clocks
  439. Info: Auto constraint PLL: create_generated_clock -name pll_inst|auto_generated|pll1|clk[0] -multiply_by 30 -add -source PIN_HSE -master_clock PIN_HSE pll_inst|auto_generated|pll1|clkout0.
  440. set_false_path -from rv32|resetn_out
  441. # pio_end
  442. ##
  443. derive_pll_clocks -create_base_clocks
  444. > set pl_criticality_wratio "2.50 2.50 2.50 1.00"
  445. > #set pl_max_iter_eco "10 20 300 40 3 100 100 1"
  446. > ##et pl_eco_slack_crit "99999. 1.00 0.10 7 0.03 30 0.01 150"
  447. >
  448. > ##et pl_priority_compare "2 2 2 3"
  449. > #set pl_priority_result "2 1 1 0"
  450. > #set pl_priority_pass "2 1 1 0"
  451. > #set pl_swap_cost_margin "200.0 0.0 200.0 0.0 200.0 0.0 0.00 0.0"
  452. > set pl_swap_wirelength_margin "200.0 0.0 200.0 0.0 200.0 0.0 020.0 -0.3 2000. 1.50"
  453. > set pl_swap_congestion_margin "100.0 0.0 100.0 0.0 100.0 0.0 010.0 -0.3 1000. 1.25"
  454. > #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"
  455. > #set pl_oci_iter "1 1 100 1"
  456. >
  457. > set rt_retiming_idx 5
  458. > set rt_converge_accelerator "2 1 0 3"
  459. > #set rt_pres_cost_ratio "1.00 1.50 2.00 2.50"
  460. > set rt_dly_ratio "0.55 0.35 0.30 0.50 0.50 0.30"
  461. > set rt_reroute_max_iter "6 5 6 7 9 12"
  462. > set rt_reroute_start_iter "0 1 2 2 4 0 "
  463. > set rt_quick_converge_ratio 0.25
  464. > set pl_reuse_existing_placement false
  465. > set pl_fix_bram_cells 0
  466. > set pl_fix_mult_cells 0
  467. > set pl_neighbor_swap_range "3 6 6 3 "
  468. > set pl_pass_result "1 1 1 1"
  469. > set pl_max_pass "1 1 1 1 1"
  470. > set pl_max_iter 10
  471. > set pl_max_iter_part 20
  472. > set pl_max_iter_final 20
  473. > set pl_max_iter_legal 10
  474. > set pl_max_iter_touch 00
  475. > #set pl_neighbor_swap_range "2 6 6 3 "
  476. > #set pl_spread_swap_max_iter "3 5 5 4"
  477. > #set pl_use_initial_place_once 0
  478. > set rt_min_converge "5"
  479. > set rt_optimize_max "3"
  480. > set pl_useful_skew_level -1
  481. > set rt_useful_skew_level 0
  482. > set rt_useful_skew_bram true
  483. > set rt_useful_skew_io false
  484. > set rt_useful_skew_io_ireg false
  485. > set rt_useful_skew_io_oreg false
  486. > set rt_useful_skew_output_io false
  487. > set rt_useful_skew_input_io false
  488. > set rt_useful_skew_unconstraint "false false"
  489. > set rt_useful_skew_max "0 100"
  490. > set rt_skew_crit_minmax "0.00 1.00"
  491. > #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"
  492. > #set rt_useful_skew_hold_slack_margin "0.10 0.10 0.30 0.30 0.30 0.30"
  493. > #set rt_useful_skew_hold_slack_ratio "0.05 0.05 0.10 0.10 0.10 0.10"
  494. > # Minimal logical slice hold fix, only by routing to bram/mult, no IO delay
  495. >
  496. > set ta_cross_clock_slack "2 0"
  497. >
  498. > #set pl_max_iter_hold_fix "30 1 3"
  499. > #set pl_hold_slack_margin 0.2
  500. > #set pl_setup_slack_margin "0.5 -1000."
  501. > #set pl_net_hold_fix_target "alta_bram alta_bram9k alta_mult"
  502. >
  503. > set rt_hold_slack_margin "0.2 0.2 0.2 0.2 0.2 0.7 -1000. 0.0"
  504. > set rt_setup_slack_margin "0.5 -1000. 0.5 -1000. 0.0 -1000."
  505. > #set rt_net_hold_crit_minmax "0.5 0.5"
  506. > set rt_net_hold_budget_method 0
  507. > set rt_net_hold_fix_target "alta_bram alta_bram9k alta_mult"
  508. >
  509. > #set pl_net_hold_fix_clock false
  510. > #set pl_net_hold_fix_auto false
  511. > #set pl_net_hold_fix_io false
  512. > #set rt_net_hold_fix_start false
  513. > #set rt_net_hold_fix_clock false
  514. > #set rt_net_hold_fix_auto false
  515. > #set rt_net_hold_fix_io false
  516. Using AQF file ./alta_db/alta.aqf.
  517. > set_global_assignment -name DEVICE_IO_STANDARD "3.3-V LVTTL"
  518. Using ASF file fpga_boot.asf.
  519. > # pio_begin >>>>>> DO NOT MODIFY THIS SECTION! >>>>>>
  520. > if { [info exists BOARD_PLL_CLKIN] } {
  521. if { $BOARD_PLL_CLKIN == "PIN_OSC" } {
  522. set_config -loc 18 0 0 CFG_RCOSC_EN 1'b1
  523. }
  524. }
  525. > if { [info exists USB0_MODE] } {
  526. alta::tcl_info "USB0_MODE = $USB0_MODE"
  527. set_config -loc 0 1 3 CFG_PULLUP_ENB 1'b0
  528. set_config -loc 0 1 3 CFG_PULLDN_ENB 1'b0
  529. }
  530. > # pio_end <<<<<< DO NOT MODIFY THIS SECTION! <<<<<<
  531. > ##
  532. >
  533. Placement Statistics
  534. Total Logic Counts : 2/2112 (0.1%)
  535. Total Logic Tiles : 1/132 (0.8%)
  536. Total Valid Nets : 20 (17+3)
  537. Total Valid Fanouts : 43 (37+6)
  538. Total Tile Fanouts : 18
  539. Tile Zip Fanins : 2 (2:2)
  540. Tile Zip Fanouts : 1 (1:1)
  541. Total Ignored Nets : 296
  542. Total Valid Blocks : 8 (1/5)
  543. Total Ignored Blocks : 0
  544. Total Zip Complexities : 9/17 1.29/11.65
  545. Avg Zip Bottleneck : 0.00 0.00
  546. Avg Net Bottleneck : 0.00 0.00
  547. Iter #1/1 ...
  548. Pass 1 #1/1 ...
  549. Partitioning...
  550. step = 0, partition : 20,12
  551. step = 1, partition : 10,7
  552. ....................
  553. step = 2, partition : 5,3
  554. ....................
  555. step = 3, partition : 2,2
  556. ....................
  557. step = 4, partition : 2,2
  558. ....................
  559. ## CPU time: 0:0:0, REAL time: 0:0:0
  560. Pass 2 #1/1 ...
  561. Legalization and Swapping...
  562. ..........
  563. ## CPU time: 0:0:0, REAL time: 0:0:0
  564. Pass 3 #1/1 ...
  565. Touchup...
  566. ## CPU time: 0:0:0, REAL time: 0:0:0
  567. Pass 4 #1/1 ...
  568. Optimization...
  569. ............................................................
  570. Finishing...
  571. ## CPU time: 0:0:0, REAL time: 0:0:0
  572. Total wire cost after placement: 0:0:0(0:0) 40.309(0.799)+224(0)+4 143.229(21.3257)+197.25
  573. *** Post Placement Timing Report ***
  574. === User constraints ===
  575. === Auto constraints ===
  576. Coverage report
  577. User constraints covered 5 connections out of 22 total, coverage: 22.7%
  578. Auto constraints covered 5 connections out of 22 total, coverage: 22.7%
  579. *** End Timing Report ***
  580. route_design -dump ./alta_db/route.tx -replace ./alta_db/replace.tx
  581. Route Design Statistics
  582. Total Routing Nets : 20
  583. Fanout Average : 1.15 (1..2)
  584. Max Fanout Net : auto_generated_inst.hbo_13_1797ab7b230f061a_bp
  585. Logic Slices : 2/2112 (0.1%)
  586. Routing...
  587. Budget Useful Skew...
  588. ## CPU time: 0:0:0, REAL time: 0:0:0
  589. iter = 1/1, route#: 20, violation# : 4, overflow# : 4, conflict# : 7, node#: 131
  590. ## CPU time: 0:0:0, REAL time: 0:0:0
  591. iter = 2/2, route#: 20, violation# : 2, overflow# : 2, conflict# : 4, node#: 134
  592. ## CPU time: 0:0:0, REAL time: 0:0:0
  593. iter = 3/3, route#: 20, violation# : 0, overflow# : 0, conflict# : 0, node#: 142
  594. Optimizing...
  595. ...
  596. Done
  597. *** Post Routing Timing Report ***
  598. === User constraints ===
  599. === Auto constraints ===
  600. Coverage report
  601. User constraints covered 5 connections out of 22 total, coverage: 22.7%
  602. Auto constraints covered 5 connections out of 22 total, coverage: 22.7%
  603. *** End Timing Report ***
  604. Tue Jul 15 15:10:25 2025
  605. Warn: User constraints coverage is too low at 22.7%.
  606. 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
  607. >
  608. > if { [file exists "./${DESIGN}.post.asf"] } {
  609. alta::tcl_highlight "Using post-ASF file ${DESIGN}.post.asf.\n"
  610. source "./${DESIGN}.post.asf"
  611. }
  612. Using post-ASF file fpga_boot.post.asf.
  613. > # pio_begin >>>>>> DO NOT MODIFY THIS SECTION! >>>>>>
  614. > # pio_end <<<<<< DO NOT MODIFY THIS SECTION! <<<<<<
  615. > ##
  616. >
  617. > date_time
  618. Tue Jul 15 15:10:25 2025
  619. > exit
  620. Total 0 fatals, 0 errors, 1 warnings, 39 infos.