***************************** * * * D-Zero Run II Upgrade * * * * Level 1 Trigger Framework * * * * and * * * * Level 2 Trigger Framework * * * * FM Connectivity Test * * * * FPGA Description * * * ***************************** Original: 29-JUNE-1998 Latest: 2-FEB-2000 Introduction ------------ The Connectivity Test will be used during two different phases in the life of the system (including L1 and L2 Framework): - as part of initial card commissioning, - as an exerciser, diagnostics, and repair tool to support the running system. The goal is to cover all possible types of connections, including - cables - connectors - on board traces - part placement - soldering For this test, a special FM FPGA configuration and a special BSF FPGA configuration are needed. In these special configurations, all FPGA inputs are readable from VME registers, and all outputs are controllable from VME registers, with no connection inside the FPGA between inputs and outputs. Whenever possible, "physically close" groups of signals should be handled by neighboring bits within a common register; ideally 16 connections at a time. The VME Interface FPGA will not (cannot) be programmed differently during the connectivity tests. Note that for the connectivity test a special On-Card Bus (OCB) is needed. The standard OCB includes a BSCAN component to enable JTAG; for these tests the JTAG lines will be controlled by registers and consequently this component must be removed from the OCB. FM FPGA --------- The FM Connectivity Test FPGA has the following inputs and outputs: o MSA Inputs o HSRO Data o HSRO Data Valid o HSRO DCE In o High-Quality Timing Signals o JTAG Test Data In o MSA Outputs o HSRO DCE Out o Chip Status o JTAG Test Data Out Programming Interface --------------------- Because the MSA FPGAs on the FM all have different connections, in practice 3 separate FM FPGA configurations are needed. The FM Connectivity Test FPGAs have the following VME-visible registers: Reg Register Addr Access Contents Meaningful for site ---- ------ -------- ------------------- 0 R MSA Inputs 15:0 1, 4, 1 R MSA Inputs 31:16 1, 4, 2 R MSA Inputs 47:32 1, 4, 3 R MSA Inputs 63:48 1, 4, 4 R MSA Inputs 79:64 1, 13, 16 * 5 R MSA Inputs 95:80 1, 13, 16 * 6 R MSA Inputs 111:96 1, 13, 16 * 7 R MSA Inputs 127:112 1, 13, * At site 16, only the following bits are found: RA 4: MSA In 71:64 are in bits 7:0 RA 5: MSA In 80 is in bit 0 MSA In 89:88 are in bits 9:8 RA 6: MSA In 111:104 are in bits 15:7 MSA In 100:96 are in bits 4:0 Also note that the 13 duplicate copies of MSA_In 80, 108, 109, 110, 111 are *not* available for readout at site 16 8 R Bussed Control Lines 9 R Board Global IO 15:0 13 10 R Board Global IO 16 13 16 R HSRO Data 17 R HSRO DCE In 24 R High-Quality Timing Signals 32 R JTAG Test Data In 48 R/W MSA Outputs 15:0 4 49 R/W MSA Outputs 31:16 4 50 R/W MSA Outputs 47:32 13 51 R/W MSA Outputs 63:48 1, 13, 16 * * MSA Outputs 55:48 are in bits 7:0 of this register in site 13 MSA Outputs 59:56 are in bits 11:8 of this register in site 1 MSA Outputs 63:60 are in bits 15:12 of this register in site 16 56 R/W HSRO DCE Out 57 R/W JTAG Test Data Out 64 R/W Chip Status The bit allocation in each of these registers is given below. Bussed Control Lines Bit Access Contents --- ------ -------- 0 R HSRO Data Valid 15:1 not allocated HSRO DCE In Bit Access Contents --- ------ -------- 0 R HSRO DCE In 15:1 not allocated High-Quality Timing Signals Bit Access Contents --- ------ -------- 4:0 R HQ Timing Signal 4:0 15:5 not allocated JTAG Test Data In Bit Access Contents --- ------ -------- 0 R JTAG Test Data In 15:1 not allocated MSA Outputs Bit Access Contents --- ------ -------- 3:0 R/W MSA Outputs 3:0 15:4 not allocated HSRO DCE Out Bit Access Contents --- ------ -------- 0 R/W HSRO DCE Out 15:1 not allocated Chip Status Bit Access Contents --- ------ -------- 0 R/W Chip Status 15:1 not allocated JTAG Test Data Out Bit Access Contents --- ------ -------- 0 R/W JTAG Test Data Out 15:1 not allocated BSF FPGA -------- The BSF FPGA for the FM Connectivity Test has the following inputs and outputs: o P1 Timing Signals (including the 53 MHz clock as P1 TS #0) o P5 Global I/O o Board Global IO o HSRO DCE In o JTAG Test Data In o High-Quality Timing Signals o HSRO Data o HSRO Data Valid o HSRO DCE Out o Chip Status o JTAG Test Data Out o Board Global IO Programming Information ----------------------- The FM Connectivity Test BSF FPGA has the following VME-visible registers: Reg Register Addr Access Contents ---- ------ -------- 0 R P1 Timing Signals 8 R/W Bussed Control Lines 16 R/W HSRO Data 17 R HSRO DCE In 24 R/W High-Quality Timing Signals 32 R JTAG Test Data In 48 R P5 Global I/O (15:0) 49 R P5 Global I/O (16) 56 R/W HSRO DCE Out 57 R/W JTAG Test Data Out 64 R/W Chip Status 72 R/W Board Global IO (15:0) 73 R/W Board Global IO (16) The bit allocation in each of these registers is given below. Bussed Control Lines Bit Access Contents --- ------ -------- 0 R/W HSRO Data Valid 15:1 not allocated HSRO DCE In Bit Access Contents --- ------ -------- 0 R HSRO DCE In 15:1 not allocated High-Quality Timing Signals Bit Access Contents --- ------ -------- 3:0 R/W HQ Timing Signals 3:0 to MSA FPGAs 4:1 7:4 R/W HQ Timing Signals 3:0 to MSA FPGAs 8:5 11:8 R/W HQ Timing Signals 3:0 to MSA FPGAs 12:6 15:12 R/W HQ Timing Signals 3:0 to MSA FPGAs 16:13 JTAG Test Data In Bit Access Contents --- ------ -------- 0 R JTAG Test Data In 15:1 not allocated HSRO DCE Out Bit Access Contents --- ------ -------- 0 R/W HSRO DCE Out 15:1 not allocated Chip Status Bit Access Contents --- ------ -------- 0 R/W Chip Status 15:1 not allocated JTAG Test Data Out Bit Access Contents --- ------ -------- 0 R/W JTAG Test Data Out 15:1 not allocated