![]() |
Altera SoCAL
16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
|
Length of region in On-chip RAM for CRC validation.
Register Layout
Bits | Access | Reset | Description |
---|---|---|---|
[31:0] | RW | 0xe763552a | Expected CRC |
Field : Expected CRC - expected | |
Contains the expected CRC of the region in the On-chip RAM.The Boot ROM code calculates the actual CRC for all bytes in the region specified by the DATA START an LENGTH registers. The contents of the EXECUTION register (after it has been read and modified by the Boot ROM code) is also included in the CRC calculation. The contents of the EXECUTION register is added to the CRC accumulator a byte at a time starting with the least significant byte. If the actual CRC doesn't match the expected CRC value in this register, the Boot ROM won't boot from the On-chip RAM. The CRC is a standard CRC32 with the polynomial: x^32 + x^26 + x^23 + x^22 + x^16 + x^12 + x^11 + x^10 + x^8 + x^7 + x^5 + x^4 + x^2 + x + 1 There is no reflection of the bits and the initial value of the remainder is 0xFFFFFFFF and the final value is exclusive ORed with 0xFFFFFFFF. Field Access Macros: | |
#define | ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_LSB 0 |
#define | ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_MSB 31 |
#define | ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_WIDTH 32 |
#define | ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_SET_MSK 0xffffffff |
#define | ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_CLR_MSK 0x00000000 |
#define | ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_RESET 0xe763552a |
#define | ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_GET(value) (((value) & 0xffffffff) >> 0) |
#define | ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_SET(value) (((value) << 0) & 0xffffffff) |
Data Structures | |
struct | ALT_SYSMGR_ROMCODE_WARMRAM_CRC_s |
Macros | |
#define | ALT_SYSMGR_ROMCODE_WARMRAM_CRC_OFST 0x10 |
#define | ALT_SYSMGR_ROMCODE_WARMRAM_CRC_ADDR(base) ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_SYSMGR_ROMCODE_WARMRAM_CRC_OFST)) |
Typedefs | |
typedef struct ALT_SYSMGR_ROMCODE_WARMRAM_CRC_s | ALT_SYSMGR_ROMCODE_WARMRAM_CRC_t |
struct ALT_SYSMGR_ROMCODE_WARMRAM_CRC_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_SYSMGR_ROMCODE_WARMRAM_CRC.
Data Fields | ||
---|---|---|
uint32_t | expected: 32 | Expected CRC |
#define ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_LSB 0 |
The Least Significant Bit (LSB) position of the ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED register field.
#define ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_MSB 31 |
The Most Significant Bit (MSB) position of the ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED register field.
#define ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_WIDTH 32 |
The width in bits of the ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED register field.
#define ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_SET_MSK 0xffffffff |
The mask used to set the ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED register field value.
#define ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_CLR_MSK 0x00000000 |
The mask used to clear the ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED register field value.
#define ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_RESET 0xe763552a |
The reset value of the ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED register field.
#define ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_GET | ( | value | ) | (((value) & 0xffffffff) >> 0) |
Extracts the ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED field value from a register.
#define ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED_SET | ( | value | ) | (((value) << 0) & 0xffffffff) |
Produces a ALT_SYSMGR_ROMCODE_WARMRAM_CRC_EXPECTED register field value suitable for setting the register.
#define ALT_SYSMGR_ROMCODE_WARMRAM_CRC_OFST 0x10 |
The byte offset of the ALT_SYSMGR_ROMCODE_WARMRAM_CRC register from the beginning of the component.
#define ALT_SYSMGR_ROMCODE_WARMRAM_CRC_ADDR | ( | base | ) | ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_SYSMGR_ROMCODE_WARMRAM_CRC_OFST)) |
The address of the ALT_SYSMGR_ROMCODE_WARMRAM_CRC register.
typedef struct ALT_SYSMGR_ROMCODE_WARMRAM_CRC_s ALT_SYSMGR_ROMCODE_WARMRAM_CRC_t |
The typedef declaration for register ALT_SYSMGR_ROMCODE_WARMRAM_CRC.