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

[rom_ctrl,dv] Check returns of uvm_hdl_force/uvm_hdl_release #21339

Merged
merged 1 commit into from
Feb 14, 2024
Merged
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 @@ -206,11 +206,13 @@ class rom_ctrl_corrupt_sig_fatal_chk_vseq extends rom_ctrl_base_vseq;
cfg.scoreboard.disable_rom_acc_chk = 0;
end
begin
string rom_idx_path = "tb.dut.bus_rom_rom_index";

wait (cfg.m_tl_agent_cfgs["rom_ctrl_rom_reg_block"].vif.h2d.a_valid);
$assertoff(0, "tb.dut.BusRomIndicesMatch_A");
uvm_hdl_force("tb.dut.bus_rom_rom_index", corr_bus_rom_rom_index_val);
`DV_CHECK(uvm_hdl_force(rom_idx_path, corr_bus_rom_rom_index_val));
wait (!cfg.m_tl_agent_cfgs["rom_ctrl_rom_reg_block"].vif.h2d.a_valid);
uvm_hdl_release("tb.dut.bus_rom_rom_index");
`DV_CHECK(uvm_hdl_release(rom_idx_path));
end
join
end
Expand Down Expand Up @@ -247,18 +249,10 @@ class rom_ctrl_corrupt_sig_fatal_chk_vseq extends rom_ctrl_base_vseq;
@(negedge cfg.clk_rst_vif.clk);
endtask: wait_with_bound

task chk_hdl_path(string path);
if(!uvm_hdl_check_path(path))
begin
`uvm_fatal("PATH NOT FOUND", $sformatf("%s", path))
end
endtask: chk_hdl_path

task force_sig(string path, int value);
chk_hdl_path(path);
uvm_hdl_force(path, value);
`DV_CHECK(uvm_hdl_force(path, value));
@(negedge cfg.clk_rst_vif.clk);
uvm_hdl_release(path);
`DV_CHECK(uvm_hdl_release(path));
endtask: force_sig

task chk_fsm_state();
Expand Down
Loading