Enable zcb extension into cva6 UVM env (#1777)

This commit is contained in:
Jalali 2024-01-24 15:37:18 +00:00 committed by GitHub
parent 6568b18a54
commit 358a73a07d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -110,6 +110,7 @@ class uvme_cva6_cfg_c extends uvma_core_cntrl_cfg_c;
ext_zifencei_supported == 1;
ext_zicsr_supported == 1;
ext_zicond_supported == 0;
ext_zcb_supported == 1;
mode_s_supported == 0;
mode_u_supported == 0;
@ -131,6 +132,12 @@ class uvme_cva6_cfg_c extends uvma_core_cntrl_cfg_c;
nmi_addr_valid == 1;
}
constraint ext_const {
if (!ext_c_supported) {
ext_zcb_supported == 0;
}
}
constraint default_cva6_boot_cons {
(!mhartid_plusarg_valid) -> (mhartid == 'h0000_0000);
(!mimpid_plusarg_valid) -> (mimpid == 'h0000_0000);