Files
2026-03-06 16:22:17 +08:00

69 lines
3.2 KiB
Tcl

# When open .wlf file, there is no CASE_NAME variable in context. We get the case name by searching in the struct window instead.
if {![info exists CASE_NAME]} {
puts "++++++++++ search case name ++++++++++"
set wave_sim_type func
for {set wave_i 0} {$wave_i < 1000} {incr wave_i 1} {
set wave_case_num [format "%03d" $wave_i];
set wave_case_name ${wave_sim_type}${wave_case_num}
if {[search structure $wave_case_name] >= 0} {
break
}
}
set unset_CASE_NAME true
set CASE_NAME $wave_case_name
}
onerror {resume}
quietly WaveActivateNextPane {} 0
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/uart_rx
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/uart_tx
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/echo_buf
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/exec_state
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/echo_state
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/m_axil_bvalid
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/m_axil_rvalid
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/m_axil_rdata
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/m_axil_arvalid
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/timeout
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/ehex
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/ehex_valid
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/ehex_ready
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/errno
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/cli_state
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/cmd_abort
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/cmd_abort_ack
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/cmd_abort_pending
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/echo_ctrlc
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/echo_ctrlc_ack
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/echo_ctrlc_pending
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/echo_enter
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/echo_enter_ack
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/echo_enter_pending
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/echo_prompt_ack
add wave -noupdate /$CASE_NAME/u0_uart_cli_axil/u0_cli2axil/echo_prompt_pending
eval TreeUpdate \[SetDefaultTree\]
WaveRestoreCursors {{Cursor 1} {26778052000 ps} 0}
quietly wave cursor active 1
configure wave -namecolwidth 335
configure wave -valuecolwidth 100
configure wave -justifyvalue left
configure wave -signalnamewidth 0
configure wave -snapdistance 10
configure wave -datasetprefix 0
configure wave -rowmargin 4
configure wave -childrowmargin 2
configure wave -gridoffset 0
configure wave -gridperiod 1
configure wave -griddelta 40
configure wave -timeline 0
configure wave -timelineunits ps
update
WaveRestoreZoom {26777923837 ps} {26778164163 ps}
if { [info exists unset_CASE_NAME] && [string equal -nocase true $unset_CASE_NAME] } {
set unset_CASE_NAME false
unset CASE_NAME
}