User manual

Table Of Contents
Zynq-7000 AP SoC Technical Reference Manual www.xilinx.com 694
UG585 (v1.11) September 27, 2016
Chapter 25: Clocks
Example: Run the PL Clock for 592 Pulses and Stop
In this example, there will be 592 clock pulses and stops. The slcr.FPGAx_THR_CTRL [CPU_START] bit
is positive edge triggered to start the clock.
1. Prime the Start Clock bit: write 0x0000_0004 to the control register, slcr.FPGAx_THR_CTRL.
°
[CPU_START] = 0
°
[CNT_RST] = 0
°
[Reserved] = 0x001
2. Program a count of 592: write 0x0000_0250 to the count register, slcr.FPGAx_THR_CNT.
°
[LAST_CNT] = 0x0250
°
[Reserved] = 0
3. Assert the Start Clock bit: write 0x0000_0005 to the control register, slcr.FPGAx_THR_CTRL.
°
[CPU_START] = 1
°
[CNT_RST] = 0
°
[Reserved] = 0x001
Example: Program 592 Pulses and Interact with the PL Trigger Input
In this example, there will be 592 clock pulses that are paused by the clock trigger signal
(FCLKCLKTRIGxN) and re-started by software. The slcr.FPGAx_THR_CTRL [CPU_START] bit is positive
edge triggered to start the clock.
1. Prime the Start Clock bit: See previous example.
2. Program a count of 592: See previous example.
3. Assert the Start Clock bit: See previous example.
4. PL Logic Pauses the Clock (HALT state): the logic asserts FCLKCLKTRIGxN input to stop the
clock.
5. Prime the Start Clock bit: See previous example.
Assert the Start Clock bit: See previous example.