chipsalliance / riscv-dv

Random instruction generator for RISC-V processor verification
Apache License 2.0
1.03k stars 330 forks source link

VCS2018:Incompatible complex type #902

Open 123drf opened 2 years ago

123drf commented 2 years ago

Error-[ICTA] Incompatible complex type /mnt/riscv-dv/src/isa/riscv_csr_instr.sv, 89 Incompatible complex type assignment Type of source expression is incompatible with type of target expression. Mismatching types cannot be used in assignments, initializations and instantiations. The type of the target is 'bit[11:0]$[$]', while the type of the source is 'enum riscv_instr_pkg::privileged_reg_t$[]'. Source Expression: implemented_csr

Error-[ICTA] Incompatible complex type /mnt/riscv-dv/src/isa/riscv_csr_instr.sv, 91 Incompatible complex type assignment Type of source expression is incompatible with type of target expression. Mismatching types cannot be used in assignments, initializations and instantiations. The type of the target is 'bit[11:0]$[$]', while the type of the source is 'enum riscv_instr_pkg::privileged_reg_t$[$]'. Source Expression: cfg.invalid_priv_mode_csrs

Error-[ICTA] Incompatible complex type /mnt/riscv-dv/src/isa/riscv_csr_instr.sv, 94 Incompatible complex type assignment Type of source expression is incompatible with type of target expression. Mismatching types cannot be used in assignments, initializations and instantiations. The type of the target is 'bit[11:0]$[$]', while the type of the source is 'enum riscv_instr_pkg::privileged_reg_t$[]'. Source Expression: implemented_csr

How to solve it?

123drf commented 2 years ago

Please tell me to use the applicable vcs version

nmi-sc commented 2 years ago

I had the same errors as yours.
git checkout 808fb162d66de5dd0dd2b45fd0b8d1fb1bf170f6 helped me.

123drf commented 2 years ago

Problem solved, thank you very much