Skip to content

Commit

Permalink
[rv_dm,dv] Remove wait and document check_ndmreset in smoke vseq
Browse files Browse the repository at this point in the history
This is equivalent to the changes that have just been made to
check_haltreq (the previous task).

Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
  • Loading branch information
rswarbrick committed May 30, 2024
1 parent 22227ff commit eb2e16b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hw/ip/rv_dm/dv/env/seq_lib/rv_dm_smoke_vseq.sv
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,13 @@ class rv_dm_smoke_vseq extends rv_dm_base_vseq;
`DV_CHECK_EQ(cfg.rv_dm_vif.cb.debug_req, data)
endtask

// Verify that writing to ndmreset causes ndmreset output to be set.
// Check that the ndmreset field controls the ndmreset_req_o output
//
// This is analogous to check_haltreq. Here, we expect the ndmreset field in the dmcontrol
// register to control the ndmreset_req_o output signal.
task check_ndmreset();
uvm_reg_data_t data = $urandom_range(0, 1);
csr_wr(.ptr(jtag_dmi_ral.dmcontrol.ndmreset), .value(data));
cfg.clk_rst_vif.wait_clks($urandom_range(0, 1000));
`DV_CHECK_EQ(cfg.rv_dm_vif.cb.ndmreset_req, data)
endtask

Expand Down

0 comments on commit eb2e16b

Please sign in to comment.