mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Fixes to memfile generation for rv32. Updated new misa.B in imperas.ic, but need new version of ImperasDV to test
This commit is contained in:
parent
8645441d00
commit
775930ae4f
@ -15,8 +15,8 @@
|
|||||||
|
|
||||||
# bit manipulation
|
# bit manipulation
|
||||||
--override cpu/add_Extensions=B
|
--override cpu/add_Extensions=B
|
||||||
#--override cpu/add_implicit_Extensions=B
|
|
||||||
--override cpu/bitmanip_version=1.0.0
|
--override cpu/bitmanip_version=1.0.0
|
||||||
|
--override cpu/misa_B_Zba_Zbb_Zbs=T
|
||||||
|
|
||||||
# More extensions
|
# More extensions
|
||||||
--override cpu/Zcb=T
|
--override cpu/Zcb=T
|
||||||
@ -60,17 +60,11 @@
|
|||||||
--override cpu/misa_Extensions_mask=0x0 # MISA not writable
|
--override cpu/misa_Extensions_mask=0x0 # MISA not writable
|
||||||
--override cpu/Sstc=T
|
--override cpu/Sstc=T
|
||||||
|
|
||||||
# unsuccessfully attempt to add B extension (DH 12/21/23)
|
|
||||||
#--override cpu/add_Extensions="B"
|
|
||||||
#--override cpu/misa_Extensions=0x0014112F
|
|
||||||
|
|
||||||
# Enable SVADU hardware update of A/D bits when menvcfg.ADUE=1
|
# Enable SVADU hardware update of A/D bits when menvcfg.ADUE=1
|
||||||
--override cpu/Svadu=T
|
--override cpu/Svadu=T
|
||||||
#--override cpu/updatePTEA=F
|
#--override cpu/updatePTEA=F
|
||||||
#--override cpu/updatePTED=F
|
#--override cpu/updatePTED=F
|
||||||
|
|
||||||
|
|
||||||
# THIS NEEDS FIXING to 16
|
|
||||||
--override cpu/PMP_registers=16
|
--override cpu/PMP_registers=16
|
||||||
--override cpu/PMP_undefined=T
|
--override cpu/PMP_undefined=T
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
||||||
|
|
||||||
%.elf.memfile: %.elf
|
%.elf.memfile: %.elf
|
||||||
riscv64-unknown-elf-elf2hex --bit-width 64 --input $< --output $@
|
riscv64-unknown-elf-elf2hex --bit-width $(if $(findstring rv32,$*),32,64) --input $< --output $@
|
||||||
|
|
||||||
%.elf.objdump.addr: %.elf.objdump
|
%.elf.objdump.addr: %.elf.objdump
|
||||||
extractFunctionRadix.sh $<
|
extractFunctionRadix.sh $<
|
||||||
|
@ -941,7 +941,7 @@ task automatic updateProgramAddrLabelArray;
|
|||||||
string cmd;
|
string cmd;
|
||||||
|
|
||||||
// if memfile, label, or addr files are out of date or don't exist, generate them
|
// if memfile, label, or addr files are out of date or don't exist, generate them
|
||||||
cmd = {"make -f ", WALLY_DIR, "/testbench/Makefile ", memfilename, " ", ProgramAddrMapFile};
|
cmd = {"make -s -f ", WALLY_DIR, "/testbench/Makefile ", memfilename, " ", ProgramAddrMapFile};
|
||||||
$system(cmd);
|
$system(cmd);
|
||||||
|
|
||||||
ProgramLabelMapFP = $fopen(ProgramLabelMapFile, "r");
|
ProgramLabelMapFP = $fopen(ProgramLabelMapFile, "r");
|
||||||
|
Loading…
Reference in New Issue
Block a user