mirror of
https://github.com/stnolting/neorv32.git
synced 2025-04-24 06:07:52 -04:00
[sw,rtl/cpu] added mcause trap id code for 'hardware reset': 0x80000000
This commit is contained in:
parent
4b043d71f3
commit
5fae214e85
2 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,7 @@ package neorv32_package is
|
|||
-- Architecture Constants -----------------------------------------------------------------
|
||||
-- -------------------------------------------------------------------------------------------
|
||||
constant data_width_c : natural := 32; -- data width - do not change!
|
||||
constant hw_version_c : std_ulogic_vector(31 downto 0) := x"01040805"; -- no touchy!
|
||||
constant hw_version_c : std_ulogic_vector(31 downto 0) := x"01040806"; -- no touchy!
|
||||
constant pmp_max_r_c : natural := 8; -- max PMP regions - FIXED!
|
||||
constant archid_c : natural := 19; -- official NEORV32 architecture ID - hands off!
|
||||
constant rf_r0_is_reg_c : boolean := true; -- reg_file.r0 is a physical register that has to be initialized to zero by the HW
|
||||
|
@ -440,6 +440,7 @@ package neorv32_package is
|
|||
constant trap_mti_c : std_ulogic_vector(5 downto 0) := "1" & "00111"; -- 1.7: machine timer interrupt
|
||||
constant trap_mei_c : std_ulogic_vector(5 downto 0) := "1" & "01011"; -- 1.11: machine external interrupt
|
||||
-- NEORV32-specific (custom) interrupts --
|
||||
constant trap_reset_c : std_ulogic_vector(5 downto 0) := "1" & "10000"; -- 1.0: system reset
|
||||
constant trap_firq0_c : std_ulogic_vector(5 downto 0) := "1" & "10000"; -- 1.16: fast interrupt 0
|
||||
constant trap_firq1_c : std_ulogic_vector(5 downto 0) := "1" & "10001"; -- 1.17: fast interrupt 1
|
||||
constant trap_firq2_c : std_ulogic_vector(5 downto 0) := "1" & "10010"; -- 1.18: fast interrupt 2
|
||||
|
|
|
@ -180,6 +180,7 @@ enum NEORV32_EXCEPTION_CODES_enum {
|
|||
TRAP_CODE_S_MISALIGNED = 0x00000006, /**< 0.6: Store address misaligned */
|
||||
TRAP_CODE_S_ACCESS = 0x00000007, /**< 0.7: Store (bus) access fault */
|
||||
TRAP_CODE_MENV_CALL = 0x0000000b, /**< 0.11: Environment call from machine mode (ECALL instruction) */
|
||||
TRAP_CODE_RESET = 0x80000000, /**< 1.0: Hardware reset */
|
||||
TRAP_CODE_MSI = 0x80000003, /**< 1.3: Machine software interrupt */
|
||||
TRAP_CODE_MTI = 0x80000007, /**< 1.7: Machine timer interrupt */
|
||||
TRAP_CODE_MEI = 0x8000000b, /**< 1.11: Machine external interrupt */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue