Skip to content

Commit

Permalink
Add test for dft and update old tests
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady committed Mar 19, 2024
1 parent 28fdfe0 commit bc11371
Show file tree
Hide file tree
Showing 24 changed files with 1,144 additions and 763 deletions.
File renamed without changes.
238 changes: 90 additions & 148 deletions verilog/dv/cocotb/DVEfiles/session.tcl
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
# Begin_DVE_Session_Save_Info
# DVE full session
# Saved on Sun Mar 17 02:19:55 2024
# DVE reload session
# Saved on Tue Mar 19 05:50:58 2024
# Designs open: 1
# V1: /home/rady/caravel/dft/caravel_cocotb_tests/verilog/dv/cocotb/sim/fixes/RTL-spi_master_rd/waves.vpd
# Toplevel windows open: 1
# V1: /home/rady/caravel/dft/caravel_cocotb_tests/verilog/dv/cocotb/sim/dft_tests/RTL-dft_golden/waves.vpd
# Toplevel windows open: 2
# TopLevel.1
# TopLevel.2
# Source.1: caravel_top
# Group count = 2
# Group Group1 signal count = 10
# Group Group2 signal count = 4
# Wave.1: 5 signals
# Group count = 1
# Group Group1 signal count = 5
# End_DVE_Session_Save_Info

# DVE version: V-2023.12-SP1_Full64
# DVE build date: Mar 4 2024 20:56:13


#<Session mode="Full" path="/home/rady/caravel/dft/caravel_cocotb_tests/verilog/dv/cocotb/DVEfiles/session.tcl" type="Debug">
#<Session mode="Reload" path="/home/rady/caravel/dft/caravel_cocotb_tests/verilog/dv/cocotb/DVEfiles/session.tcl" type="Debug">

gui_set_loading_session_type Post
gui_set_loading_session_type Reload
gui_continuetime_set

# Close design
Expand All @@ -26,30 +27,8 @@ if { [gui_sim_state -check active] } {
}
gui_close_db -all
gui_expr_clear_all

# Close all windows
gui_close_window -type Console
gui_close_window -type Wave
gui_close_window -type Source
gui_close_window -type Schematic
gui_close_window -type Data
gui_close_window -type DriverLoad
gui_close_window -type List
gui_close_window -type Memory
gui_close_window -type HSPane
gui_close_window -type DLPane
gui_close_window -type Assertion
gui_close_window -type CovHier
gui_close_window -type CoverageTable
gui_close_window -type CoverageMap
gui_close_window -type CovDetail
gui_close_window -type Local
gui_close_window -type Stack
gui_close_window -type Watch
gui_close_window -type Group
gui_close_window -type Transaction


gui_clear_window -type Wave
gui_clear_window -type List

# Application preferences
gui_set_pref_value -key app_default_font -value {Helvetica,10,-1,5,50,0,0,0,0,0}
Expand All @@ -61,117 +40,48 @@ gui_src_preferences -tabstop 8 -maxbits 24 -windownumber 1

# Create and position top-level window: TopLevel.1

if {![gui_exist_window -window TopLevel.1]} {
set TopLevel.1 [ gui_create_window -type TopLevel \
-icon $::env(DVE)/auxx/gui/images/toolbars/dvewin.xpm]
} else {
set TopLevel.1 TopLevel.1
}
gui_show_window -window ${TopLevel.1} -show_state maximized -rect {{0 29} {2489 1352}}

# ToolBar settings
gui_set_toolbar_attributes -toolbar {TimeOperations} -dock_state top
gui_set_toolbar_attributes -toolbar {TimeOperations} -offset 0
gui_show_toolbar -toolbar {TimeOperations}
gui_hide_toolbar -toolbar {&File}
gui_set_toolbar_attributes -toolbar {&Edit} -dock_state top
gui_set_toolbar_attributes -toolbar {&Edit} -offset 0
gui_show_toolbar -toolbar {&Edit}
gui_hide_toolbar -toolbar {CopyPaste}
gui_set_toolbar_attributes -toolbar {&Trace} -dock_state top
gui_set_toolbar_attributes -toolbar {&Trace} -offset 0
gui_show_toolbar -toolbar {&Trace}
gui_hide_toolbar -toolbar {TraceInstance}
gui_hide_toolbar -toolbar {BackTrace}
gui_set_toolbar_attributes -toolbar {&Scope} -dock_state top
gui_set_toolbar_attributes -toolbar {&Scope} -offset 0
gui_show_toolbar -toolbar {&Scope}
gui_set_toolbar_attributes -toolbar {&Window} -dock_state top
gui_set_toolbar_attributes -toolbar {&Window} -offset 0
gui_show_toolbar -toolbar {&Window}
gui_set_toolbar_attributes -toolbar {Signal} -dock_state top
gui_set_toolbar_attributes -toolbar {Signal} -offset 0
gui_show_toolbar -toolbar {Signal}
gui_set_toolbar_attributes -toolbar {Zoom} -dock_state top
gui_set_toolbar_attributes -toolbar {Zoom} -offset 0
gui_show_toolbar -toolbar {Zoom}
gui_set_toolbar_attributes -toolbar {Zoom And Pan History} -dock_state top
gui_set_toolbar_attributes -toolbar {Zoom And Pan History} -offset 0
gui_show_toolbar -toolbar {Zoom And Pan History}
gui_set_toolbar_attributes -toolbar {Grid} -dock_state top
gui_set_toolbar_attributes -toolbar {Grid} -offset 0
gui_show_toolbar -toolbar {Grid}
gui_hide_toolbar -toolbar {Simulator}
gui_hide_toolbar -toolbar {Interactive Rewind}
gui_hide_toolbar -toolbar {Testbench}

# End ToolBar settings
set TopLevel.1 TopLevel.1

# Docked window settings
set HSPane.1 [gui_create_window -type HSPane -parent ${TopLevel.1} -dock_state left -dock_on_new_line true -dock_extent 530]
catch { set Hier.1 [gui_share_window -id ${HSPane.1} -type Hier] }
gui_set_window_pref_key -window ${HSPane.1} -key dock_width -value_type integer -value 530
gui_set_window_pref_key -window ${HSPane.1} -key dock_height -value_type integer -value -1
gui_set_window_pref_key -window ${HSPane.1} -key dock_offset -value_type integer -value 0
gui_update_layout -id ${HSPane.1} {{left 0} {top 0} {width 529} {height 702} {dock_state left} {dock_on_new_line true} {child_hier_colhier 468} {child_hier_coltype 131} {child_hier_colpd 0} {child_hier_col1 0} {child_hier_col2 1} {child_hier_col3 -1}}
set DLPane.1 [gui_create_window -type DLPane -parent ${TopLevel.1} -dock_state left -dock_on_new_line true -dock_extent 398]
catch { set Data.1 [gui_share_window -id ${DLPane.1} -type Data] }
gui_set_window_pref_key -window ${DLPane.1} -key dock_width -value_type integer -value 398
gui_set_window_pref_key -window ${DLPane.1} -key dock_height -value_type integer -value 701
gui_set_window_pref_key -window ${DLPane.1} -key dock_offset -value_type integer -value 0
gui_update_layout -id ${DLPane.1} {{left 0} {top 0} {width 397} {height 702} {dock_state left} {dock_on_new_line true} {child_data_colvariable 390} {child_data_colvalue 101} {child_data_coltype 94} {child_data_col1 0} {child_data_col2 1} {child_data_col3 2}}
set Console.1 [gui_create_window -type Console -parent ${TopLevel.1} -dock_state bottom -dock_on_new_line true -dock_extent 541]
gui_set_window_pref_key -window ${Console.1} -key dock_width -value_type integer -value 2430
gui_set_window_pref_key -window ${Console.1} -key dock_height -value_type integer -value 541
gui_set_window_pref_key -window ${Console.1} -key dock_offset -value_type integer -value 0
gui_update_layout -id ${Console.1} {{left 0} {top 0} {width 2489} {height 540} {dock_state bottom} {dock_on_new_line true}}
#### Start - Readjusting docked view's offset / size
set dockAreaList { top left right bottom }
foreach dockArea $dockAreaList {
set viewList [gui_ekki_get_window_ids -active_parent -dock_area $dockArea]
foreach view $viewList {
if {[lsearch -exact [gui_get_window_pref_keys -window $view] dock_width] != -1} {
set dockWidth [gui_get_window_pref_value -window $view -key dock_width]
set dockHeight [gui_get_window_pref_value -window $view -key dock_height]
set offset [gui_get_window_pref_value -window $view -key dock_offset]
if { [string equal "top" $dockArea] || [string equal "bottom" $dockArea]} {
gui_set_window_attributes -window $view -dock_offset $offset -width $dockWidth
} else {
gui_set_window_attributes -window $view -dock_offset $offset -height $dockHeight
}
}
}
}
#### End - Readjusting docked view's offset / size
set HSPane.1 HSPane.1
set Hier.1 Hier.1
set DLPane.1 DLPane.1
set Data.1 Data.1
set Console.1 Console.1
gui_sync_global -id ${TopLevel.1} -option true

# MDI window settings
set Source.1 [gui_create_window -type {Source} -parent ${TopLevel.1}]
gui_show_window -window ${Source.1} -show_state maximized
set Source.1 Source.1
gui_update_layout -id ${Source.1} {{show_state maximized} {dock_state undocked} {dock_on_new_line false}}

# End MDI window settings

gui_set_env TOPLEVELS::TARGET_FRAME(Source) ${TopLevel.1}
gui_set_env TOPLEVELS::TARGET_FRAME(Schematic) ${TopLevel.1}
gui_set_env TOPLEVELS::TARGET_FRAME(PathSchematic) ${TopLevel.1}
gui_set_env TOPLEVELS::TARGET_FRAME(Wave) none
gui_set_env TOPLEVELS::TARGET_FRAME(List) none
gui_set_env TOPLEVELS::TARGET_FRAME(Memory) ${TopLevel.1}
gui_set_env TOPLEVELS::TARGET_FRAME(DriverLoad) none
gui_update_statusbar_target_frame ${TopLevel.1}

# Create and position top-level window: TopLevel.2

set TopLevel.2 TopLevel.2

# Docked window settings
gui_sync_global -id ${TopLevel.2} -option true

# MDI window settings
set Wave.1 Wave.1
gui_update_layout -id ${Wave.1} {{show_state maximized} {dock_state undocked} {dock_on_new_line false} {child_wave_left 722} {child_wave_right 1762} {child_wave_colname 359} {child_wave_colvalue 359} {child_wave_col1 0} {child_wave_col2 1}}

# End MDI window settings


#</WindowLayout>

#<Database>

# DVE Open design session:

if { ![gui_is_db_opened -db {/home/rady/caravel/dft/caravel_cocotb_tests/verilog/dv/cocotb/sim/fixes/RTL-spi_master_rd/waves.vpd}] } {
gui_open_db -design V1 -file /home/rady/caravel/dft/caravel_cocotb_tests/verilog/dv/cocotb/sim/fixes/RTL-spi_master_rd/waves.vpd -nosource
if { ![gui_is_db_opened -db {/home/rady/caravel/dft/caravel_cocotb_tests/verilog/dv/cocotb/sim/dft_tests/RTL-dft_golden/waves.vpd}] } {
gui_open_db -design V1 -file /home/rady/caravel/dft/caravel_cocotb_tests/verilog/dv/cocotb/sim/dft_tests/RTL-dft_golden/waves.vpd -nosource
}
gui_set_precision 1ps
gui_set_time_units 1ps
gui_set_time_units 1ns
#</Database>

# DVE Global setting session:
Expand All @@ -186,20 +96,13 @@ gui_set_time_units 1ps
# Global: Signal Compare

# Global: Signal Groups
gui_load_child_values {caravel_top.uut.chip_core.mprj}


set _session_group_3 Group1
gui_sg_create "$_session_group_3"
set Group1 "$_session_group_3"

gui_sg_addsignal -group "$_session_group_3" { caravel_top.uut.chip_core.mprj.wbs_we_i caravel_top.uut.chip_core.mprj.wbs_stb_i caravel_top.uut.chip_core.mprj.wbs_sel_i caravel_top.uut.chip_core.mprj.wbs_dat_o caravel_top.uut.chip_core.mprj.wbs_dat_i caravel_top.uut.chip_core.mprj.wbs_cyc_i caravel_top.uut.chip_core.mprj.wbs_adr_i caravel_top.uut.chip_core.mprj.wbs_ack_o caravel_top.uut.chip_core.mprj.wb_rst_i caravel_top.uut.chip_core.mprj.wb_clk_i }

set _session_group_4 Group2
gui_sg_create "$_session_group_4"
set Group2 "$_session_group_4"
set _session_group_6 Group1
gui_sg_create "$_session_group_6"
set Group1 "$_session_group_6"

gui_sg_addsignal -group "$_session_group_4" { {caravel_top.mprj_io_tb[35]} {caravel_top.mprj_io_tb[34]} {caravel_top.mprj_io_tb[33]} {caravel_top.mprj_io_tb[32]} }
gui_sg_addsignal -group "$_session_group_6" { caravel_top.uut.chip_core.soc.tck caravel_top.uut.chip_core.soc.trst caravel_top.uut.chip_core.soc.tdi caravel_top.uut.chip_core.soc.tdo caravel_top.uut.chip_core.soc.tms }

# Global: Highlighting

Expand All @@ -209,7 +112,7 @@ gui_change_stack_mode -mode list
# Post database loading setting...

# Restore C1 time
gui_set_time -C1_only 579850000
gui_set_time -C1_only 129566.589



Expand All @@ -231,21 +134,24 @@ gui_set_loading_session_type noSession
# Hier 'Hier.1'
gui_show_window -window ${Hier.1}
gui_list_set_filter -id ${Hier.1} -list { {Package 1} {All 0} {Process 1} {VirtPowSwitch 0} {UnnamedProcess 1} {UDP 0} {Function 1} {Block 1} {SrsnAndSpaCell 0} {OVA Unit 1} {LeafScCell 1} {LeafVlgCell 1} {Interface 1} {LeafVhdCell 1} {$unit 1} {NamedBlock 1} {Task 1} {VlgPackage 1} {ClassDef 1} {VirtIsoCell 0} }
gui_list_set_filter -id ${Hier.1} -text {*}
gui_hier_list_init -id ${Hier.1}
gui_list_set_filter -id ${Hier.1} -text {*} -force
gui_change_design -id ${Hier.1} -design V1
catch {gui_list_select -id ${Hier.1} {caravel_top}}
gui_view_scroll -id ${Hier.1} -vertical -set 0
catch {gui_list_expand -id ${Hier.1} caravel_top}
catch {gui_list_expand -id ${Hier.1} caravel_top.uut}
catch {gui_list_expand -id ${Hier.1} caravel_top.uut.chip_core}
catch {gui_list_select -id ${Hier.1} {caravel_top.uut.chip_core.soc}}
gui_view_scroll -id ${Hier.1} -vertical -set 1447
gui_view_scroll -id ${Hier.1} -horizontal -set 0

# Data 'Data.1'
gui_list_set_filter -id ${Data.1} -list { {Buffer 1} {Input 1} {Others 1} {Linkage 1} {Output 1} {LowPower 1} {Parameter 1} {All 1} {Aggregate 1} {LibBaseMember 1} {Event 1} {Assertion 1} {Constant 1} {Interface 1} {BaseMembers 1} {Signal 1} {$unit 1} {Inout 1} {Variable 1} }
gui_list_set_filter -id ${Data.1} -text {*}
gui_list_show_data -id ${Data.1} {caravel_top}
gui_list_expand -id ${Data.1} caravel_top.mprj_io_tb
gui_view_scroll -id ${Data.1} -vertical -set 320
gui_list_set_filter -id ${Data.1} -list { {Buffer 0} {Input 1} {Others 0} {Linkage 0} {Output 1} {LowPower 0} {Parameter 0} {All 0} {Aggregate 0} {LibBaseMember 0} {Event 0} {Assertion 0} {Constant 0} {Interface 0} {BaseMembers 0} {Signal 0} {$unit 0} {Inout 0} {Variable 0} }
gui_list_set_filter -id ${Data.1} -text {*t*}
gui_list_show_data -id ${Data.1} {caravel_top.uut.chip_core.soc}
gui_show_window -window ${Data.1}
catch { gui_list_select -id ${Data.1} {caravel_top.uut.chip_core.soc.tdo_paden_o }}
gui_view_scroll -id ${Data.1} -vertical -set 0
gui_view_scroll -id ${Data.1} -horizontal -set 0
gui_view_scroll -id ${Hier.1} -vertical -set 0
gui_view_scroll -id ${Hier.1} -vertical -set 1447
gui_view_scroll -id ${Hier.1} -horizontal -set 0

# Source 'Source.1'
Expand All @@ -256,12 +162,48 @@ gui_src_value_annotate -id ${Source.1} -switch true
gui_set_env TOGGLE::VALUEANNOTATE 1
gui_view_scroll -id ${Source.1} -vertical -set 64
gui_src_set_reusable -id ${Source.1}

# View 'Wave.1'
gui_wv_sync -id ${Wave.1} -switch false
set groupExD [gui_get_pref_value -category Wave -key exclusiveSG]
gui_set_pref_value -category Wave -key exclusiveSG -value {false}
set origWaveHeight [gui_get_pref_value -category Wave -key waveRowHeight]
gui_list_set_height -id Wave -height 25
set origGroupCreationState [gui_list_create_group_when_add -wave]
gui_list_create_group_when_add -wave -disable
gui_wv_zoom_timerange -id ${Wave.1} 128901.28 129807.431
gui_list_add_group -id ${Wave.1} -after {New Group} {Group1}
gui_list_select -id ${Wave.1} {caravel_top.uut.chip_core.soc.tdo }
gui_seek_criteria -id ${Wave.1} {Any Edge}



gui_set_env TOGGLE::DEFAULT_WAVE_WINDOW ${Wave.1}
gui_set_pref_value -category Wave -key exclusiveSG -value $groupExD
gui_list_set_height -id Wave -height $origWaveHeight
if {$origGroupCreationState} {
gui_list_create_group_when_add -wave -enable
}
if { $groupExD } {
gui_msg_report -code DVWW028
}
gui_list_set_filter -id ${Wave.1} -list { {Buffer 1} {Input 1} {Others 1} {Linkage 1} {Output 1} {Parameter 1} {All 1} {Aggregate 1} {LibBaseMember 1} {Event 1} {Assertion 1} {Constant 1} {Interface 1} {BaseMembers 1} {Signal 1} {$unit 1} {Inout 1} {Variable 1} }
gui_list_set_filter -id ${Wave.1} -text {*}
gui_list_set_insertion_bar -id ${Wave.1} -group Group1 -item caravel_top.uut.chip_core.soc.trst -position below

gui_marker_move -id ${Wave.1} {C1} 129566.589
gui_view_scroll -id ${Wave.1} -vertical -set 0
gui_show_grid -id ${Wave.1} -enable false
# Restore toplevel window zorder
# The toplevel window could be closed if it has no view/pane
if {[gui_exist_window -window ${TopLevel.1}]} {
gui_set_active_window -window ${TopLevel.1}
gui_set_active_window -window ${Source.1}
gui_set_active_window -window ${DLPane.1}
}
if {[gui_exist_window -window ${TopLevel.2}]} {
gui_set_active_window -window ${TopLevel.2}
gui_set_active_window -window ${Wave.1}
}
#</Session>

Loading

0 comments on commit bc11371

Please sign in to comment.