![]() |
Altera SoCAL
16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
|
The BRGMODRST 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 reset by a cold reset.All fields are also reset by a warm reset if not masked by the corresponding BRGWARMMASK field.
The reset value of all fields is 1. This holds the corresponding module in reset until software is ready to release the module from reset by writing 0 to its field.
Register Layout
Bits | Access | Reset | Description |
---|---|---|---|
[0] | RW | 0x1 | HPS2FPGA Bridge |
[1] | RW | 0x1 | LWHPS2FPGA Bridge |
[2] | RW | 0x1 | FPGA2HPS Bridge |
[31:3] | ??? | 0x0 | UNDEFINED |
Field : HPS2FPGA Bridge - hps2fpga | |
Resets HPS2FPGA Bridge Field Access Macros: | |
#define | ALT_RSTMGR_BRGMODRST_H2F_LSB 0 |
#define | ALT_RSTMGR_BRGMODRST_H2F_MSB 0 |
#define | ALT_RSTMGR_BRGMODRST_H2F_WIDTH 1 |
#define | ALT_RSTMGR_BRGMODRST_H2F_SET_MSK 0x00000001 |
#define | ALT_RSTMGR_BRGMODRST_H2F_CLR_MSK 0xfffffffe |
#define | ALT_RSTMGR_BRGMODRST_H2F_RESET 0x1 |
#define | ALT_RSTMGR_BRGMODRST_H2F_GET(value) (((value) & 0x00000001) >> 0) |
#define | ALT_RSTMGR_BRGMODRST_H2F_SET(value) (((value) << 0) & 0x00000001) |
Field : LWHPS2FPGA Bridge - lwhps2fpga | |
Resets LWHPS2FPGA Bridge Field Access Macros: | |
#define | ALT_RSTMGR_BRGMODRST_LWH2F_LSB 1 |
#define | ALT_RSTMGR_BRGMODRST_LWH2F_MSB 1 |
#define | ALT_RSTMGR_BRGMODRST_LWH2F_WIDTH 1 |
#define | ALT_RSTMGR_BRGMODRST_LWH2F_SET_MSK 0x00000002 |
#define | ALT_RSTMGR_BRGMODRST_LWH2F_CLR_MSK 0xfffffffd |
#define | ALT_RSTMGR_BRGMODRST_LWH2F_RESET 0x1 |
#define | ALT_RSTMGR_BRGMODRST_LWH2F_GET(value) (((value) & 0x00000002) >> 1) |
#define | ALT_RSTMGR_BRGMODRST_LWH2F_SET(value) (((value) << 1) & 0x00000002) |
Field : FPGA2HPS Bridge - fpga2hps | |
Resets FPGA2HPS Bridge Field Access Macros: | |
#define | ALT_RSTMGR_BRGMODRST_F2H_LSB 2 |
#define | ALT_RSTMGR_BRGMODRST_F2H_MSB 2 |
#define | ALT_RSTMGR_BRGMODRST_F2H_WIDTH 1 |
#define | ALT_RSTMGR_BRGMODRST_F2H_SET_MSK 0x00000004 |
#define | ALT_RSTMGR_BRGMODRST_F2H_CLR_MSK 0xfffffffb |
#define | ALT_RSTMGR_BRGMODRST_F2H_RESET 0x1 |
#define | ALT_RSTMGR_BRGMODRST_F2H_GET(value) (((value) & 0x00000004) >> 2) |
#define | ALT_RSTMGR_BRGMODRST_F2H_SET(value) (((value) << 2) & 0x00000004) |
Data Structures | |
struct | ALT_RSTMGR_BRGMODRST_s |
Macros | |
#define | ALT_RSTMGR_BRGMODRST_OFST 0x1c |
Typedefs | |
typedef struct ALT_RSTMGR_BRGMODRST_s | ALT_RSTMGR_BRGMODRST_t |
struct ALT_RSTMGR_BRGMODRST_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_BRGMODRST.
Data Fields | ||
---|---|---|
uint32_t | hps2fpga: 1 | HPS2FPGA Bridge |
uint32_t | lwhps2fpga: 1 | LWHPS2FPGA Bridge |
uint32_t | fpga2hps: 1 | FPGA2HPS Bridge |
uint32_t | __pad0__: 29 | UNDEFINED |
#define ALT_RSTMGR_BRGMODRST_H2F_LSB 0 |
The Least Significant Bit (LSB) position of the ALT_RSTMGR_BRGMODRST_H2F register field.
#define ALT_RSTMGR_BRGMODRST_H2F_MSB 0 |
The Most Significant Bit (MSB) position of the ALT_RSTMGR_BRGMODRST_H2F register field.
#define ALT_RSTMGR_BRGMODRST_H2F_WIDTH 1 |
The width in bits of the ALT_RSTMGR_BRGMODRST_H2F register field.
#define ALT_RSTMGR_BRGMODRST_H2F_SET_MSK 0x00000001 |
The mask used to set the ALT_RSTMGR_BRGMODRST_H2F register field value.
#define ALT_RSTMGR_BRGMODRST_H2F_CLR_MSK 0xfffffffe |
The mask used to clear the ALT_RSTMGR_BRGMODRST_H2F register field value.
#define ALT_RSTMGR_BRGMODRST_H2F_RESET 0x1 |
The reset value of the ALT_RSTMGR_BRGMODRST_H2F register field.
#define ALT_RSTMGR_BRGMODRST_H2F_GET | ( | value | ) | (((value) & 0x00000001) >> 0) |
Extracts the ALT_RSTMGR_BRGMODRST_H2F field value from a register.
#define ALT_RSTMGR_BRGMODRST_H2F_SET | ( | value | ) | (((value) << 0) & 0x00000001) |
Produces a ALT_RSTMGR_BRGMODRST_H2F register field value suitable for setting the register.
#define ALT_RSTMGR_BRGMODRST_LWH2F_LSB 1 |
The Least Significant Bit (LSB) position of the ALT_RSTMGR_BRGMODRST_LWH2F register field.
#define ALT_RSTMGR_BRGMODRST_LWH2F_MSB 1 |
The Most Significant Bit (MSB) position of the ALT_RSTMGR_BRGMODRST_LWH2F register field.
#define ALT_RSTMGR_BRGMODRST_LWH2F_WIDTH 1 |
The width in bits of the ALT_RSTMGR_BRGMODRST_LWH2F register field.
#define ALT_RSTMGR_BRGMODRST_LWH2F_SET_MSK 0x00000002 |
The mask used to set the ALT_RSTMGR_BRGMODRST_LWH2F register field value.
#define ALT_RSTMGR_BRGMODRST_LWH2F_CLR_MSK 0xfffffffd |
The mask used to clear the ALT_RSTMGR_BRGMODRST_LWH2F register field value.
#define ALT_RSTMGR_BRGMODRST_LWH2F_RESET 0x1 |
The reset value of the ALT_RSTMGR_BRGMODRST_LWH2F register field.
#define ALT_RSTMGR_BRGMODRST_LWH2F_GET | ( | value | ) | (((value) & 0x00000002) >> 1) |
Extracts the ALT_RSTMGR_BRGMODRST_LWH2F field value from a register.
#define ALT_RSTMGR_BRGMODRST_LWH2F_SET | ( | value | ) | (((value) << 1) & 0x00000002) |
Produces a ALT_RSTMGR_BRGMODRST_LWH2F register field value suitable for setting the register.
#define ALT_RSTMGR_BRGMODRST_F2H_LSB 2 |
The Least Significant Bit (LSB) position of the ALT_RSTMGR_BRGMODRST_F2H register field.
#define ALT_RSTMGR_BRGMODRST_F2H_MSB 2 |
The Most Significant Bit (MSB) position of the ALT_RSTMGR_BRGMODRST_F2H register field.
#define ALT_RSTMGR_BRGMODRST_F2H_WIDTH 1 |
The width in bits of the ALT_RSTMGR_BRGMODRST_F2H register field.
#define ALT_RSTMGR_BRGMODRST_F2H_SET_MSK 0x00000004 |
The mask used to set the ALT_RSTMGR_BRGMODRST_F2H register field value.
#define ALT_RSTMGR_BRGMODRST_F2H_CLR_MSK 0xfffffffb |
The mask used to clear the ALT_RSTMGR_BRGMODRST_F2H register field value.
#define ALT_RSTMGR_BRGMODRST_F2H_RESET 0x1 |
The reset value of the ALT_RSTMGR_BRGMODRST_F2H register field.
#define ALT_RSTMGR_BRGMODRST_F2H_GET | ( | value | ) | (((value) & 0x00000004) >> 2) |
Extracts the ALT_RSTMGR_BRGMODRST_F2H field value from a register.
#define ALT_RSTMGR_BRGMODRST_F2H_SET | ( | value | ) | (((value) << 2) & 0x00000004) |
Produces a ALT_RSTMGR_BRGMODRST_F2H register field value suitable for setting the register.
#define ALT_RSTMGR_BRGMODRST_OFST 0x1c |
The byte offset of the ALT_RSTMGR_BRGMODRST register from the beginning of the component.
typedef struct ALT_RSTMGR_BRGMODRST_s ALT_RSTMGR_BRGMODRST_t |
The typedef declaration for register ALT_RSTMGR_BRGMODRST.