Altera SoCAL  16.0
The Altera SoC Abstraction Layer (SoCAL) API Reference Manual
 All Data Structures Variables Typedefs Groups
Register : Register 460 (Auxiliary Timestamp - Nanoseconds Register) - Auxiliary_Timestamp_Nanoseconds

Description

This register, along with Register 461 (Auxiliary Timestamp Seconds Register), gives the 64-bit timestamp stored as auxiliary snapshot. The two registers together form the read port of a 64-bit wide FIFO with a depth of 16. Multiple snapshots can be stored in this FIFO. The ATSNS bits in the Timestamp Status register indicate the fill-level of this FIFO. The top of the FIFO is removed only when the last byte of Register 461 (Auxiliary Timestamp - Seconds Register) is read. In the little-endian mode, this means when Bits[31:24] are read. In big-endian mode, it corresponds to the reading of Bits[7:0] of Register 461 (Auxiliary Timestamp - Seconds Register).

Register Layout

Bits Access Reset Description
[30:0] R 0x0 ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO
[31] ??? 0x0 UNDEFINED

Field : auxtslo

Contains the lower 32 bits (nano-seconds field) of the auxiliary timestamp.

Field Access Macros:

#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_LSB   0
 
#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_MSB   30
 
#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_WIDTH   31
 
#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_SET_MSK   0x7fffffff
 
#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_CLR_MSK   0x80000000
 
#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_RESET   0x0
 
#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_GET(value)   (((value) & 0x7fffffff) >> 0)
 
#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_SET(value)   (((value) << 0) & 0x7fffffff)
 

Data Structures

struct  ALT_EMAC_GMAC_AUX_TS_NANOSECS_s
 

Macros

#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_OFST   0x730
 
#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_ADDR(base)   ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_EMAC_GMAC_AUX_TS_NANOSECS_OFST))
 

Typedefs

typedef struct
ALT_EMAC_GMAC_AUX_TS_NANOSECS_s 
ALT_EMAC_GMAC_AUX_TS_NANOSECS_t
 

Data Structure Documentation

struct ALT_EMAC_GMAC_AUX_TS_NANOSECS_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_EMAC_GMAC_AUX_TS_NANOSECS.

Data Fields
const uint32_t auxtslo: 31 ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO
uint32_t __pad0__: 1 UNDEFINED

Macro Definitions

#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_LSB   0

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

#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_MSB   30

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

#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_WIDTH   31

The width in bits of the ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO register field.

#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_SET_MSK   0x7fffffff

The mask used to set the ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO register field value.

#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_CLR_MSK   0x80000000

The mask used to clear the ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO register field value.

#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_RESET   0x0

The reset value of the ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO register field.

#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_GET (   value)    (((value) & 0x7fffffff) >> 0)

Extracts the ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO field value from a register.

#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_AUXTSLO_SET (   value)    (((value) << 0) & 0x7fffffff)

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

#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_OFST   0x730

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

#define ALT_EMAC_GMAC_AUX_TS_NANOSECS_ADDR (   base)    ALT_CAST(void *, (ALT_CAST(char *, (base)) + ALT_EMAC_GMAC_AUX_TS_NANOSECS_OFST))

The address of the ALT_EMAC_GMAC_AUX_TS_NANOSECS register.

Typedef Documentation