mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-06-28 01:06:16 -04:00
[riscv-config] Add memory map entry to platform schema and to CV32A65X platform spec. (#2411)
This commit is contained in:
parent
6a649d6515
commit
8dcdf8fb56
3 changed files with 102 additions and 1 deletions
|
@ -21,6 +21,27 @@ reset:
|
||||||
mtime:
|
mtime:
|
||||||
implemented: true
|
implemented: true
|
||||||
address: 0x20000
|
address: 0x20000
|
||||||
|
memory_map:
|
||||||
|
-
|
||||||
|
memory_region:
|
||||||
|
name: bootrom
|
||||||
|
base_addr: 0x10000
|
||||||
|
size: 0x10000
|
||||||
|
description: System boot ROM
|
||||||
|
attributes:
|
||||||
|
read_only: true
|
||||||
|
cached: false
|
||||||
|
-
|
||||||
|
memory_region:
|
||||||
|
name: dram
|
||||||
|
base_addr: 0x80000000
|
||||||
|
size: 0x40000000
|
||||||
|
description: System (D)RAM
|
||||||
|
attributes:
|
||||||
|
executable: true
|
||||||
|
cached: true
|
||||||
|
non_idempotent: false
|
||||||
|
read_only: false
|
||||||
mtimecmp:
|
mtimecmp:
|
||||||
implemented: false
|
implemented: false
|
||||||
mtval_condition_writes:
|
mtval_condition_writes:
|
||||||
|
|
|
@ -19,5 +19,19 @@ nmi:
|
||||||
reset:
|
reset:
|
||||||
label: reset_vector
|
label: reset_vector
|
||||||
mtime:
|
mtime:
|
||||||
implemented: True
|
implemented: true
|
||||||
address: 0x20000
|
address: 0x20000
|
||||||
|
memory_map:
|
||||||
|
- memory_region:
|
||||||
|
name: bootrom
|
||||||
|
base_addr: 0x10000
|
||||||
|
size: 0x10000
|
||||||
|
description: System boot ROM
|
||||||
|
attributes:
|
||||||
|
read_only: true
|
||||||
|
cached: false
|
||||||
|
- memory_region:
|
||||||
|
name: dram
|
||||||
|
base_addr: 0x80000000
|
||||||
|
size: 0x40000000
|
||||||
|
description: System (D)RAM
|
||||||
|
|
|
@ -326,3 +326,69 @@ zicbo_cache_block_sz:
|
||||||
check_with: cache_block_size
|
check_with: cache_block_size
|
||||||
default:
|
default:
|
||||||
implemented: False
|
implemented: False
|
||||||
|
|
||||||
|
###
|
||||||
|
#memory_map
|
||||||
|
#--------
|
||||||
|
#
|
||||||
|
# - **Description**: Memory map - list of memory regions with their attributes
|
||||||
|
# - **Constraints**:
|
||||||
|
#
|
||||||
|
# - All addresses must be non-negative (0 or higher)
|
||||||
|
# - All sizes must be non-negative (0 or higher)
|
||||||
|
#
|
||||||
|
# - **Examples**:
|
||||||
|
#
|
||||||
|
# .. code-block:: yaml
|
||||||
|
#
|
||||||
|
# memory_map:
|
||||||
|
# - memory_region:
|
||||||
|
# name: bootrom
|
||||||
|
# base_addr: 0x10000
|
||||||
|
# size: 0x1000
|
||||||
|
# description: System boot ROM
|
||||||
|
# attributes:
|
||||||
|
# read_only: True
|
||||||
|
# - memory_region:
|
||||||
|
# name: dram
|
||||||
|
# base_addr: 0x80000000
|
||||||
|
# size: 0x40000000
|
||||||
|
# description: Main memory
|
||||||
|
|
||||||
|
memory_map:
|
||||||
|
type: list
|
||||||
|
schema:
|
||||||
|
type: dict
|
||||||
|
schema:
|
||||||
|
memory_region:
|
||||||
|
type: dict
|
||||||
|
schema:
|
||||||
|
description:
|
||||||
|
type: string
|
||||||
|
default: A homogeneous memory region
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
required: True
|
||||||
|
base_addr:
|
||||||
|
type: integer
|
||||||
|
min: 0
|
||||||
|
required: True
|
||||||
|
size:
|
||||||
|
type: integer
|
||||||
|
min: 0
|
||||||
|
required: True
|
||||||
|
attributes:
|
||||||
|
type: dict
|
||||||
|
schema:
|
||||||
|
executable:
|
||||||
|
type: boolean
|
||||||
|
cached:
|
||||||
|
type: boolean
|
||||||
|
non_idempotent:
|
||||||
|
type: boolean
|
||||||
|
read_only:
|
||||||
|
type: boolean
|
||||||
|
default: { executable: True, cached: True, non_idempotent: False, read_only: False }
|
||||||
|
required: True
|
||||||
|
required: True
|
||||||
|
required: True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue