From eb2e16b789b779c0206f4272c04a8b9b8a066d6e Mon Sep 17 00:00:00 2001 From: Rupert Swarbrick Date: Thu, 15 Feb 2024 14:10:14 +0000 Subject: [PATCH] [rv_dm,dv] Remove wait and document check_ndmreset in smoke vseq This is equivalent to the changes that have just been made to check_haltreq (the previous task). Signed-off-by: Rupert Swarbrick --- hw/ip/rv_dm/dv/env/seq_lib/rv_dm_smoke_vseq.sv | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hw/ip/rv_dm/dv/env/seq_lib/rv_dm_smoke_vseq.sv b/hw/ip/rv_dm/dv/env/seq_lib/rv_dm_smoke_vseq.sv index d7535fb22fc44..a69249037f88e 100644 --- a/hw/ip/rv_dm/dv/env/seq_lib/rv_dm_smoke_vseq.sv +++ b/hw/ip/rv_dm/dv/env/seq_lib/rv_dm_smoke_vseq.sv @@ -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