Parameter passing for L1.5 Cal Trig 17-AUG-1994 ------------------------- Universal Parameter Block ------------------------- NOTE: there is only one Universal Parameter Block, from which all LOCAL and GLOBAL DSP's extract their Universal Parameters. For now the only use of Universal Parameters is to describe the number of Terms programmed in this Crate, but the concept is considered useful therefore 32 longwords are reserved for Universal Parameters. The Universal Parameter Header also includes the Crate ID and the Memory Map Version and Revision numbers. 1: Universal Parameter Block Header Longword D31 D24 D23 D16 D15 D8 D7 D0 +---------------+---------------+---------------+---------------+ | Crate ID | Reserved | Memory Map | Memory Map | | | | Version | Revision | | | | Number | Number | +---------------+---------------+---------------+---------------+ 2: Number of Terms defined for this Crate 3: Number of Universal Parameters defined for this Crate 4: 1st Universal Parameter for this Crate . . . 32: 29th Universal Parameter for this Crate ------------------------------------------------ Local and Global, and Frame Term Parameter Block ------------------------------------------------ NOTE: there is only one Term Parameter Block, from which all LOCAL DSPs receive their Local Tool Parameters [note that different Local DSPs cannot receive different Local Tool Parameters], and from which the GLOBAL DSP also extracts the Global Tool Parameters. All DSPs also extract their Term-Specific Frame code Parameters from this Block. All Term Parameter data slots will always be present in the Term Parameter Block. If a Term is not used its Header longword is set to $FFFFFFFF and its Tool Number is set to 0. The first Term Parameter data slot must contain Term #0's Parameters, the second slot Term #1's, etc. This does not preclude programming for example terms 1 and 3 without programming Terms 0, 2, 4, etc. Recall that Term 0 is always used with Ref Set 0, etc. There are slots for 8 Terms. 1: Frame Parameter Data Header Longword for this Crate's Term #0 D31 D24 D23 D16 D15 D8 D7 D0 +---------------+---------------+---------------+---------------+ | Reserved | Reserved | Parameter | Term Number | | | | Block Type | for this Frame| | | | | Parameter Term| | | | ( 0: Frame | slot | | | | 1: Local | | | | | 2: Global) | for this Term | | | | | (Term #0) | | | | (these are | this byte = 0 | | | | Frame Params | | | | | so this byte | | | | | should be | | | | | set to 0) | | +---------------+---------------+---------------+---------------+ 2: Pass_1_of_N Value for this Crate's Term #0 3: Mask of Specific Triggers which are mapped to Term #0 4: Number of Frame Parameters for this Crate's Term #0 5: 1st Frame Parameter for this Crate's Term #0 . . . 32: 28th Frame Parameter for this Crate's Term #0 33: Frame Parameter Data Header Longword for this Crate's Term #1 . . . 64: 28th Frame Parameter for this Crate's Term #1 . . . 256: 28th Frame Parameter for this Crate's Term #7 257: Local Parameter Data Header Longword for this Crate's Term #0 D31 D24 D23 D16 D15 D8 D7 D0 +---------------+---------------+---------------+---------------+ | Flag showing | Reference Set | Parameter | Term Number | | whether TCC | Type used by | Block Type | for this Local| | detected that | this Term | | Parameter Term| | the L1.5 Ref | | ( 0: Frame | slot | | Set matched | ( 0: EM Et | 1: Local | | | a L1 Ref Set | Ref Set | 2: Global) | for this Term | | | FF: Total Et | | (Term #0) | | (0,1,2,3: | Ref Set) | (these are | this byte = 0 | | indicates | | Local Params | | | which L1 Ref | | so this byte | | | set matches; | | should be | | | FF: no L1 | | set to 1) | | | Ref Set | | | | | matches) | | | | +---------------+---------------+---------------+---------------+ 258: Tool Number (unique Tool ID number) used by Term #0 259: Number of Tool Parameters (i.e. number of valid longwords to follow) 260: 1st Tool Dependent Local Parameter for this Crate's Term #0 . . . 288: 29th Tool Dependent Local Parameter for this Crate's Term #0 289: Local Tool Parameter Header Longword for this Crate's Term #1 . . . 320: 29th Tool Dependent Local Parameter for this Crate's Term #1 . . . 512: 29th Tool Dependent Local Parameter for this Crate's Term #7 513: Global Parameter Data Header Longword for this Crate's Term #0 D31 D24 D23 D16 D15 D8 D7 D0 +---------------+---------------+---------------+---------------+ | Reserved | Reserved | Parameter | Term Number | | | | Block Type | for this | | | | | Global | | | | ( 0: Frame | Parameter | | | | 1: Local | Term slot | | | | 2: Global) | | | | | | for this Term | | | | (these are | (Term #0) | | | | Global Parms | this byte = 0 | | | | so this byte | | | | | should be | | | | | set to 2) | | +---------------+---------------+---------------+---------------+ 514: Tool Number (unique Tool ID number) used by Term #0 515: Number of Tool Parameters (i.e. number of valid longwords to follow) 516: 1st Tool Dependent Global Parameter for this Crate's Term #0 . . . 544: 29th Tool Dependent Global Parameter for this Crate's Term #0 545: Global Parameter Header Longword for this Crate's Term #1 . . . 576: 29th Tool Dependent Global Parameter for this Crate's Term #1 . . . 768: 29th Tool Dependent Global Parameter for this Crate's Term #7 -------------------------------- Reference Set Block for one LDSP -------------------------------- NOTE: All Ref Set Data slots will always be present in the Ref Set Block. If all Ref Set entries are equal to 0 then the Ref Set is not used. The first Ref Set data slot must contain the data for Ref Set 0, the second slot Ref Set 1, etc. This does not preclude programming for example Ref Sets 1 and 3 without programming Ref Sets 0, 2, 4, etc. Recall that Ref Set 0 is always used for Term 0, etc. There are slots for 10 Reference Sets. That is, 8 "normal" (Term-specific) Reference Sets plus 2 "minimum" Reference Sets (1 EM, 1 Total). The notation assumes that the local DSP receives that Trigger Tower energies for eta n,n+1,...n+7, and is thus responsible and needs threshold information for eta n+2,..n+5. The end effects are handled by allocating space for imaginary etas beyond the existing coverage. This avoids writing special code for the end. 1: Reference Set 0 Longword #1 (Relative etas n+2, n+3, n+4, n+5 at phi 1) D31 D24 D23 D16 D15 D8 D7 D0 +---------------+---------------+---------------+---------------+ | Reference Set | Reference Set | Reference Set | Reference Set | | value for TT | value for TT | value for TT | value for TT | | at eta = n+5 | at eta = n+4 | at eta = n+3 | at eta = n+2 | | phi = 1 | phi = 1 | phi = 1 | phi = 1 | | for Ref Set 0 | for Ref Set 0 | for Ref Set 0 | for Ref Set 0 | +---------------+---------------+---------------+---------------+ 2: Reference Set 0 Longword #2 (Relative etas n+2, n+3, n+4, . n+5 at phi 2) . . 32: Reference Set 0 Longword #32 (Relative etas n+2, n+3, n+4, n+5) at phi 32) 33: Reference Set 1 Longword #1 (Relative etas n+2, n+3, n+4, . n+5 at phi 1) . . 64: Reference Set 1 Longword #32 (Relative etas n+2, n+3, n+4 . n+5 at phi 32) . . 320: Reference Set 9 Longword #32 (Relative etas n+2, n+3, n+4, n+5 at phi 32) -------------------------------------------------- Parameter/Ref Set Block layout in Dual-Port Memory -------------------------------------------------- Offset (in Offset (in Longwords) Longwords) in the in the Dual Port Dual Port Memory of Memory of the First the Last Longword Longword in Block in Block Block Description -------------------------------------------------------------------- 0 31 Universal Parameter Block 32 799 Term Parameter Block for Frame, Local, and Global 800 1119 Reference Set Block for eta -20..-19 (LDSP A2) 1120 1439 Reference Set Block for eta -18..-15 (LDSP A3) 1440 1759 Reference Set Block for eta -14..-11 (LDSP A4) 1760 2079 Reference Set Block for eta -10..-7 (LDSP A1) 2080 2399 Reference Set Block for eta -6..-3 (LDSP B3) 2400 2719 Reference Set Block for eta -2..+2 (LDSP B4) 2720 3039 Reference Set Block for eta +3..+6 (LDSP B1) 3040 3359 Reference Set Block for eta +7..+10 (LDSP C3) 3360 3679 Reference Set Block for eta +11..+14 (LDSP C4) 3680 3999 Reference Set Block for eta +15..+18 (LDSP C1) 4000 4319 Reference Set Block for eta +19..+20 (LDSP C2) Recall that, in DSP Addresses, the base address of the Dual Port Memory is 80000000h. In VME Addresses, the base address of the Dual Port Memory is: For Hydra Card Base Address is -------------- --------------- A $ 00A0 0000 B $ 00B0 0000 C $ 00C0 0000 Also recall that VME uses byte (not longword) addressing. The offset in bytes of any location in the Dual Port memory is simply 4 * the longword offset.