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
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?