axi4lite_HighResolutionClock
Based on axi4lite_Register, IP/clock_highresolution
Instantiation
Todo
needs documentation
HRC : entity PoC.axi4lite_HighResolutionClock
generic map (
CLOCK_FREQUENCY => 100 MHz
) port map (
Clock => Clock,
Reset => Reset,
Nanoseconds => Nanoseconds,
Datetime => Datetime,
AXI_clock => AXI_clock,
AXI_reset => AXI_reset,
AXI4Lite_m2s => AXI4Lite_m2s,
AXI4Lite_s2m => AXI4Lite_s2m
);
Interface
Generics
CLOCK_FREQUENCY
- Name:
CLOCK_FREQUENCY
- Type:
FREQ- Default Value:
— — — —
- Description:
Frequency of input clock signal used by internal time counters.
USE_CDC
- Name:
USE_CDC
- Type:
boolean- Default Value:
False
- Description:
Enable/disable CDC FIFO.
REGISTER_NANOSECONDS
- Name:
REGISTER_NANOSECONDS
- Type:
natural- Default Value:
0
- Description:
Amount of pipelining stages.
SECOND_RESOLUTION
- Name:
SECOND_RESOLUTION
- Type:
T_SECOND_RESOLUTION- Default Value:
NANOSECONDS- Description:
Set unit for Time_sec_res register (
NANOSECONDS,MICROSECONDSorMILLISECONDS).
Ports
Clock
- Name:
Clock
- Type:
std_logic- Mode:
in
- Default Value:
— — — —
- Description:
Clock
Reset
- Name:
Reset
- Type:
std_logic- Mode:
in
- Default Value:
— — — —
- Description:
synchronous high-active reset
Nanoseconds
- Name:
Nanoseconds
- Type:
unsigned(63 downto 0)- Mode:
out
- Default Value:
— — — —
- Description:
Current time in nanoseconds.
Datetime
- Name:
Datetime
- Type:
T_CLOCK_DATETIME- Mode:
out
- Default Value:
— — — —
- Description:
Curent time in datetime.
AXI_clock
- Name:
AXI_clock
- Type:
std_logic- Mode:
in
- Default Value:
— — — —
- Description:
AXI clock.
AXI_reset
- Name:
AXI_reset
- Type:
std_logic- Mode:
in
- Default Value:
— — — —
- Description:
AXI reset.
AXI4Lite_m2s
- Name:
AXI4Lite_m2s
- Type:
axi4lite.T_AXI4Lite_Bus_m2s- Mode:
in
- Default Value:
— — — —
- Description:
AXI4-Lite manager to subordinate signals.
AXI4Lite_s2m
- Name:
AXI4Lite_s2m
- Type:
axi4lite.T_AXI4Lite_Bus_s2m- Mode:
out
- Default Value:
— — — —
- Description:
AXI4-Lite subordinate to manager signals.
Configuration
Todo
tbd
Register Map
Offset |
R/W Config |
Name |
Description |
|---|---|---|---|
0x0000 |
— |
Reserved |
Dummy register for later use |
0x0004 |
ReadWrite |
Config_reg |
Configuration register for correction counter: |
0x0008 |
ReadOnly |
Nanoseconds_lower |
Current time in nanoseconds (lower 32-bit) |
0x000C |
ReadOnly |
Nanoseconds_upper |
Current time in nanoseconds (upper 32-bit) |
0x0010 |
ReadOnly |
Time_HMS |
current time: |
0x0014 |
ReadOnly |
Date_Ymd |
current date: |
0x0018 |
ReadOnly |
Time_sec_res |
Counter in ms, us or ns (specified by user with a generic) |
0x001C |
— |
Reserved |
Reserved |
0x0020 |
ReadWrite_NotRegistered |
Nanoseconds_to_load_lower |
Nanoseconds to load (lower 32-bit) |
0x0024 |
ReadWrite_NotRegistered |
Nanoseconds_to_load_uppper |
Nanoseconds to load (upper 32-bit) |
0x0028 |
ReadWrite_NotRegistered |
Datetime_to_load_HMS |
Time to load (as described for Time_HMS) |
0x002C |
ReadWrite_NotRegistered |
Datetime_to_load_Ymd |
Date to load (as described for Date_Ymd) |