mirror of
https://github.com/lowRISC/ibex.git
synced 2025-04-23 05:17:12 -04:00
parent
2be7413ac8
commit
d4cb1a30ae
4 changed files with 18 additions and 1 deletions
|
@ -31,6 +31,7 @@ ${PRJ_DIR}/ibex/rtl/ibex_multdiv_fast.sv
|
|||
${PRJ_DIR}/ibex/rtl/ibex_prefetch_buffer.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_fetch_fifo.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_register_file_ff.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_pmp.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_core.sv
|
||||
${PRJ_DIR}/ibex/rtl/ibex_core_tracing.sv
|
||||
|
||||
|
|
|
@ -50,6 +50,9 @@ mtvec_mode_t supported_interrupt_mode[$] = {VECTORED};
|
|||
// supported
|
||||
int max_interrupt_vector_num = 32;
|
||||
|
||||
// Physical memory protection support
|
||||
bit support_pmp = 1;
|
||||
|
||||
// Debug mode support
|
||||
bit support_debug_mode = 1;
|
||||
|
||||
|
|
|
@ -574,3 +574,13 @@
|
|||
rtl_test: core_ibex_invalid_csr_test
|
||||
sim_opts: >
|
||||
+require_signature_addr=1
|
||||
|
||||
- test: riscv_pmp_test
|
||||
desc: >
|
||||
Random PMP settings
|
||||
iterations: 1
|
||||
gen_test: riscv_rand_instr_test
|
||||
gen_opts: >
|
||||
+instr_cnt=6000
|
||||
+num_of_sub_program=2
|
||||
rtl_test: core_ibex_base_test
|
||||
|
|
|
@ -27,7 +27,10 @@ module core_ibex_tb_top;
|
|||
core_ibex_csr_if csr_if(.clk(clk));
|
||||
|
||||
ibex_core_tracing #(.DmHaltAddr(`BOOT_ADDR + 'h0),
|
||||
.DmExceptionAddr(`BOOT_ADDR + 'h4)) dut (
|
||||
.DmExceptionAddr(`BOOT_ADDR + 'h4),
|
||||
.PMPEnable(1'b1),
|
||||
.PMPGranularity(0),
|
||||
.PMPNumRegions(16)) dut (
|
||||
.clk_i(clk),
|
||||
.rst_ni(rst_n),
|
||||
.test_en_i(1'b1),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue