[spi_device/dv] reduce simtime for smoke test
Fix iteration number and reduce number of TX/RX transactions
simtime should be < 5s
Signed-off-by: Weicai Yang <weicai@google.com>
diff --git a/hw/ip/spi_device/dv/env/seq_lib/spi_device_smoke_vseq.sv b/hw/ip/spi_device/dv/env/seq_lib/spi_device_smoke_vseq.sv
index 6c5cf89..37cc568 100644
--- a/hw/ip/spi_device/dv/env/seq_lib/spi_device_smoke_vseq.sv
+++ b/hw/ip/spi_device/dv/env/seq_lib/spi_device_smoke_vseq.sv
@@ -9,7 +9,7 @@
`uvm_object_new
constraint num_trans_c {
- num_trans inside {[1:6]};
+ num_trans == 2;
}
virtual task body();
@@ -22,7 +22,7 @@
`uvm_info(`gfn, $sformatf("starting sequence %0d/%0d", i, num_trans), UVM_LOW)
`DV_CHECK_RANDOMIZE_FATAL(this)
spi_device_init();
- repeat ($urandom_range(1, 200)) begin
+ repeat ($urandom_range(2, 10)) begin
bit [31:0] host_data_exp_q[$];
`DV_CHECK_STD_RANDOMIZE_FATAL(host_data)
`DV_CHECK_STD_RANDOMIZE_FATAL(device_data)