Skip to content

Commit 4b4caf7

Browse files
shivmggimphil
authored andcommitted
Add CORE_DATA_WIDTH register to the CDM register map
For the implementation of CDM module, CPU register width is required. Also improves the documentation. Closes #17
1 parent 6cbea59 commit 4b4caf7

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/02_spec/07_modules/cdm/dbgregisters.rst

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ Additionally, the CDM implements the following registers.
6060
- 16
6161
- Most significant bits of the SPR address (see below)
6262

63+
* - 0x0202
64+
- ``CORE_DATA_WIDTH``
65+
- 16
66+
- Register data width of the attached CPU core in bits
67+
6368
* - 0x8000-0xFFFF
6469
-
6570
- 32
@@ -93,8 +98,8 @@ Core Control Register (``CORE_CTRL``)
9398

9499
* - 0
95100
- ``STALL``
96-
- *impl.-spec.*
97101
- r/w
102+
- *impl.-spec.*
98103
- **Core Stall**
99104

100105
Stall the attached CPU core.
@@ -118,6 +123,18 @@ The most significant bit of the SPR register address.
118123
See the section "Access to core registers" for more details.
119124

120125

126+
Core Data Width (``CORE_DATA_WIDTH``)
127+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
128+
129+
- Address: 0x0202
130+
- Reset Value: 0
131+
- Data Width: 16 bit
132+
- Access: read-write
133+
134+
The register width of the CPU core (in bits) the CDM module is connected to.
135+
Valid values are 16, 32 and 64 and 128.
136+
137+
121138
Access to core registers
122139
^^^^^^^^^^^^^^^^^^^^^^^^
123140
- Address: 0x8000-0xFFFF

0 commit comments

Comments
 (0)