Merge pull request #1427 from georgiatai/devcvw

Changes in wally, sail, and spike config to support vector verification
This commit is contained in:
David Harris 2025-05-27 08:40:43 -07:00 committed by GitHub
commit 1c0fb856e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 21 additions and 8 deletions

View file

@ -17,6 +17,10 @@
`define M_COVERAGE `define M_COVERAGE
`define F_COVERAGE `define F_COVERAGE
`define D_COVERAGE `define D_COVERAGE
`define VX8_COVERAGE
`define VX16_COVERAGE
`define VX32_COVERAGE
`define VX64_COVERAGE
`define ZBA_COVERAGE `define ZBA_COVERAGE
`define ZBB_COVERAGE `define ZBB_COVERAGE
`define ZBC_COVERAGE `define ZBC_COVERAGE

View file

@ -17,6 +17,10 @@
`define M_COVERAGE `define M_COVERAGE
`define F_COVERAGE `define F_COVERAGE
`define D_COVERAGE `define D_COVERAGE
`define VX8_COVERAGE
`define VX16_COVERAGE
`define VX32_COVERAGE
`define VX64_COVERAGE
`define ZBA_COVERAGE `define ZBA_COVERAGE
`define ZBB_COVERAGE `define ZBB_COVERAGE
`define ZBC_COVERAGE `define ZBC_COVERAGE

View file

@ -63,6 +63,8 @@ class sail_cSim(pluginTemplate):
self.isa += 'd' self.isa += 'd'
if "Q" in ispec["ISA"]: if "Q" in ispec["ISA"]:
self.isa += 'q' self.isa += 'q'
if "V" in ispec["ISA"]:
self.isa += 'v'
objdump = "riscv64-unknown-elf-objdump" objdump = "riscv64-unknown-elf-objdump"
if shutil.which(objdump) is None: if shutil.which(objdump) is None:
logger.error(objdump+": executable not found. Please check environment setup.") logger.error(objdump+": executable not found. Please check environment setup.")

View file

@ -56,7 +56,7 @@
"supported": true "supported": true
}, },
"V": { "V": {
"supported": false, "supported": true,
"vlen_exp": 9, "vlen_exp": 9,
"elen_exp": 6, "elen_exp": 6,
"vl_use_ceil": false "vl_use_ceil": false

View file

@ -56,7 +56,7 @@
"supported": true "supported": true
}, },
"V": { "V": {
"supported": false, "supported": true,
"vlen_exp": 9, "vlen_exp": 9,
"elen_exp": 6, "elen_exp": 6,
"vl_use_ceil": false "vl_use_ceil": false

View file

@ -103,6 +103,8 @@ class spike(pluginTemplate):
self.isa += 'q' self.isa += 'q'
if "C" in ispec["ISA"]: if "C" in ispec["ISA"]:
self.isa += 'c' self.isa += 'c'
if "V" in ispec["ISA"]:
self.isa += 'v'
if "Zicsr" in ispec["ISA"]: if "Zicsr" in ispec["ISA"]:
self.isa += '_Zicsr' self.isa += '_Zicsr'
if "Zicond" in ispec["ISA"]: if "Zicond" in ispec["ISA"]:

View file

@ -1,11 +1,11 @@
hart_ids: [0] hart_ids: [0]
hart0: hart0:
ISA: RV32IMAFDCSUZicsr_Zicond_Zifencei_Zfa_Zfh_Zca_Zcb_Zcd_Zcf_Zba_Zbb_Zbc_Zbkb_Zbkc_Zbkx_Zbs_Zknd_Zkne_Zknh ISA: RV32IMAFDCVSUZicsr_Zicond_Zifencei_Zfa_Zfh_Zca_Zcb_Zcd_Zcf_Zba_Zbb_Zbc_Zbkb_Zbkc_Zbkx_Zbs_Zknd_Zkne_Zknh
physical_addr_sz: 32 physical_addr_sz: 32
User_Spec_Version: '2.3' User_Spec_Version: '2.3'
supported_xlen: [32] supported_xlen: [32]
misa: misa:
reset-val: 0x4014112D reset-val: 0x4034112D
rv32: rv32:
accessible: true accessible: true
mxl: mxl:
@ -23,7 +23,7 @@ hart0:
warl: warl:
dependency_fields: [] dependency_fields: []
legal: legal:
- extensions[25:0] bitmask [0x014112D, 0x0000000] - extensions[25:0] bitmask [0x034112D, 0x0000000]
wr_illegal: wr_illegal:
- Unchanged - Unchanged
PMP: PMP:
@ -31,3 +31,4 @@ hart0:
pmp-grain: 0 pmp-grain: 0
pmp-count: 16 pmp-count: 16
pmp-writable: 12 pmp-writable: 12

View file

@ -1,11 +1,11 @@
hart_ids: [0] hart_ids: [0]
hart0: hart0:
ISA: RV64IMAFDCSUZicsr_Zicond_Zifencei_Zfa_Zfh_Zca_Zcb_Zcd_Zba_Zbb_Zbc_Zbkb_Zbkc_Zbkx_Zbs_Zknd_Zkne_Zknh ISA: RV64IMAFDCVSUZicsr_Zicond_Zifencei_Zfa_Zfh_Zca_Zcb_Zcd_Zba_Zbb_Zbc_Zbkb_Zbkc_Zbkx_Zbs_Zknd_Zkne_Zknh
physical_addr_sz: 56 physical_addr_sz: 56
User_Spec_Version: '2.3' User_Spec_Version: '2.3'
supported_xlen: [64] supported_xlen: [64]
misa: misa:
reset-val: 0x800000000014112D reset-val: 0x800000000034112D
rv32: rv32:
accessible: false accessible: false
rv64: rv64:
@ -25,7 +25,7 @@ hart0:
warl: warl:
dependency_fields: [] dependency_fields: []
legal: legal:
- extensions[25:0] bitmask [0x015112D, 0x0000000] - extensions[25:0] bitmask [0x035112D, 0x0000000]
wr_illegal: wr_illegal:
- Unchanged - Unchanged
PMP: PMP: