Altera SoCAL  16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Data Structures Variables Typedefs Groups
Register : SYSTEM Module Reset Register - sysmodrst

Description

The SYSMODRST register is used by software to trigger module resets (individual module reset signals). Software explicitly asserts and de-asserts module reset signals by writing bits in the appropriate *MODRST register. It is up to software to ensure module reset signals are asserted for the appropriate length of time and are de-asserted in the correct order. It is also up to software to not assert a module reset signal that would prevent software from de-asserting the module reset signal. For example, software should not assert the module reset to the CPU executing the software.

Software writes a bit to 1 to assert the module reset signal and to 0 to de- assert the module reset signal.

All fields are only reset by a cold reset

Register Layout

Bits Access Reset Description
[0] RW 0x0 Boot ROM
[1] RW 0x0 On-chip RAM
[2] ??? 0x0 UNDEFINED
[3] RW 0x0 FPGA Manager
[4] RW 0x0 HPS to FPGA Core (Cold or Warm)
[5] RW 0x0 System/Debug
[6] RW 0x0 On-chip RAM ECC OCP Diagnostic
[31:7] ??? 0x0 UNDEFINED

Field : Boot ROM - rom

Resets Boot ROM

Field Access Macros:

#define ALT_RSTMGR_SYSMODRST_ROM_LSB   0
 
#define ALT_RSTMGR_SYSMODRST_ROM_MSB   0
 
#define ALT_RSTMGR_SYSMODRST_ROM_WIDTH   1
 
#define ALT_RSTMGR_SYSMODRST_ROM_SET_MSK   0x00000001
 
#define ALT_RSTMGR_SYSMODRST_ROM_CLR_MSK   0xfffffffe
 
#define ALT_RSTMGR_SYSMODRST_ROM_RESET   0x0
 
#define ALT_RSTMGR_SYSMODRST_ROM_GET(value)   (((value) & 0x00000001) >> 0)
 
#define ALT_RSTMGR_SYSMODRST_ROM_SET(value)   (((value) << 0) & 0x00000001)
 

Field : On-chip RAM - ocram

Resets On-chip RAM

Field Access Macros:

#define ALT_RSTMGR_SYSMODRST_OCRAM_LSB   1
 
#define ALT_RSTMGR_SYSMODRST_OCRAM_MSB   1
 
#define ALT_RSTMGR_SYSMODRST_OCRAM_WIDTH   1
 
#define ALT_RSTMGR_SYSMODRST_OCRAM_SET_MSK   0x00000002
 
#define ALT_RSTMGR_SYSMODRST_OCRAM_CLR_MSK   0xfffffffd
 
#define ALT_RSTMGR_SYSMODRST_OCRAM_RESET   0x0
 
#define ALT_RSTMGR_SYSMODRST_OCRAM_GET(value)   (((value) & 0x00000002) >> 1)
 
#define ALT_RSTMGR_SYSMODRST_OCRAM_SET(value)   (((value) << 1) & 0x00000002)
 

Field : FPGA Manager - fpgamgr

Resets FPGA Manager

Field Access Macros:

#define ALT_RSTMGR_SYSMODRST_FPGAMGR_LSB   3
 
#define ALT_RSTMGR_SYSMODRST_FPGAMGR_MSB   3
 
#define ALT_RSTMGR_SYSMODRST_FPGAMGR_WIDTH   1
 
#define ALT_RSTMGR_SYSMODRST_FPGAMGR_SET_MSK   0x00000008
 
#define ALT_RSTMGR_SYSMODRST_FPGAMGR_CLR_MSK   0xfffffff7
 
#define ALT_RSTMGR_SYSMODRST_FPGAMGR_RESET   0x0
 
#define ALT_RSTMGR_SYSMODRST_FPGAMGR_GET(value)   (((value) & 0x00000008) >> 3)
 
#define ALT_RSTMGR_SYSMODRST_FPGAMGR_SET(value)   (((value) << 3) & 0x00000008)
 

Field : HPS to FPGA Core (Cold or Warm) - s2f

Resets logic in FPGA core that doesn't differentiate between HPS cold and warm resets

Field Access Macros:

#define ALT_RSTMGR_SYSMODRST_S2F_LSB   4
 
#define ALT_RSTMGR_SYSMODRST_S2F_MSB   4
 
#define ALT_RSTMGR_SYSMODRST_S2F_WIDTH   1
 
#define ALT_RSTMGR_SYSMODRST_S2F_SET_MSK   0x00000010
 
#define ALT_RSTMGR_SYSMODRST_S2F_CLR_MSK   0xffffffef
 
#define ALT_RSTMGR_SYSMODRST_S2F_RESET   0x0
 
#define ALT_RSTMGR_SYSMODRST_S2F_GET(value)   (((value) & 0x00000010) >> 4)
 
#define ALT_RSTMGR_SYSMODRST_S2F_SET(value)   (((value) << 4) & 0x00000010)
 

Field : System/Debug - sysdbg

Resets logic that spans the system and debug domains.

Field Access Macros:

#define ALT_RSTMGR_SYSMODRST_SYSDBG_LSB   5
 
#define ALT_RSTMGR_SYSMODRST_SYSDBG_MSB   5
 
#define ALT_RSTMGR_SYSMODRST_SYSDBG_WIDTH   1
 
#define ALT_RSTMGR_SYSMODRST_SYSDBG_SET_MSK   0x00000020
 
#define ALT_RSTMGR_SYSMODRST_SYSDBG_CLR_MSK   0xffffffdf
 
#define ALT_RSTMGR_SYSMODRST_SYSDBG_RESET   0x0
 
#define ALT_RSTMGR_SYSMODRST_SYSDBG_GET(value)   (((value) & 0x00000020) >> 5)
 
#define ALT_RSTMGR_SYSMODRST_SYSDBG_SET(value)   (((value) << 5) & 0x00000020)
 

Field : On-chip RAM ECC OCP Diagnostic - ocramocp

Resets On-chip RAM ECC OCP Diagnostic module

Field Access Macros:

#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_LSB   6
 
#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_MSB   6
 
#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_WIDTH   1
 
#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_SET_MSK   0x00000040
 
#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_CLR_MSK   0xffffffbf
 
#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_RESET   0x0
 
#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_GET(value)   (((value) & 0x00000040) >> 6)
 
#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_SET(value)   (((value) << 6) & 0x00000040)
 

Data Structures

struct  ALT_RSTMGR_SYSMODRST_s
 

Macros

#define ALT_RSTMGR_SYSMODRST_RESET   0x00000000
 
#define ALT_RSTMGR_SYSMODRST_OFST   0x30
 

Typedefs

typedef struct
ALT_RSTMGR_SYSMODRST_s 
ALT_RSTMGR_SYSMODRST_t
 

Data Structure Documentation

struct ALT_RSTMGR_SYSMODRST_s

WARNING: The C register and register group struct declarations are provided for convenience and illustrative purposes. They should, however, be used with caution as the C language standard provides no guarantees about the alignment or atomicity of device memory accesses. The recommended practice for writing hardware drivers is to use the SoCAL access macros and alt_read_word() and alt_write_word() functions.

The struct declaration for register ALT_RSTMGR_SYSMODRST.

Data Fields
uint32_t rom: 1 Boot ROM
uint32_t ocram: 1 On-chip RAM
uint32_t __pad0__: 1 UNDEFINED
uint32_t fpgamgr: 1 FPGA Manager
uint32_t s2f: 1 HPS to FPGA Core (Cold or Warm)
uint32_t sysdbg: 1 System/Debug
uint32_t ocramocp: 1 On-chip RAM ECC OCP Diagnostic
uint32_t __pad1__: 25 UNDEFINED

Macro Definitions

#define ALT_RSTMGR_SYSMODRST_ROM_LSB   0

The Least Significant Bit (LSB) position of the ALT_RSTMGR_SYSMODRST_ROM register field.

#define ALT_RSTMGR_SYSMODRST_ROM_MSB   0

The Most Significant Bit (MSB) position of the ALT_RSTMGR_SYSMODRST_ROM register field.

#define ALT_RSTMGR_SYSMODRST_ROM_WIDTH   1

The width in bits of the ALT_RSTMGR_SYSMODRST_ROM register field.

#define ALT_RSTMGR_SYSMODRST_ROM_SET_MSK   0x00000001

The mask used to set the ALT_RSTMGR_SYSMODRST_ROM register field value.

#define ALT_RSTMGR_SYSMODRST_ROM_CLR_MSK   0xfffffffe

The mask used to clear the ALT_RSTMGR_SYSMODRST_ROM register field value.

#define ALT_RSTMGR_SYSMODRST_ROM_RESET   0x0

The reset value of the ALT_RSTMGR_SYSMODRST_ROM register field.

#define ALT_RSTMGR_SYSMODRST_ROM_GET (   value)    (((value) & 0x00000001) >> 0)

Extracts the ALT_RSTMGR_SYSMODRST_ROM field value from a register.

#define ALT_RSTMGR_SYSMODRST_ROM_SET (   value)    (((value) << 0) & 0x00000001)

Produces a ALT_RSTMGR_SYSMODRST_ROM register field value suitable for setting the register.

#define ALT_RSTMGR_SYSMODRST_OCRAM_LSB   1

The Least Significant Bit (LSB) position of the ALT_RSTMGR_SYSMODRST_OCRAM register field.

#define ALT_RSTMGR_SYSMODRST_OCRAM_MSB   1

The Most Significant Bit (MSB) position of the ALT_RSTMGR_SYSMODRST_OCRAM register field.

#define ALT_RSTMGR_SYSMODRST_OCRAM_WIDTH   1

The width in bits of the ALT_RSTMGR_SYSMODRST_OCRAM register field.

#define ALT_RSTMGR_SYSMODRST_OCRAM_SET_MSK   0x00000002

The mask used to set the ALT_RSTMGR_SYSMODRST_OCRAM register field value.

#define ALT_RSTMGR_SYSMODRST_OCRAM_CLR_MSK   0xfffffffd

The mask used to clear the ALT_RSTMGR_SYSMODRST_OCRAM register field value.

#define ALT_RSTMGR_SYSMODRST_OCRAM_RESET   0x0

The reset value of the ALT_RSTMGR_SYSMODRST_OCRAM register field.

#define ALT_RSTMGR_SYSMODRST_OCRAM_GET (   value)    (((value) & 0x00000002) >> 1)

Extracts the ALT_RSTMGR_SYSMODRST_OCRAM field value from a register.

#define ALT_RSTMGR_SYSMODRST_OCRAM_SET (   value)    (((value) << 1) & 0x00000002)

Produces a ALT_RSTMGR_SYSMODRST_OCRAM register field value suitable for setting the register.

#define ALT_RSTMGR_SYSMODRST_FPGAMGR_LSB   3

The Least Significant Bit (LSB) position of the ALT_RSTMGR_SYSMODRST_FPGAMGR register field.

#define ALT_RSTMGR_SYSMODRST_FPGAMGR_MSB   3

The Most Significant Bit (MSB) position of the ALT_RSTMGR_SYSMODRST_FPGAMGR register field.

#define ALT_RSTMGR_SYSMODRST_FPGAMGR_WIDTH   1

The width in bits of the ALT_RSTMGR_SYSMODRST_FPGAMGR register field.

#define ALT_RSTMGR_SYSMODRST_FPGAMGR_SET_MSK   0x00000008

The mask used to set the ALT_RSTMGR_SYSMODRST_FPGAMGR register field value.

#define ALT_RSTMGR_SYSMODRST_FPGAMGR_CLR_MSK   0xfffffff7

The mask used to clear the ALT_RSTMGR_SYSMODRST_FPGAMGR register field value.

#define ALT_RSTMGR_SYSMODRST_FPGAMGR_RESET   0x0

The reset value of the ALT_RSTMGR_SYSMODRST_FPGAMGR register field.

#define ALT_RSTMGR_SYSMODRST_FPGAMGR_GET (   value)    (((value) & 0x00000008) >> 3)

Extracts the ALT_RSTMGR_SYSMODRST_FPGAMGR field value from a register.

#define ALT_RSTMGR_SYSMODRST_FPGAMGR_SET (   value)    (((value) << 3) & 0x00000008)

Produces a ALT_RSTMGR_SYSMODRST_FPGAMGR register field value suitable for setting the register.

#define ALT_RSTMGR_SYSMODRST_S2F_LSB   4

The Least Significant Bit (LSB) position of the ALT_RSTMGR_SYSMODRST_S2F register field.

#define ALT_RSTMGR_SYSMODRST_S2F_MSB   4

The Most Significant Bit (MSB) position of the ALT_RSTMGR_SYSMODRST_S2F register field.

#define ALT_RSTMGR_SYSMODRST_S2F_WIDTH   1

The width in bits of the ALT_RSTMGR_SYSMODRST_S2F register field.

#define ALT_RSTMGR_SYSMODRST_S2F_SET_MSK   0x00000010

The mask used to set the ALT_RSTMGR_SYSMODRST_S2F register field value.

#define ALT_RSTMGR_SYSMODRST_S2F_CLR_MSK   0xffffffef

The mask used to clear the ALT_RSTMGR_SYSMODRST_S2F register field value.

#define ALT_RSTMGR_SYSMODRST_S2F_RESET   0x0

The reset value of the ALT_RSTMGR_SYSMODRST_S2F register field.

#define ALT_RSTMGR_SYSMODRST_S2F_GET (   value)    (((value) & 0x00000010) >> 4)

Extracts the ALT_RSTMGR_SYSMODRST_S2F field value from a register.

#define ALT_RSTMGR_SYSMODRST_S2F_SET (   value)    (((value) << 4) & 0x00000010)

Produces a ALT_RSTMGR_SYSMODRST_S2F register field value suitable for setting the register.

#define ALT_RSTMGR_SYSMODRST_SYSDBG_LSB   5

The Least Significant Bit (LSB) position of the ALT_RSTMGR_SYSMODRST_SYSDBG register field.

#define ALT_RSTMGR_SYSMODRST_SYSDBG_MSB   5

The Most Significant Bit (MSB) position of the ALT_RSTMGR_SYSMODRST_SYSDBG register field.

#define ALT_RSTMGR_SYSMODRST_SYSDBG_WIDTH   1

The width in bits of the ALT_RSTMGR_SYSMODRST_SYSDBG register field.

#define ALT_RSTMGR_SYSMODRST_SYSDBG_SET_MSK   0x00000020

The mask used to set the ALT_RSTMGR_SYSMODRST_SYSDBG register field value.

#define ALT_RSTMGR_SYSMODRST_SYSDBG_CLR_MSK   0xffffffdf

The mask used to clear the ALT_RSTMGR_SYSMODRST_SYSDBG register field value.

#define ALT_RSTMGR_SYSMODRST_SYSDBG_RESET   0x0

The reset value of the ALT_RSTMGR_SYSMODRST_SYSDBG register field.

#define ALT_RSTMGR_SYSMODRST_SYSDBG_GET (   value)    (((value) & 0x00000020) >> 5)

Extracts the ALT_RSTMGR_SYSMODRST_SYSDBG field value from a register.

#define ALT_RSTMGR_SYSMODRST_SYSDBG_SET (   value)    (((value) << 5) & 0x00000020)

Produces a ALT_RSTMGR_SYSMODRST_SYSDBG register field value suitable for setting the register.

#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_LSB   6

The Least Significant Bit (LSB) position of the ALT_RSTMGR_SYSMODRST_OCRAMOCP register field.

#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_MSB   6

The Most Significant Bit (MSB) position of the ALT_RSTMGR_SYSMODRST_OCRAMOCP register field.

#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_WIDTH   1

The width in bits of the ALT_RSTMGR_SYSMODRST_OCRAMOCP register field.

#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_SET_MSK   0x00000040

The mask used to set the ALT_RSTMGR_SYSMODRST_OCRAMOCP register field value.

#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_CLR_MSK   0xffffffbf

The mask used to clear the ALT_RSTMGR_SYSMODRST_OCRAMOCP register field value.

#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_RESET   0x0

The reset value of the ALT_RSTMGR_SYSMODRST_OCRAMOCP register field.

#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_GET (   value)    (((value) & 0x00000040) >> 6)

Extracts the ALT_RSTMGR_SYSMODRST_OCRAMOCP field value from a register.

#define ALT_RSTMGR_SYSMODRST_OCRAMOCP_SET (   value)    (((value) << 6) & 0x00000040)

Produces a ALT_RSTMGR_SYSMODRST_OCRAMOCP register field value suitable for setting the register.

#define ALT_RSTMGR_SYSMODRST_RESET   0x00000000

The reset value of the ALT_RSTMGR_SYSMODRST register.

#define ALT_RSTMGR_SYSMODRST_OFST   0x30

The byte offset of the ALT_RSTMGR_SYSMODRST register from the beginning of the component.

Typedef Documentation

The typedef declaration for register ALT_RSTMGR_SYSMODRST.