[dv] Remove unnecessary variables in agents
these variables have been defined in the base class
Signed-off-by: Weicai Yang <weicai@google.com>
diff --git a/hw/dv/sv/spi_agent/spi_agent_cfg.sv b/hw/dv/sv/spi_agent/spi_agent_cfg.sv
index cf8e025..e593d93 100644
--- a/hw/dv/sv/spi_agent/spi_agent_cfg.sv
+++ b/hw/dv/sv/spi_agent/spi_agent_cfg.sv
@@ -5,11 +5,8 @@
class spi_agent_cfg extends dv_base_agent_cfg;
// agent cfg knobs
- bit is_active = 1'b1; // active driver or passive monitor
- bit en_cov = 1'b1; // enable coverage
bit en_monitor_collect_trans = 1'b1; // enable monitor to collect trans on-the-fly
bit en_monitor_checks = 1'b1; // enable checkers in monitor
- if_mode_e mode; // host or device mode
// host mode cfg knobs
time sck_period_ps = 50_000; // 20MHz
@@ -37,9 +34,6 @@
virtual spi_if vif;
`uvm_object_utils_begin(spi_agent_cfg)
- `uvm_field_int (is_active, UVM_DEFAULT)
- `uvm_field_int (en_cov, UVM_DEFAULT)
- `uvm_field_enum(if_mode_e, mode, UVM_DEFAULT)
`uvm_field_int (sck_period_ps, UVM_DEFAULT)
`uvm_field_int (sck_polarity, UVM_DEFAULT)
`uvm_field_int (sck_phase, UVM_DEFAULT)
diff --git a/hw/dv/sv/uart_agent/uart_agent_cfg.sv b/hw/dv/sv/uart_agent/uart_agent_cfg.sv
index ed2ad9a..c19703a 100644
--- a/hw/dv/sv/uart_agent/uart_agent_cfg.sv
+++ b/hw/dv/sv/uart_agent/uart_agent_cfg.sv
@@ -4,8 +4,6 @@
class uart_agent_cfg extends dv_base_agent_cfg;
- bit is_active = 1'b1; // active driver or passive monitor
- bit en_cov = 1'b1; // enable coverage
bit en_rx_checks = 1'b1; // enable RX checks (implemented in monitor)
bit en_tx_checks = 1'b1; // enable TX checks (implemented in monitor)
bit en_rx_monitor = 1'b1; // enable RX monitor
@@ -36,8 +34,6 @@
local uint max_drift_cycle_pct = 25;
`uvm_object_utils_begin(uart_agent_cfg)
- `uvm_field_int(is_active, UVM_DEFAULT)
- `uvm_field_int(en_cov, UVM_DEFAULT)
`uvm_field_int(en_rx_checks, UVM_DEFAULT)
`uvm_field_int(en_tx_checks, UVM_DEFAULT)
`uvm_field_int(en_tx_monitor, UVM_DEFAULT)
diff --git a/hw/ip/spi_device/dv/tests/spi_device_base_test.sv b/hw/ip/spi_device/dv/tests/spi_device_base_test.sv
index 83cd0ce..42e559a 100644
--- a/hw/ip/spi_device/dv/tests/spi_device_base_test.sv
+++ b/hw/ip/spi_device/dv/tests/spi_device_base_test.sv
@@ -12,7 +12,7 @@
test_timeout_ns = 1000_000_000; // 1s
super.build_phase(phase);
// configure the spi agent to be in Host mode
- cfg.m_spi_agent_cfg.mode = Host;
+ cfg.m_spi_agent_cfg.if_mode = Host;
endfunction
endclass : spi_device_base_test