[dv/spi_device/top_earlgrey] Fix compile warnings
Signed-off-by: Gaurang Chitroda <gaurangg@google.com>
diff --git a/hw/ip/spi_device/dv/env/spi_device_env_cfg.sv b/hw/ip/spi_device/dv/env/spi_device_env_cfg.sv
index 861b28c..c28af29 100644
--- a/hw/ip/spi_device/dv/env/spi_device_env_cfg.sv
+++ b/hw/ip/spi_device/dv/env/spi_device_env_cfg.sv
@@ -17,7 +17,7 @@
this.csr_addr_map_size = SPI_DEVICE_ADDR_MAP_SIZE;
endfunction : initialize_csr_addr_map_size
- virtual function void initialize(bit [TL_AW-1:0] csr_base_addr = 0);
+ virtual function void initialize(bit [TL_AW-1:0] csr_base_addr = '1);
mem_addr_s mem_addr;
super.initialize(csr_base_addr);
// create spi agent config obj
diff --git a/hw/ip/spi_device/dv/env/spi_device_scoreboard.sv b/hw/ip/spi_device/dv/env/spi_device_scoreboard.sv
index 0aba09e..8aae51b 100644
--- a/hw/ip/spi_device/dv/env/spi_device_scoreboard.sv
+++ b/hw/ip/spi_device/dv/env/spi_device_scoreboard.sv
@@ -31,8 +31,8 @@
super.build_phase(phase);
host_spi_data_fifo = new("host_spi_data_fifo", this);
device_spi_data_fifo = new("device_spi_data_fifo", this);
- tx_mem = mem_model::type_id::create("tx_mem", this);
- rx_mem = mem_model::type_id::create("rx_mem", this);
+ tx_mem = mem_model#()::type_id::create("tx_mem", this);
+ rx_mem = mem_model#()::type_id::create("rx_mem", this);
endfunction
task run_phase(uvm_phase phase);