Skip to content

Commit

Permalink
Adding legal values to MIP, MIE, SIP and SIE registers
Browse files Browse the repository at this point in the history
  • Loading branch information
Frikha Mohamed Aziz committed Jul 31, 2023
1 parent b928fdf commit 32020a7
Show file tree
Hide file tree
Showing 4 changed files with 538 additions and 48 deletions.
38 changes: 26 additions & 12 deletions docs/01_cva6_user/ip-xact/cva6_csr.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,15 @@ The ``sstatus`` register is a subset of the ``mstatus`` register.
The ``sie`` is the register containing supervisor interrupt enable bits.
| BIT | NAME | displayName | RIGHT | Description |
| --- | ----------- | ------------ | ------ | -------------------------------------------------------------------- |
| 14:10 | Reserved_10 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 9 | SEIE | Supervisor-level external interrupt enable | read-write,WARL | SEIE is the interrupt\-enable bit for supervisor\-level external interrupts\.|
| 8 | UEIE | | read-write,WARL | User\-level external interrupts are disabled when the UEIE bit in the sie register is clear\.|
| 8 | UEIE | | read-write,WARL | User\-level external interrupts are disabled when the UEIE bit in the sie register is clear\.``Legal Values:``0\.|
| 7:6 | Reserved_6 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 5 | STIE | Supervisor-level timer interrupt enable | read-write,WARL | STIE is the interrupt\-enable bit for supervisor\-level timer interrupts\.|
| 4 | UTIE | | read-write,WARL | User\-level timer interrupts are disabled when the UTIE bit in the sie register is clear\.|
| 4 | UTIE | | read-write,WARL | User\-level timer interrupts are disabled when the UTIE bit in the sie register is clear\.``Legal Values:``0\.|
| 3:2 | Reserved_2 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 1 | SSIE | Supervisor-level software interrupt enable | read-write,WARL | SSIE is the interrupt\-enable bit for supervisor\-level software interrupts\.|
| 0 | USIE | | read-write,WARL | User\-level software interrupts are disabled when the USIE bit in the sie register is clear|
| 0 | USIE | | read-write,WARL | User\-level software interrupts are disabled when the USIE bit in the sie register is clear\.``Legal Values:``0\.|

## Supervisor Trap Vector Base Address Register
### *AddressOffset*: 'h105
Expand Down Expand Up @@ -160,12 +163,15 @@ When a trap is taken into S-mode, ``stval`` is written with exception-specific i
The ``sip`` register contains information on pending interrupts.
| BIT | NAME | displayName | RIGHT | Description |
| --- | ----------- | ------------ | ------ | -------------------------------------------------------------------- |
| 14:10 | Reserved_10 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 9 | SEIP | Supervisor-level external interrupt pending | read-only,WARL | SEIP is the interrupt\-pending bit for supervisor\-level external interrupts\.|
| 8 | UEIP | | read-write,WARL | UEIP may be written by S\-mode software to indicate to U\-mode that an external interrupt is pending\.|
| 8 | UEIP | | read-write,WARL | UEIP may be written by S\-mode software to indicate to U\-mode that an external interrupt is pending\.``Legal Values:``0\.|
| 7:6 | Reserved_6 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 5 | STIP | Supervisor-level timer interrupt pending | read-only,WARL | SEIP is the interrupt\-pending bit for supervisor\-level timer interrupts\.|
| 4 | UTIP | | read-write,WARL | A user\-level timer interrupt is pending if the UTIP bit in the sip register is set|
| 4 | UTIP | | read-write,WARL | A user\-level timer interrupt is pending if the UTIP bit in the sip register is set\.``Legal Values:``0\.|
| 3:2 | Reserved_2 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 1 | SSIP | Supervisor-level software interrupt pending | read-only,WARL | SSIP is the interrupt\-pending bit for supervisor\-level software interrupts\.|
| 0 | USIP | | read-write,WARL | A user\-level software interrupt is triggered on the current hart by riting 1 to its user software interrupt\-pending \(USIP\) bit|
| 0 | USIP | | read-write,WARL | A user\-level software interrupt is triggered on the current hart by riting 1 to its user software interrupt\-pending \(USIP\) bit\.``Legal Values:``0\.|

## Supervisor Address Translation and Protection Register
### *AddressOffset*: 'h180
Expand Down Expand Up @@ -241,15 +247,19 @@ Provides individual read/write bits to indicate that certain interrupts should b
This register contains machine interrupt enable bits.
| BIT | NAME | displayName | RIGHT | Description |
| --- | ----------- | ------------ | ------ | -------------------------------------------------------------------- |
| 15:12 | Reserved_12 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 11 | MEIE | M-mode external interrupt enable | read-write,WARL | Enables machine mode external interrupts\.|
| 10 | Reserved_10 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 9 | SEIE | S-mode external interrupt enable | read-write,WARL | Enables supervisor mode external interrupts\.|
| 8 | UEIE | | read-write,WARL | enables U\-mode external interrupts|
| 8 | UEIE | | read-write,WARL | enables U\-mode external interrupts\.``Legal Values:``0\.|
| 7 | MTIE | M-mode timer interrupt enable | read-write,WARL | Enables machine mode timer interrupts\.|
| 6 | Reserved_6 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 5 | STIE | S-mode timer interrupt enable | read-write,WARL | Enables supervisor mode timer interrupts\.|
| 4 | UTIE | | read-write,WARL | timer interrupt\-enable bit for U\-mode|
| 4 | UTIE | | read-write,WARL | timer interrupt\-enable bit for U\-mode\.``Legal Values:``0\.|
| 3 | MSIE | M-mode software interrupt enable | read-write | Enables machine mode software interrupts\.|
| 2 | Reserved_2 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 1 | SSIE | S-mode software interrupt enable | read-write,WARL | Enables supervisor mode software interrupts\.|
| 0 | USIE | | read-write,WARL | enable U\-mode software interrrupts|
| 0 | USIE | | read-write,WARL | enable U\-mode software interrrupts\.``Legal Values:``0\.|

## Machine Trap Vector Register
### *AddressOffset*: 'h305
Expand Down Expand Up @@ -350,15 +360,19 @@ When a trap is taken into M-mode, mtval is either set to zero or written with ex
This register contains machine interrupt pending bits.
| BIT | NAME | displayName | RIGHT | Description |
| --- | ----------- | ------------ | ------ | -------------------------------------------------------------------- |
| 15:12 | Reserved_12 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 11 | MEIP | M-mode external interrupt pending | read-only | The interrupt\-pending bit for machine\-level external interrupts\.|
| 10 | Reserved_10 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 9 | SEIP | S-mode external interrupt pending | read-write | The interrupt\-pending bit for supervisor\-level external interrupts\.|
| 8 | UEIP | | read-write | enables external interrupts|
| 8 | UEIP | | read-write | enables external interrupts\.``Legal Values:``0\.|
| 7 | MTIP | M-mode timer interrupt pending | read-only | The interrupt\-pending bit for machine\-level timer interrupts\.|
| 6 | Reserved_6 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 5 | STIP | S-mode timer interrupt pending | read-write | The interrupt\-pending bit for supervisor\-level timer interrupts\.|
| 4 | UTIP | | read-write | Correspond to timer interrupt\-pending bits for user interrupt|
| 4 | UTIP | | read-write | Correspond to timer interrupt\-pending bits for user interrupt\.``Legal Values:``0\.|
| 3 | MSIP | M-mode software interrupt pending | read-only | The interrupt\-pending bit for machine\-level software interrupts\.|
| 2 | Reserved_2 | Reserved | read-write,WARL | Reserved\.``Legal Values:``0\.|
| 1 | SSIP | S-mode software interrupt pending | read-write | The interrupt\-pending bit for supervisor\-level software interrupts\.|
| 0 | USIP | | read-write | A hart to directly write its own USIP bits when running in the appropriate mode|
| 0 | USIP | | read-write | A hart to directly write its own USIP bits when running in the appropriate mode\.``Legal Values:``0\.|

## Physical Memory Protection Config 0 Register
### *AddressOffset*: 'h3A0
Expand Down
94 changes: 82 additions & 12 deletions docs/01_cva6_user/ip-xact/cva6_csr.rst
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ The ``sie`` is the register containing supervisor interrupt enable bits.
- **displayName**
- **RIGHT**
- **Description**
* - 14:10
- Reserved_10
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 9
- SEIE
- Supervisor-level external interrupt enable
Expand All @@ -215,7 +220,12 @@ The ``sie`` is the register containing supervisor interrupt enable bits.
- UEIE
-
- read-write,WARL
- User\-level external interrupts are disabled when the UEIE bit in the sie register is clear\.
- User\-level external interrupts are disabled when the UEIE bit in the sie register is clear\.``Legal Values:``0\.
* - 7:6
- Reserved_6
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 5
- STIE
- Supervisor-level timer interrupt enable
Expand All @@ -225,7 +235,12 @@ The ``sie`` is the register containing supervisor interrupt enable bits.
- UTIE
-
- read-write,WARL
- User\-level timer interrupts are disabled when the UTIE bit in the sie register is clear\.
- User\-level timer interrupts are disabled when the UTIE bit in the sie register is clear\.``Legal Values:``0\.
* - 3:2
- Reserved_2
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 1
- SSIE
- Supervisor-level software interrupt enable
Expand All @@ -235,7 +250,7 @@ The ``sie`` is the register containing supervisor interrupt enable bits.
- USIE
-
- read-write,WARL
- User\-level software interrupts are disabled when the USIE bit in the sie register is clear
- User\-level software interrupts are disabled when the USIE bit in the sie register is clear\.``Legal Values:``0\.
Supervisor Trap Vector Base Address Register
--------------------------
Expand Down Expand Up @@ -511,6 +526,11 @@ The ``sip`` register contains information on pending interrupts.
- **displayName**
- **RIGHT**
- **Description**
* - 14:10
- Reserved_10
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 9
- SEIP
- Supervisor-level external interrupt pending
Expand All @@ -520,7 +540,12 @@ The ``sip`` register contains information on pending interrupts.
- UEIP
-
- read-write,WARL
- UEIP may be written by S\-mode software to indicate to U\-mode that an external interrupt is pending\.
- UEIP may be written by S\-mode software to indicate to U\-mode that an external interrupt is pending\.``Legal Values:``0\.
* - 7:6
- Reserved_6
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 5
- STIP
- Supervisor-level timer interrupt pending
Expand All @@ -530,7 +555,12 @@ The ``sip`` register contains information on pending interrupts.
- UTIP
-
- read-write,WARL
- A user\-level timer interrupt is pending if the UTIP bit in the sip register is set
- A user\-level timer interrupt is pending if the UTIP bit in the sip register is set\.``Legal Values:``0\.
* - 3:2
- Reserved_2
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 1
- SSIP
- Supervisor-level software interrupt pending
Expand All @@ -540,7 +570,7 @@ The ``sip`` register contains information on pending interrupts.
- USIP
-
- read-write,WARL
- A user\-level software interrupt is triggered on the current hart by riting 1 to its user software interrupt\-pending \(USIP\) bit
- A user\-level software interrupt is triggered on the current hart by riting 1 to its user software interrupt\-pending \(USIP\) bit\.``Legal Values:``0\.
Supervisor Address Translation and Protection Register
--------------------------
Expand Down Expand Up @@ -794,11 +824,21 @@ This register contains machine interrupt enable bits.
- **displayName**
- **RIGHT**
- **Description**
* - 15:12
- Reserved_12
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 11
- MEIE
- M-mode external interrupt enable
- read-write,WARL
- Enables machine mode external interrupts\.
* - 10
- Reserved_10
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 9
- SEIE
- S-mode external interrupt enable
Expand All @@ -808,12 +848,17 @@ This register contains machine interrupt enable bits.
- UEIE
-
- read-write,WARL
- enables U\-mode external interrupts
- enables U\-mode external interrupts\.``Legal Values:``0\.
* - 7
- MTIE
- M-mode timer interrupt enable
- read-write,WARL
- Enables machine mode timer interrupts\.
* - 6
- Reserved_6
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 5
- STIE
- S-mode timer interrupt enable
Expand All @@ -823,12 +868,17 @@ This register contains machine interrupt enable bits.
- UTIE
-
- read-write,WARL
- timer interrupt\-enable bit for U\-mode
- timer interrupt\-enable bit for U\-mode\.``Legal Values:``0\.
* - 3
- MSIE
- M-mode software interrupt enable
- read-write
- Enables machine mode software interrupts\.
* - 2
- Reserved_2
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 1
- SSIE
- S-mode software interrupt enable
Expand All @@ -838,7 +888,7 @@ This register contains machine interrupt enable bits.
- USIE
-
- read-write,WARL
- enable U\-mode software interrrupts
- enable U\-mode software interrrupts\.``Legal Values:``0\.
Machine Trap Vector Register
--------------------------
Expand Down Expand Up @@ -1137,11 +1187,21 @@ This register contains machine interrupt pending bits.
- **displayName**
- **RIGHT**
- **Description**
* - 15:12
- Reserved_12
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 11
- MEIP
- M-mode external interrupt pending
- read-only
- The interrupt\-pending bit for machine\-level external interrupts\.
* - 10
- Reserved_10
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 9
- SEIP
- S-mode external interrupt pending
Expand All @@ -1151,12 +1211,17 @@ This register contains machine interrupt pending bits.
- UEIP
-
- read-write
- enables external interrupts
- enables external interrupts\.``Legal Values:``0\.
* - 7
- MTIP
- M-mode timer interrupt pending
- read-only
- The interrupt\-pending bit for machine\-level timer interrupts\.
* - 6
- Reserved_6
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 5
- STIP
- S-mode timer interrupt pending
Expand All @@ -1166,12 +1231,17 @@ This register contains machine interrupt pending bits.
- UTIP
-
- read-write
- Correspond to timer interrupt\-pending bits for user interrupt
- Correspond to timer interrupt\-pending bits for user interrupt\.``Legal Values:``0\.
* - 3
- MSIP
- M-mode software interrupt pending
- read-only
- The interrupt\-pending bit for machine\-level software interrupts\.
* - 2
- Reserved_2
- Reserved
- read-write,WARL
- Reserved\.``Legal Values:``0\.
* - 1
- SSIP
- S-mode software interrupt pending
Expand All @@ -1181,7 +1251,7 @@ This register contains machine interrupt pending bits.
- USIP
-
- read-write
- A hart to directly write its own USIP bits when running in the appropriate mode
- A hart to directly write its own USIP bits when running in the appropriate mode\.``Legal Values:``0\.
Physical Memory Protection Config 0 Register
--------------------------
Expand Down
Loading

0 comments on commit 32020a7

Please sign in to comment.