57 lines
2.1 KiB
Tcl
57 lines
2.1 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_stream_tx_if/tx_state
|
||
|
|
add wave -noupdate /$CASE_NAME/u0_stream_tx_if/list_addr
|
||
|
|
add wave -noupdate /$CASE_NAME/u0_stream_tx_if/list_rdata
|
||
|
|
add wave -noupdate /$CASE_NAME/u0_stream_tx_if/list_wdata
|
||
|
|
add wave -noupdate /$CASE_NAME/u0_stream_tx_if/list_wea
|
||
|
|
add wave -noupdate /$CASE_NAME/u0_stream_tx_if/buf_addr
|
||
|
|
add wave -noupdate /$CASE_NAME/u0_stream_tx_if/buf_rdata
|
||
|
|
add wave -noupdate /$CASE_NAME/u0_stream_tx_if/burst_beats
|
||
|
|
add wave -noupdate /$CASE_NAME/u0_stream_tx_if/burst_len
|
||
|
|
add wave -noupdate /$CASE_NAME/u0_stream_tx_if/current_entry
|
||
|
|
add wave -noupdate /$CASE_NAME/u0_stream_tx_if/buf_ready
|
||
|
|
add wave -noupdate /$CASE_NAME/u0_stream_tx_if/doorbell
|
||
|
|
add wave -noupdate /$CASE_NAME/u0_stream_tx_if/timer_us
|
||
|
|
add wave -noupdate /$CASE_NAME/u0_stream_tx_if/burst_time_interval_latched
|
||
|
|
eval TreeUpdate \[SetDefaultTree\]
|
||
|
|
WaveRestoreCursors {{Cursor 1} {3692000 ps} 0}
|
||
|
|
quietly wave cursor active 1
|
||
|
|
configure wave -namecolwidth 268
|
||
|
|
configure wave -valuecolwidth 95
|
||
|
|
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 {0 ps} {10500 us}
|
||
|
|
|
||
|
|
if { [info exists unset_CASE_NAME] && [string equal -nocase true $unset_CASE_NAME] } {
|
||
|
|
set unset_CASE_NAME false
|
||
|
|
unset CASE_NAME
|
||
|
|
}
|
||
|
|
|