Skip to content

Commit

Permalink
Merge pull request #105 from stnolting/dev1205
Browse files Browse the repository at this point in the history
plugin updates and fixes
  • Loading branch information
stnolting committed May 12, 2023
2 parents 61b3a09 + 254c9cc commit 9b114d3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 22 deletions.
1 change: 0 additions & 1 deletion plugin-neorv32/neorv32_isa.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
hart_ids: [0]
mtval_update: 0b11110011
hart0:
ISA: RV32IMCUZicsr_Zifencei_Zba_Zbb_Zbc_Zbs
physical_addr_sz: 32
Expand Down
10 changes: 0 additions & 10 deletions plugin-neorv32/neorv32_platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,3 @@ nmi:
label: nmi_vector
reset:
address: 0x00000000
mtval_condition_writes:
implemented: true
behaviour:
e00: "[0x00000000:0x00000000], 'Instruction fetch - address that was misaligned'"
e01: "[0x00000000:0x00000000], 'Instruction fetch - address that triggered a bus exception'"
e03: "[0x00000000:0x00000000], 'Breakpoint - set to zero'"
e04: "[0x00000000:0x00000000], 'Load access - address that was misaligned'"
e05: "[0x00000000:0x00000000], 'Load access - address that triggered a bus exception'"
e06: "[0x00000000:0x00000000], 'Store access - address that was misaligned'"
e07: "[0x00000000:0x00000000], 'Store access - address that triggered a bus exception'"
12 changes: 4 additions & 8 deletions plugin-neorv32/riscof_neorv32.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,18 +173,14 @@ def runTests(self, testList):

# prepare run of GHDL simulation
execute = 'sh ./sim/ghdl_run.sh'
# set TB generics according to MARCH test case
if "e" in marchstr:
execute += ' -gRISCV_E=true'
if "m" in marchstr:
# override testbench generics according to MARCH test case
if "rv32im" in marchstr:
execute += ' -gRISCV_M=true'
# 'privilege' tests also require C extension
if "c" in marchstr or "privilege" in test:
if "rv32ic" in marchstr or "privilege" in test:
execute += ' -gRISCV_C=true'
if "b" in marchstr:
if "rv32izba" in marchstr or "rv32izbb" in marchstr or "rv32izbc" in marchstr or "rv32izbs" in marchstr:
execute += ' -gRISCV_B=true'
if "u" in marchstr:
execute += ' -gRISCV_U=true'
logger.debug('DUT executing ' + execute)
utils.shellCommand(execute).run()

Expand Down
5 changes: 2 additions & 3 deletions sim/neorv32_riscof_tb.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ entity neorv32_riscof_tb is
RISCV_B : boolean := false; -- bit-manipulation ISA extension
RISCV_C : boolean := false; -- compressed ISA extension
RISCV_E : boolean := false; -- embedded ISA extension
RISCV_M : boolean := false; -- hardware mul/div ISA extension
RISCV_U : boolean := false -- user-mode ISA extension
RISCV_M : boolean := false -- hardware mul/div ISA extension
);
end neorv32_riscof_tb;

Expand Down Expand Up @@ -142,7 +141,7 @@ begin
CPU_EXTENSION_RISCV_C => RISCV_C,
CPU_EXTENSION_RISCV_E => RISCV_E,
CPU_EXTENSION_RISCV_M => RISCV_M,
CPU_EXTENSION_RISCV_U => RISCV_U,
CPU_EXTENSION_RISCV_U => true,
CPU_EXTENSION_RISCV_Zicntr => true,
CPU_EXTENSION_RISCV_Zifencei => true,
-- Extension Options --
Expand Down

0 comments on commit 9b114d3

Please sign in to comment.