wb_readTimestamp

Read 64-bits timestamp

Reads 64-bit timestamp in two registers

Contents:

1. Memory map summary
2. HDL symbol
3. Register description
3.1. Timestamp High Word
3.2. Timestamp Low Word
3.3. Timestamp error counter
3.4. Timestamp correction counter
3.5. Read Timestamp control

1. Memory map summary

H/W Address Type Name VHDL/Verilog prefix C prefix
0x0 REG Timestamp High Word wbrdtime_high HIGH
0x1 REG Timestamp Low Word wbrdtime_low LOW
0x2 REG Timestamp error counter wbrdtime_errors ERRORS
0x3 REG Timestamp correction counter wbrdtime_corrections CORRECTIONS
0x4 REG Read Timestamp control wbrdtime_control CONTROL

2. HDL symbol

rst_n_i Timestamp High Word:
wb_clk_i wbrdtime_high_timestamp_i[31:0]
wb_addr_i[2:0]  
wb_data_i[31:0] Timestamp Low Word:
wb_data_o[31:0] wbrdtime_low_timestamp_i[31:0]
wb_cyc_i  
wb_sel_i[3:0] Timestamp error counter:
wb_stb_i wbrdtime_errors_nr_i[31:0]
wb_we_i  
wb_ack_o Timestamp correction counter:
wbrdtime_corrections_nr_i[31:0]
 
Read Timestamp control:
wbrdtime_control_disable_o
wbrdtime_control_error_i
wbrdtime_control_correction_i
wbrdtime_control_clear_o
wbrdtime_control_clear_wr_o

3. Register description

3.1. Timestamp High Word

HW prefix: wbrdtime_high
HW address: 0x0
C prefix: HIGH
C offset: 0x0

Timestamp High Word

31 30 29 28 27 26 25 24
TIMESTAMP[31:24]
23 22 21 20 19 18 17 16
TIMESTAMP[23:16]
15 14 13 12 11 10 9 8
TIMESTAMP[15:8]
7 6 5 4 3 2 1 0
TIMESTAMP[7:0]

3.2. Timestamp Low Word

HW prefix: wbrdtime_low
HW address: 0x1
C prefix: LOW
C offset: 0x4

Timestamp Low Word

31 30 29 28 27 26 25 24
TIMESTAMP[31:24]
23 22 21 20 19 18 17 16
TIMESTAMP[23:16]
15 14 13 12 11 10 9 8
TIMESTAMP[15:8]
7 6 5 4 3 2 1 0
TIMESTAMP[7:0]

3.3. Timestamp error counter

HW prefix: wbrdtime_errors
HW address: 0x2
C prefix: ERRORS
C offset: 0x8

Timestamp error counter

31 30 29 28 27 26 25 24
NR[31:24]
23 22 21 20 19 18 17 16
NR[23:16]
15 14 13 12 11 10 9 8
NR[15:8]
7 6 5 4 3 2 1 0
NR[7:0]

3.4. Timestamp correction counter

HW prefix: wbrdtime_corrections
HW address: 0x3
C prefix: CORRECTIONS
C offset: 0xc

Timestamp correction counter

31 30 29 28 27 26 25 24
NR[31:24]
23 22 21 20 19 18 17 16
NR[23:16]
15 14 13 12 11 10 9 8
NR[15:8]
7 6 5 4 3 2 1 0
NR[7:0]

3.5. Read Timestamp control

HW prefix: wbrdtime_control
HW address: 0x4
C prefix: CONTROL
C offset: 0x10

Controlregister for reading timestamp

31 30 29 28 27 26 25 24
- - - - - - - -
23 22 21 20 19 18 17 16
- - - - - - - -
15 14 13 12 11 10 9 8
- - - - - - - -
7 6 5 4 3 2 1 0
- - - - CLEAR CORRECTION ERROR DISABLE