Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hw,rstmgr,dv] Use Xcelium compatible syntax #24916

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class rstmgr_leaf_rst_shadow_attack_vseq extends rstmgr_base_vseq;
endfunction

task wait_and_check(string path);
prim_mubi_pkg::mubi4_t rst_en;
logic [3:0] rst_en;
logic leaf_rst;
string epath = {path, ".rst_en_o"};
string opath = {path, ".leaf_rst_o"};
Expand All @@ -62,7 +62,8 @@ class rstmgr_leaf_rst_shadow_attack_vseq extends rstmgr_base_vseq;
`DV_CHECK(uvm_hdl_read(epath, rst_en), $sformatf("Path %0s has problem", epath))
`DV_CHECK(uvm_hdl_read(opath, leaf_rst), $sformatf("Path %0s has problem", opath))

`DV_CHECK_EQ(rst_en, prim_mubi_pkg::MuBi4False, $sformatf("%s value mismatch", epath))
`DV_CHECK_EQ(prim_mubi_pkg::mubi4_t'(rst_en), prim_mubi_pkg::MuBi4False,
$sformatf("%s value mismatch", epath))
`DV_CHECK_EQ(leaf_rst, 1, $sformatf("%s value mismatch", opath))
endtask : wait_and_check

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ class rstmgr_sec_cm_scan_intersig_mubi_vseq extends rstmgr_smoke_vseq;
delay = $urandom_range(5, 30);
fork
// This waits for a certain number of cycles or for a change in scan_rst_ni,
// whichever is sooner, or it could end up skipping a full scan reset.
// whichever is sooner, or it could end up skipping a full scan reset.
begin : isolation_fork
fork
@(edge cfg.rstmgr_vif.scan_rst_ni);
// @(edge) is not supported by xcelium, workaround with posedge+negedge
@(posedge cfg.rstmgr_vif.scan_rst_ni or negedge cfg.rstmgr_vif.scan_rst_ni);
cfg.clk_rst_vif.wait_clks(delay);
join_any
disable fork;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class rstmgr_leaf_rst_shadow_attack_vseq extends rstmgr_base_vseq;
endfunction

task wait_and_check(string path);
prim_mubi_pkg::mubi4_t rst_en;
logic [3:0] rst_en;
logic leaf_rst;
string epath = {path, ".rst_en_o"};
string opath = {path, ".leaf_rst_o"};
Expand All @@ -62,7 +62,8 @@ class rstmgr_leaf_rst_shadow_attack_vseq extends rstmgr_base_vseq;
`DV_CHECK(uvm_hdl_read(epath, rst_en), $sformatf("Path %0s has problem", epath))
`DV_CHECK(uvm_hdl_read(opath, leaf_rst), $sformatf("Path %0s has problem", opath))

`DV_CHECK_EQ(rst_en, prim_mubi_pkg::MuBi4False, $sformatf("%s value mismatch", epath))
`DV_CHECK_EQ(prim_mubi_pkg::mubi4_t'(rst_en), prim_mubi_pkg::MuBi4False,
$sformatf("%s value mismatch", epath))
`DV_CHECK_EQ(leaf_rst, 1, $sformatf("%s value mismatch", opath))
endtask : wait_and_check

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ class rstmgr_sec_cm_scan_intersig_mubi_vseq extends rstmgr_smoke_vseq;
delay = $urandom_range(5, 30);
fork
// This waits for a certain number of cycles or for a change in scan_rst_ni,
// whichever is sooner, or it could end up skipping a full scan reset.
// whichever is sooner, or it could end up skipping a full scan reset.
begin : isolation_fork
fork
@(edge cfg.rstmgr_vif.scan_rst_ni);
// @(edge) is not supported by xcelium, workaround with posedge+negedge
@(posedge cfg.rstmgr_vif.scan_rst_ni or negedge cfg.rstmgr_vif.scan_rst_ni);
cfg.clk_rst_vif.wait_clks(delay);
join_any
disable fork;
Expand Down
Loading