-
Notifications
You must be signed in to change notification settings - Fork 391
PMA definitions #1663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
davidharrishmc
wants to merge
3
commits into
openhwgroup:main
Choose a base branch
from
davidharrishmc:dev
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
PMA definitions #1663
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,222 @@ | ||
| # pma.yaml | ||
| # Describes RISC-V Physical Memory Attributes (PMA) for a platform. | ||
| # See RISC-V Privileged Architectures specification for more details on PMA. | ||
|
|
||
| # Required fields: | ||
| # name: A string name for the PMA region. | ||
| # lo: The lower bound of the PMA region, as a hexadecimal string. | ||
| # hi: The upper bound of the PMA region, as a hexadecimal string. | ||
| # attributes: A dictionary of PMA attributes for the region. | ||
| # The following attributes are required: | ||
| # size: A list of supported access sizes (in bytes) for the region. | ||
| # read: A boolean indicating if the region is readable. | ||
| # write: A boolean indicating if the region is writable. | ||
| # execute: A boolean indicating if the region is executable. | ||
| # cacheable: A boolean indicating if the region is cacheable. | ||
| # coherent: A boolean indicating if the region is coherent. | ||
| # Writes by one agent to an address in the region are eventually visible to other coherent agents in the system. | ||
| # The following attributes are optional and have default values if not specified: | ||
| # idempotent_read: A boolean indicating if reads from the region are idempotent (default: same as read) | ||
| # idempotent_write: A boolean indicating if writes to the region are idempotent (default: same as write) | ||
| # hptw_read: A boolean indicating if the region supports host page table walks (default: same as read) | ||
| # hptw_write: A boolean indicating if the region supports host page table walks (default: same as write) | ||
| # misaligned_scalar: A boolean indicating if the region supports misaligned scalar accesses (default: false) | ||
| # misaligned_vector: A boolean indicating if the region supports misaligned vector accesses (default: false) | ||
| # cboz: A boolean indicating if the region supports cache block zeroing (default: false) | ||
| # ordering: The memory ordering model for the region, as a string (default: "ioweak") | ||
| # Options: "MainMem", "IORelaxed", "IOStrongCh0", "IOStrongCh1", "Other" | ||
| # amo: The type of atomic memory operations supported by the region, as a string (default: "AMONone") | ||
| # Options: "AMONone", "AMOSwap", "AMOLogical", "AMOArithmetic", "AMOCASW", "AMOCASD", "AMOCASQ" | ||
| # reserve: The type of reservation granularity for the region, as a string (default: "RsrvNone") | ||
| # Options: "RsrvNone", "RsrvNonEventual", "RsrvEventual" | ||
| # misaligned_atomicity_granule: The granularity (in bytes) for atomic accesses to the region that support misaligned atomics (default: 0, meaning misaligned AMOs are not supported) | ||
| pma_regions: | ||
| - name: "BOOTROM" | ||
| lo: "0x0000001000" | ||
| hi: "0x0000001FFF" | ||
| attributes: | ||
| size: [1, 2, 4, 8] | ||
| read: true | ||
| write: false | ||
| execute: true | ||
| cacheable: true | ||
| coherent: true | ||
| idempotent_read: true | ||
| idempotent_write: false | ||
| hptw_read: true | ||
| hptw_write: false | ||
| misaligned_scalar: true | ||
| misaligned_vector: true | ||
| cboz: false | ||
| ordering: MainMem | ||
| amo: AMONone | ||
| reserve: RsrvNone | ||
| misaligned_atomicity_granule: 0 | ||
| - name: "SDC" | ||
| lo: "0x0000012100" | ||
| hi: "0x000001211F" | ||
| attributes: | ||
| size: [4, 8] | ||
| read: true | ||
| write: true | ||
| execute: false | ||
| cacheable: false | ||
| coherent: false | ||
| idempotent_read: false | ||
| idempotent_write: false | ||
| hptw_read: false | ||
| hptw_write: false | ||
| misaligned_scalar: false | ||
| misaligned_vector: false | ||
| cboz: false | ||
| ordering: IOStrongCh0 | ||
| amo: AMONone | ||
| reserve: RsrvNone | ||
| misaligned_atomicity_granule: 0 | ||
| - name: "CLINT" | ||
| lo: "0x0002000000" | ||
| hi: "0x000200FFFF" | ||
| attributes: | ||
| size: [1, 2, 4, 8] | ||
| read: true | ||
| write: true | ||
| execute: false | ||
| cacheable: false | ||
| coherent: false | ||
| idempotent_read: false | ||
| idempotent_write: false | ||
| hptw_read: false | ||
| hptw_write: false | ||
| misaligned_scalar: false | ||
| misaligned_vector: false | ||
| cboz: false | ||
| ordering: IOStrongCh0 | ||
| amo: AMONone | ||
| reserve: RsrvNone | ||
| misaligned_atomicity_granule: 0 | ||
| - name: "PLIC" | ||
| lo: "0x000C000000" | ||
| hi: "0x000FFFFFFF" | ||
| attributes: | ||
| size: [4] | ||
| read: true | ||
| write: true | ||
| execute: false | ||
| cacheable: false | ||
| coherent: false | ||
| idempotent_read: false | ||
| idempotent_write: false | ||
| hptw_read: false | ||
| hptw_write: false | ||
| misaligned_scalar: false | ||
| misaligned_vector: false | ||
| cboz: false | ||
| ordering: IOStrongCh0 | ||
| amo: AMONone | ||
| reserve: RsrvNone | ||
| misaligned_atomicity_granule: 0 | ||
| - name: "UART0" | ||
| lo: "0x0010000000" | ||
| hi: "0x0010000007" | ||
| attributes: | ||
| size: [1] | ||
| read: true | ||
| write: true | ||
| execute: false | ||
| cacheable: false | ||
| coherent: false | ||
| idempotent_read: false | ||
| idempotent_write: false | ||
| hptw_read: false | ||
| hptw_write: false | ||
| misaligned_scalar: false | ||
| misaligned_vector: false | ||
| cboz: false | ||
| ordering: IOStrongCh0 | ||
| amo: AMONone | ||
| reserve: RsrvNone | ||
| misaligned_atomicity_granule: 0 | ||
| - name: "GPIO" | ||
| lo: "0x0010060000" | ||
| hi: "0x00100600FF" | ||
| attributes: | ||
| size: [4] | ||
| read: true | ||
| write: true | ||
| execute: false | ||
| cacheable: false | ||
| coherent: false | ||
| idempotent_read: false | ||
| idempotent_write: false | ||
| hptw_read: false | ||
| hptw_write: false | ||
| misaligned_scalar: false | ||
| misaligned_vector: false | ||
| cboz: false | ||
| ordering: IOStrongCh0 | ||
| amo: AMONone | ||
| reserve: RsrvNone | ||
| misaligned_atomicity_granule: 0 | ||
| - name: "SPI" | ||
| lo: "0x0010040000" | ||
| hi: "0x0010040FFF" | ||
| attributes: | ||
| size: [4] | ||
| read: true | ||
| write: true | ||
| execute: false | ||
| cacheable: false | ||
| coherent: false | ||
| idempotent_read: false | ||
| idempotent_write: false | ||
| hptw_read: false | ||
| hptw_write: false | ||
| misaligned_scalar: false | ||
| misaligned_vector: false | ||
| cboz: false | ||
| ordering: IOStrongCh0 | ||
| amo: AMONone | ||
| reserve: RsrvNone | ||
| misaligned_atomicity_granule: 0 | ||
| - name: "UNCORE_RAM" | ||
| lo: "0x0080000000" | ||
| hi: "0x008FFFFFFF" | ||
| attributes: | ||
| size: [1, 2, 4, 8] | ||
| read: true | ||
| write: true | ||
| execute: true | ||
| cacheable: true | ||
| coherent: true | ||
| idempotent_read: true | ||
| idempotent_write: true | ||
| hptw_read: true | ||
| hptw_write: true | ||
| misaligned_scalar: true | ||
| misaligned_vector: true | ||
| cboz: true | ||
| ordering: MainMem | ||
| amo: AMOArithmetic | ||
| reserve: RsrvEventual | ||
| misaligned_atomicity_granule: 64 | ||
| - name: "Undefined memory inaccessible" | ||
| lo: "0x0000000000" | ||
| hi: "0xFFFFFFFFFFFFFFFF" | ||
| attributes: | ||
| size: [1, 2, 4, 8] | ||
| read: false | ||
| write: false | ||
| execute: false | ||
| cacheable: false | ||
| coherent: false | ||
| idempotent_read: false | ||
| idempotent_write: false | ||
| hptw_read: false | ||
| hptw_write: false | ||
| misaligned_scalar: false | ||
| misaligned_vector: false | ||
| cboz: false | ||
| ordering: Other | ||
| amo: AMONone | ||
| reserve: RsrvNone | ||
| misaligned_atomicity_granule: 0 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.