Skip to content

Commit 1985c76

Browse files
committed
Drop an import from inside of a class
This causes VCS to spit out an error because it's not technically allowed in SystemVerilog. The only things that we needed to import seems to have been the CSR_MHPMCOUNTER3* names. We can just refer to them explicitly.
1 parent 3b34f80 commit 1985c76

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

dv/uvm/core_ibex/common/ibex_cosim_agent/ibex_cosim_scoreboard.sv

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
`include "cosim_dpi.svh"
77

88
class ibex_cosim_scoreboard extends uvm_scoreboard;
9-
import ibex_pkg::*;
109
chandle cosim_handle;
1110

1211
core_ibex_cosim_cfg cfg;
@@ -151,8 +150,10 @@ class ibex_cosim_scoreboard extends uvm_scoreboard;
151150

152151
// Set performance counters through a pseudo-backdoor write
153152
for (int i=0; i < 10; i++) begin
154-
riscv_cosim_set_csr(cosim_handle, CSR_MHPMCOUNTER3 + i, rvfi_instr.mhpmcounters[i]);
155-
riscv_cosim_set_csr(cosim_handle, CSR_MHPMCOUNTER3H + i, rvfi_instr.mhpmcountersh[i]);
153+
riscv_cosim_set_csr(cosim_handle,
154+
ibex_pkg::CSR_MHPMCOUNTER3 + i, rvfi_instr.mhpmcounters[i]);
155+
riscv_cosim_set_csr(cosim_handle,
156+
ibex_pkg::CSR_MHPMCOUNTER3H + i, rvfi_instr.mhpmcountersh[i]);
156157
end
157158

158159
riscv_cosim_set_ic_scr_key_valid(cosim_handle, rvfi_instr.ic_scr_key_valid);

0 commit comments

Comments
 (0)