Visible to Intel only — GUID: hlw1740979155284
Ixiasoft
3.3.6.1.1. Machine Status Register (mstatus)
3.3.6.1.2. Machine Trap-Vector Base-Address Register (mtvec)
3.3.6.1.3. Machine Interrupt Register (mip and mie)
3.3.6.1.4. Machine Exception Program Counter Register (mepc)
3.3.6.1.5. Machine Cause Register (mcause)
3.3.6.1.6. Machine Trap Value Register (mtval)
4.3.1. General-Purpose Register File
4.3.2. Shadow Register
4.3.3. Arithmetic Logic Unit
4.3.4. Multipy and Divide Units
4.3.5. Floating-Point Unit
4.3.6. Custom Instruction
4.3.7. Instruction Cycles
4.3.8. Reset and Debug Signals
4.3.9. Control and Status Registers
4.3.10. Trap Controller (CLINT)
4.3.11. Trap Controller (CLIC)
4.3.12. Memory and I/O Organization
4.3.13. RISC-V based Debug Module
4.3.14. Error Correction Code (ECC)
4.3.15. Branch Prediction
4.3.16. Lockstep Module
4.3.10.1.1. Machine Status Register (mstatus)
4.3.10.1.2. Machine Trap-Vector Base-Address Register (mtvec)
4.3.10.1.3. Machine Interrupt Register (mip and mie)
4.3.10.1.4. Machine Exception Program Counter Register (mepc)
4.3.10.1.5. Machine Cause Register (mcause)
4.3.10.1.6. Machine Trap Value Register (mtval)
4.3.10.1.7. Machine Second Trap Value Register (mtval2)
4.3.11.1.3.1. Machine Trap-handler Vector Table base address Register (mtvt)
4.3.11.1.3.2. Machine Next Interrupt Handler Address and Interrupt Enable Register (mnxti)
4.3.11.1.3.3. Machine Interrupt Status Register (mintstatus)
4.3.11.1.3.4. Machine Interrupt-Level Threshold Register (mintthresh)
4.3.11.1.3.5. Machine Scratch Swap for Interrupt-Level Register (mscratchcswl)
Visible to Intel only — GUID: hlw1740979155284
Ixiasoft
4.4.3. Control and Status Registers (CSR) Mapping (CLIC)
Control and status registers report the status and change the behavior of the processor. Since the processor core only supports M-mode and D-mode, Nios® V/g processor implements the CSRs supported by these two modes.
Number | Privilege | Name | Description |
---|---|---|---|
Floating-Point CSRs | |||
0x001 | MRW | fflags | Floating-Point Accrued Exceptions. Refer to Floating-Point CSR Register Fields table. |
0x002 | MRW | frm | Floating-Point Dynamic Rounding Mode. Refer to Floating-Point CSR Register Fields table. |
0x003 | MRW | fcsr | Floating-Point Control and Status Rtegister (frm and fflags). Refer to Floating-Point CSR Register Fieldsable. |
Machine Trap Setup | |||
0x300 | MRW | mstatus | Machine status register. Refer to Machine Status Register Fields table. |
0x301 | MRW | misa | ISA and extensions. Refer to Machine ISA Register Fields table. |
0x304 | MRW | mie | Machine interrupt-enable register (Inactive in CLIC mode). Refer to Machine Interrupt-enable Register table. |
0x305 | MRW | mtvec | Machine trap-handler base address. Refer to Machine Trap-Handler Base Address Register Fields (For CLIC mode)table. |
0x307 | MRW | mtvt | Machine trap-handler vector table base address. Refer to Machine Trap-Handler Vector Table Base Address Register Fields table. |
Machine Trap Handling | |||
0x340 | MRW | mscratch | Machine scratch register for trap handlers. Refer to Machine Scratch Register for Trap Handler Register Fields table. |
0x341 | MRW | mepc | Machine exception program counter. Refer to Machine Exception Program Counter Register Fields table. |
0x342 | MRW | mcause | Machine trap cause. Refer to Machine Trap Cause Register Fields (For CLIC mode) table. |
0x343 | MRW | mtval | Machine bad address or instruction. Refer to Machine Trap Value Register Fields table. |
0x344 | MRW | mip | Machine interrupt-pending register (Inactive in CLIC mode). |
0x345 | MRW | mnxti | Machine interrupt handler address and enable modifier. Refer to Machine Next Interrupt Handler Address and Interrupt Enable Register Field table. |
0x347 | MRW | mintthresh | Machine interrupt-level threshold. Refer to Machine Interrupt-Level Register Fields table. |
0x349 | MRW | mscratchcswl | Machine conditional scratch swap on level change. Refer to Machine Scratch Swap for Interrupt-Level Change Register Fields table. |
0xFB1 | MRW | mintstatus | Machine current interrupt levels. Refer to Machine Interrupt Status Register Fields table. |
Indirect Access CSRs | |||
0x350 | MRW | miselect | Machine Indirect Select. Refer to Machine Indirect Select Register Fields table. |
0x351 | MRW | mireg | Machine Indirect Alias. Refer to Machine Indirect Alias Register Fields table. |
0x352 | MRW | mireg2 | Machine Indirect Alias 2. Refer to Machine Indirect Alias 2 Register Fields table. |
Trigger Registers | |||
0x7A0 | MRW | tselect | Trigger select. Refer to Trigger Select Register Fields table. |
0x7A1 | MRW | tdata1 (mcontrol) |
Trigger data 1 (Match Control). Refer to Trigger Data 1 (Match Control) Register Fields table. |
0x7A2 | MRW | tdata2 | Trigger data 2. Refer to Trigger Data 2 Register Fields table. |
0x7A4 | MRO | tinfo | Trigger info. Refer to Trigger Info Register Fields table. |
Debug Mode Registers | |||
0x7B0 | DRW | dcsr | Debug control and status register. Refer to Debug Control and Status Register Fields table. |
0x7B1 | DRW | dpc | Debug Program Counter. Refer to Debug Program Counter Register Fields table. |
Shadow Registers CSRs | |||
0x7C4 | MRW | msrfstatus | Shadow register file status CSR. Refer to Shadow register file status CSR Fields table. |
0x7C5 | MRW | mrdpsrf | Read previous shadow register CSR. Refer to Read previous shadow register CSR Fields table. |
0x7C6 | MRW | mwrpsrf | Write previous shadow register CSR. Refer to Write previous shadow register CSR Fields table. |
Machine Information Register | |||
0xF11 | MRO | mvendorid | Vendor ID. Refer to Vendor ID Register Fields table. |
0xF12 | MRO | marchid | Architecture ID. Refer to Architecture ID Register Fields table. |
0xF13 | MRO | mimpid | Implementation ID. Refer to Implementation ID Register Fields table. |
0xF14 | MRO | mhartid | Hardware thread ID. Refer to Hardware Thread ID Register Fields table . |
Memory-mapped Address Number | Privilege | Name | Description |
---|---|---|---|
ALT_CPU_MTIME_OFFSET (Refer to the system.h.) |
MRW | mtime | Machine timer. Refer to Machine Timer Register Fields table. |
ALT_CPU_MTIME_OFFSET (Refer to the system.h.) |
MRW | mtimecmp | Machine timer compare register. Refer to Machine Timer Compare Register Fields table. |
ALT_CPU_MTIME_OFFSET + 0x10 (Refer to the system.h.) |
MRW | msip | Custom memory-mapped register to assert software interrupt into Nios® V processor. Refer to Machine Software Interrupt Register Fields table. |
Privilege | Name | Description |
---|---|---|
MRW | clicintip | CLIC interrupt pending. Refer to CLIC Interrupt Pending Slice Fields table. |
MRW | clicintie | CLIC interrupt enable. Refer to CLIC Interrupt Enable Slice Fields table. |
MRW | clicintattr | CLIC interrupt attribute. Refer to CLIC Interrupt Attribute Slice Fields table. |
MRW | clicintctl | CLIC interrupt input control. Refer to CLIC Interrupt Input Control Slice Fields table. |