VME-Fastbus Interface Board

VME-Fastbus Interface (VFI) Board

OD DAQ Version 2

This custom board is part of the SuperK OD DAQ system as installed during the custom electronics upgrade from version 1 to version 2 at August 01, 1996. The VFI board sits in slot 7 of the OD VME crate in the central hut.


Overview of this document


Note: This site is best viewed with Netscape Ver.2 or compatible !

Functions

This module is the main trigger interface between the VME electronics in the center hut and the Fastbus electronics in the outer huts. The following trigger and control signals are transmitted to/from the Fastbus Interface modules in the outer huts via LAN-type twisted-pair cables, called "BIP" cables:
  1. Common Stop Trigger for the TDCs,
  2. Common Clock (Stop Trigger) for the Struck latches,
  3. Remote FSCC Reset for VME-commandable reset of the FSCC controllers,
  4. Busy-In-Progress (BIP) signals from the TDCs.
Other functions are: Block Diagram (also as postscript file):

VFI block diagram

Inputs and Outputs

NameI/Olevelwherefunction
TRGinputNIMLEMO Global trigger via fanout of the ENT board.
VetooutputTTLLEMO Monitor output of the Trigger Veto status. Used for debugging and testing only.
Fifo BusyinputTTLLEMO Busy signal of one of the Fifo modules, just needed for the LED Display Box.
STRGoutputNIMLEMO Struck Stop Trigger monitor output, for debugging and test purposes only.
FTRGoutputNIMLEMO Fastbus Trigger (TDC Common Stop) monitor output, for debugging and test purposes only.
Test Vetoinputinv. TTL LEMO cable stud(Spare backup board only) External Veto input. A logic low TTL signal (e.g. a short or 50 Ohm terminator) at this input will set a veto condition for the STRG and FTRG pulse generator, i.e. global triggers will be vetoed until the signal changes to logic high TTL level.
[This connector stays unplugged during normal runs!]
"BIP" cablesI/O's3*RS485
+ 1*dECL
four 8-pin ModularControl signals from and to the FIV modules in the four outer huts, one modular connector each. Pin assignments at each connector:
1/2 = dECL output = +/- Struck Stop Trigger (STRG)
3/6 = RS485 output = +/- TDC Common Stop Trigger (FTRG)
4/5 = RS485 output = +/- FSCC Reset pulse
7/8 = RS485 input = +/- TDC BIP signal
LED BoxoutputsTTL 16-pin header7 signals for the LED Display Box on top of the VME crate. Pin configuration:
1 = Hut 4 TDCs Busy (=BIP4)
3 = Hut 3 TDCs Busy (=BIP3)
5 = Hut 2 TDCs Busy (=BIP2)
7 = Hut 1 TDCs Busy (=BIP1)
9 = Veto Flag
11 = Trigger OK
13 = Fifo VME Busy
15 = +5V (test)
even = Signal GND
Fifo FlagsoutputsRS485 14-pin header7 flag signals for the second V533 Fifo module. Pin configuration:
1/2 = +/- Remote Veto Flag (VME programmed veto)
3/4 = +/- Veto Status Flag (combined Trigger Veto)
5/6 = +/- Auxiliary Flag (optional, fixed by jumper JP3 setting)
7/8 = +/- Hut 4 TDC Busy (=BIP4)
9/10 = +/- Hut 3 TDC Busy (=BIP3)
11/12 = +/- Hut 2 TDC Busy (=BIP2)
13/14 = +/- Hut 1 TDC Busy (=BIP1)
50MHz CLKinputNIMLEMO Input for the 50 MHz clock signal (20 nsec) from the LTC, needed for the Trigger Veto and Delay circuits.
BIP TRGoutputNIMLEMO End-of-BIP trigger pulse for the third V533 Fifo, in oder to measure TDC dead times with separate Fifo modules.
[Note: this signal is not used with the current OD DAQ setup! But a combined Global trigger / BIP trigger signal is generated at the LTC module instead. Implementation of separate Global Trigger and BIP trigger fifo banks is scheduled for Winter/Spring 1997.]

Jumpers and DIP Switches

See also the board layout sketch (gif or postscript) for the locations.

JP3:
Set optional Auxiliary Flag Bit:
open = 1 / closed = 0

JP5:
Veto circuit setup
pins 1+2 (RVETO-EN): open = enable VME programmable Reset Veto [DEFAULT]
closed = disable Reset Veto
pins 3+4 (BIP-VETO): open = enable BIP veto [DEFAULT]
closed = disable BIP veto
pins 5+6 (BIP-LONG): open = extend BIP veto for 200 nsec after end of BIP signal
closed = keep BIP veto equal to length of BIP signal [DEFAULT]
pins 7+8 (BIP-INV): open = BIP inputs are inverted
closed = BIP inputs are non-inverted [DEFAULT]

S1:
10-position dip switch to set the Fastbus TDC Common Stop Trigger (FTRG) delay (versus the Global Trigger) in 20 nsec steps. Depending on the setting of the dip switch a 50 MHz counter (20 nsec) counter is started as soon as a (not yet vetoed) Global Trigger arrives. The counter starts from the dip switch's digital value and then counts down to zero. When it reaches the value 50 (= 1 µsec left until 0) a 100 nsec TDC Common Stop Trigger (FTRG) is generated. Also, as long as the counter value is non-zero, a "Counter Busy Veto" signal is set and OR-ed with the BIP veto and programmable VME veto to suppress further Global Triggers for generating Struck and TDC Triggers.

delay timing diagram

The formulas for the count busy and FTRG delay lengths are:

Counter busy lenght: dip-switch_value * 20 nsec
FTRG delay lenght: Counter_busy_lenght - 920 nsec (+/-10 nsec)

Table of examples:

switch positionswitch valuecounter busyFTRG delay
12345678910
00000000000 0 (invalid) (invalid)
10000000001 20 nsec (no pulse)
01000000002 40 nsec (no pulse)
::::::::::: : :
100011000049 980 nsec (no pulse)
010011000050 1.00 µsec ~80 nsec (min.)
::::::::::: : :
100001100097 1.94 µsec 1.00 µsec
1100100100147 2.94 µsec 2.00 µsec
1110111100247 4.94 µsec 4.00 µsec
11011010103476.94 µsec6.00 µsec [DEFAULT]
1111110110447 8.94 µsec 8.00 µsec
1100100001547 10.94 µsec10.00 µsec
1110000101647 12.94 µsec12.00 µsec
1101011101747 14.94 µsec14.00 µsec
1111001011847 16.94 µsec16.00 µsec
1100110111947 18.94 µsec18.00 µsec
01111111111022 20.44 µsec19.50 µsec (max.)
11111111111023 0 (invalid) (invalid)
where: 0=closed and 1=open

S2:
16-position rotary switch to set the Struck Stop Trigger (STRG) pulse width in 20nsec steps:

switch
position
pulse width
0no pulse
120 nsec
240 nsec
::
E280 nsec
F300 nsec [DEFAULT]


VFI panel

LEDs and their functions

  1. Trigger (green) flashes briefly whenever a new Global Trigger arrives.
  2. Veto (red): This LED is lit whenever any combination of the trigger veto conditions occurs, i.e. if
    • any TDC in the outer huts is busy (BIP = high), or
    • the TDC Common Stop (FTRG) delay counter is busy (See also description for Switch S1 in section "Jumpers and Switches"), or
    • a VME-commanded veto signal is generated, or
    • an external veto signal is generated (spare board only).
  3. BIP-OR (orange) is lit whenever any of the TDCs in the outer huts is in the busy-in-progress (BIP) state.
  4. Fifo Busy (red) monitors the Fifo (V533) busy state.
  5. STRG (green) flashes briefly when a Struck Stop Trigger is generated. It should flash synchronously with the Trigger and FTRG LED if neither veto condition occurs.
  6. FTRG (yellow) flashes briefly when a TDC Common Stop Trigger is generated.
  7. FSCC Resets (4 * red): One LED for each of the outer hut's FSCCs. They flash briefly whenever the FSCCs are fully reset/re-initialized through a VME command. Simultaneously, a warning beeper will be heard as well.
  8. End-of-BIP Trigger (orange) flashes briefly when the end of a TDC BIP signal is detected.
Under normal run conditions, all of the above LEDs - except the 4 FSCC Reset and the Fifo Busy LEDs - should flash synchronously with incoming global triggers.

Schematics and PCB layout

The schematics were edited with ORCAD STD V4 on a 486 PC.
  1. page 1 (gif or postscript): root page,
  2. page 2 (gif or postscript): VME-bus supply and control (Resetter functions),
  3. page 3 (gif or postscript): BIP I/O and fifo flags,
  4. page 4 (gif or postscript): LED DISPLAY Box driver,
  5. page 5 (gif or postscript): Trigger delay and veto,
  6. page 6 (gif or postscript): Output drivers.
The 2-layer PCB layout was edited with TANGO PCB V2, also on a 486 PC. Here's the gif or postscript file of the silk print layer.


PLD Source Codes

The source codes for the 4 PLDs (IC positions U4, U19, U20, U21) are written for TANGO PLD, a compiler for JEDEC format used with PAL/EPROM burners.

Performance Test Results


Revison Notes

rev. HGB 01/31/97. Any comments to berns@phys.washington.edu are welcome!