-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pmp] Use top-level straps for PMP reset values
By using top-level straps for the PMP reset configuration its easier to implement different reset configurations if there are multiple Ibex cores in the system. Signed-off-by: Robert Schilling <[email protected]>
- Loading branch information
Showing
8 changed files
with
173 additions
and
160 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -664,4 +664,54 @@ package ibex_pkg; | |
// and core_busy signals within `ibex_core` may need adjusting. | ||
parameter ibex_mubi_t IbexMuBiOn = 4'b0101; | ||
parameter ibex_mubi_t IbexMuBiOff = 4'b1010; | ||
|
||
// Default reset values for PMP CSRs. Where the number of regions | ||
// (PMPNumRegions) is less than 16 the reset values for the higher numbered | ||
// regions are ignored. | ||
// | ||
// See the Ibex Reference Guide (Custom Reset Values under Physical Memory | ||
// Protection) for more information. | ||
|
||
parameter pmp_cfg_t pmp_cfg_rst[16] = '{ | ||
Check warning on line 675 in rtl/ibex_pkg.sv GitHub Actions / verible-lint
|
||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 0 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 1 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 2 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 3 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 4 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 5 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 6 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 7 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 8 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 9 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 10 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 11 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 12 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 13 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0}, // region 14 | ||
'{lock: 1'b0, mode: PMP_MODE_OFF, exec: 1'b0, write: 1'b0, read: 1'b0} // region 15 | ||
}; | ||
|
||
// Addresses are given in byte granularity for readibility. A minimum of two | ||
// bits will be stripped off the bottom (PMPGranularity == 0) with more stripped | ||
// off at coarser granularities. | ||
parameter logic [33:0] pmp_addr_rst[16] = '{ | ||
Check warning on line 697 in rtl/ibex_pkg.sv GitHub Actions / verible-lint
|
||
34'h0, // region 0 | ||
34'h0, // region 1 | ||
34'h0, // region 2 | ||
34'h0, // region 3 | ||
34'h0, // region 4 | ||
34'h0, // region 5 | ||
34'h0, // region 6 | ||
34'h0, // region 7 | ||
34'h0, // region 8 | ||
34'h0, // region 9 | ||
34'h0, // region 10 | ||
34'h0, // region 11 | ||
34'h0, // region 12 | ||
34'h0, // region 13 | ||
34'h0, // region 14 | ||
34'h0 // region 15 | ||
}; | ||
|
||
parameter pmp_mseccfg_t pmp_mseccfg_rst = '{rlb : 1'b0, mmwp: 1'b0, mml: 1'b0}; | ||
Check warning on line 716 in rtl/ibex_pkg.sv GitHub Actions / verible-lint
|
||
endpackage |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.