Timing System with Two-Way Signaling cRIO-EVR

14
Micro-Research Finland Oy Timing System with Two- Way Signaling cRIO-EVR Jukka Pietarinen EPICS Meeting Padova October 2008

description

Micro-Research Finland Oy. Timing System with Two-Way Signaling cRIO-EVR. Jukka Pietarinen EPICS Meeting Padova October 2008. Micro-Research Finland Oy. Timing System Topology. Hardware Triggers/Clocks. RF input (50 MHz to 1.6 GHz). Rep. Rate Trigger Input e.g. 50 Hz TTL. - PowerPoint PPT Presentation

Transcript of Timing System with Two-Way Signaling cRIO-EVR

Page 1: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

Timing System with Two-Way Signaling

cRIO-EVR

Jukka Pietarinen

EPICS Meeting PadovaOctober 2008

Page 2: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

[email protected]

Timing System Topology

Event Generator (EVG)

12-Way Fan-Out

RF input (50 MHz to 1.6 GHz)Rep. Rate Trigger Input

e.g. 50 Hz TTL

Hardware Triggers/Clocks

12-Way Fan-Out

Event Receiver (EVR)

Hardware Outputs

Event Receiver (EVR)

Event Receiver (EVR)

Multimode fiber

Page 3: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

[email protected]

Two-Way Signaling

Event Generator (EVG)

Fan-Out/Concentrator

RF input (50 MHz to 1.6 GHz)Rep. Rate Trigger Input

e.g. 50 Hz TTL

Hardware Triggers/Clocks

Fan-Out/Concentrator

Event Receiver (EVR)

Hardware Outputs

Event Receiver (EVR)

Event Receiver (EVR)

Multimode fibers

VME orCompactPCI/PXI

Hardwareinputs

Page 4: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

[email protected]

cPCI-FCT-8

Page 5: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

[email protected]

Fan-Out• one in – eight out fan-out• up to 2.5 Gbps SFPs with multimode transceivers (single

mode for extended reach)• CDR to regenerate gigabit rate signal

SFP

TX

SFP

TX

SFP

TX

SFP

TX

SFP

TX

SFP

TX

SFP

TX

SFP

TX

SFP

TX RX

UPLINK87654321RXRXRXRXRXRXRXRX

CDR

fan-outdifferential

Page 6: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

[email protected]

Concentrator

• Eight in – one out• Uplink TX port is using local reference

SFP

TX

SFP

TX

SFP

TX

SFP

TX

SFP

TX

SFP

TX

SFP

TX

SFP

TX

SFP

TX RX

UPLINK87654321RXRXRXRXRXRXRXRX

FPGA

localref.

• Forwarding of– Events– Distributed bus bit– Data buffers

Page 7: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

[email protected]

Broadcasting

Event Generator (EVG)

Fan-Out/Concentrator

RF input (50 MHz to 1.6 GHz)Rep. Rate Trigger Input

e.g. 50 Hz TTL

Hardware Triggers/Clocks

Fan-Out/Concentrator

Event Receiver (EVR)

Hardware Outputs

Event Receiver (EVR)

Event Receiver (EVR)

Multimode fibers

Hardwareinputs

LoopbackUplink port

Page 8: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

[email protected]

Concentrator – Event Forwarding

• Each RX channel has 2k event FIFO– Hold events in case of simultaneous

events from several ports

• Priority encoding– First come – first served– Round-robin

• One event from one port

→ next port

1 3 4 5 6 7 8 UP2

01

0102 03 04 05 06 07 08 09

11 12 13 14 15 16 17 0618

07

08

09

02

Page 9: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

[email protected]

Concentrator – Distributed bus bits

• Eight bit wide distributed bus• Each distributed bus bits from all ports is logically OR’ed

together

OR

RX 1 DBUSn

RX 2 DBUSn

RX 3 DBUSn

RX 4 DBUSn

RX 5 DBUSn

RX 6 DBUSn

RX 7 DBUSn

RX 8 DBUSn

UPLINK TX DBUSn

Page 10: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

[email protected]

Concentrator – Data Buffer Forwarding

• Each RX channel has 2 kbyte data FIFO• Forwarding starts immediately after start of

reception– Latency is minimized

• Priority: Round-Robin

Page 11: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

[email protected]

Concentrator – Latency Performance

EVG

EVREVR

1 2 3 4 5 6 7 UL8

Fan-Out ConcentratorFCT

2 m

2 m

2 m

Scope

Events 162 ± 4 ns

Distributed bus bits 107 ± 4 ns

Data buffers 181 ± 8 ns

• 499.654/4 MHz Event Clock

• Latency of Concentrator only (without fibre delays)

Page 12: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

[email protected]

CompactRIO Event Receiver

• Timing receiver form factors:– VME64x 6U– PMC (PCI mezzanine)– CompactPCI/PXI 3U

• Need for timing for embedded systems• MRF is working together with LANL and NI

to design an Event Receiver for cRIO

Page 13: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

[email protected]

CompactRIO EVR prototype• SFP transceiver for event link• FPGA with high speed serial link• 10/100 ethernet for control and

configuration• 64 Mbytes DDR2 memory• 2 × 16 Mbits serial flash• EEPROM• 9 to 35 VDC power supply input

• Power dissipation• Achieve required timing resolution • Achieve required data transfer

capability• Control and configuration methods

– cRIO– ethernet

Challenges (when used with NI HW/LabView)

Page 14: Timing System with Two-Way Signaling cRIO-EVR

Micro-Research Finland Oy

[email protected]

cRIO-EVR Stand-alone

• 9 to 35 VDC power supply input• DSUB15 with max. 11 I/O pins, ethernet control• Lattice Mico32 (lm32) system

– 32-bit soft-core CPU– 10/100 ethernet MAC– DDR2 memory controller

• Work started to port RTEMS to lm32 target– Tool set compiled from sources

• Binutils 2.19 (Lattice toolkit + some patches)• Gcc-3.4.4 (Lattice toolkit + some patches)• Newlib-1.16 (with RTEMS patches)

• Existing lm32 port for ucLinux– Is and (most probably) will not get into kernel mainstream