Trigger Board 1 (slot 16) Line Definitions
A1(051200)-------------------------------------------------------------------------------------
0
1cblow = cb_n_low[] > 0;
3tracks = (tr_n_ax[]>2);
evtime = cc_time[0];
out = 1cblow & 3tracks & evtime;
1
1cblow = cb_n_low[] > 0;
3tracks = (tr_n_ax[]>2);
evtime = tr_time[1];
out = 1cblow & 3tracks & evtime;
2
3tracks = (tr_n_ax[]>2);
evtime = tr_time[1];
out = 3tracks & evtime;
3
1cbmed = cb_n_med[] > 0;
1track = (tr_n_ax[]>0);
evtime = cc_time[0] # tr_time[1];
out = 1cbmed & 1track & evtime;
4
1cbhigh = cb_n_high[] > 0;
1track = (tr_n_ax[]>0);
evtime = cc_time[0];
out = 1cbhigh & 1track & evtime;
5
1cbhigh = cb_n_high[] > 0;
1track = (tr_n_ax[]>0);
evtime = tr_time[1];
out = 1cbhigh & 1track & evtime;
6
1cehigh = ce_n_high[] > 0;
1track = (tr_n_ax[]>0);
evtime = ce_time[0];
out = 1cehigh & 1track & evtime;
7
1cehigh = ce_n_high[] > 0;
1track = (tr_n_ax[]>0);
evtime = tr_time[1];
out = 1cehigh & 1track & evtime;
8
1cemed = ce_n_med[] > 0;
1track = (tr_n_ax[]>0);
evtime = ce_time[0] # tr_time[1];
out = 1cemed & 1track & evtime;
9
2cclow = cb_n_low[] > 1;
2track = tr_n_ax[] > 1;
evtime = cc_time[0] # tr_time[1];
out = 2cclow & 2track & evtime;
10
2cclow = (cb_n_low[] > 1) #
((cb_n_low[] > 0)&(ce_n_low[] > 0)) #
(ce_n_low[] > 1);
2track = tr_n_ax[] > 1;
evtime = cc_time[0] # ce_time[0] # tr_time[1];
out = 2cclow & 2track & evtime;
11
ored = in[117]&in[116]&in[115]&in[114]&in[113]&in[112]&in[111]&in[110]&in[109]&in[108]&
in[107]&in[106]&in[105]&in[104]&in[103]&in[102]&in[101]&in[100]&
in[99]&in[98]&in[97]&in[96]&in[95]&in[94]&in[93]&in[92]&in[91]&in[90]&
in[89]&in[88]&in[87]&in[86]&in[85]&in[84]&in[83]&in[82]&in[81]&in[80]&
in[79]&in[78]&in[77]&in[76]&in[75]&in[74]&in[73]&in[72]&in[71]&in[70]&
in[69]&in[68]&in[67]&in[66]&in[65]&in[64]&in[63]&in[62]&in[61]&in[60]&
in[59]&in[58]&in[57]&in[56]&in[55]&in[54]&in[53]&in[52]&in[51]&in[50]&
in[49]&in[48]&in[47]&in[46]&in[45]&in[44]&in[43]&in[42]&in[41]&in[40]&
in[39]&in[38]&in[37]&in[36]&in[35]&in[34]&in[33]&in[32]&in[31]&in[30]&
in[29]&in[28]&in[27]&in[26]&in[25]&in[24]&in[23]&in[22]&in[21]&in[20]&
in[19]&in[18]&in[17]&in[16]&in[15]&in[14]&in[13]&in[12]&in[11]&in[10]&
in[9]&in[8]&in[7]&in[6]&in[5]&in[3]&in[1];
out = ored#in[0]#in[2]#in[4];
A1(111999)-------------------------------------------------------------------------------------
0
1cblow = cb_n_low[] > 0;
3tracks = (tr_n_ax[]>2);
evtime = cb_time[0];
out = 1cblow & 3tracks & evtime;
1
1cblow = cb_n_low[] > 0;
3tracks = (tr_n_ax[]>2);
evtime = tr_time[1];
out = 1cblow & 3tracks & evtime;
2
3tracks = (tr_n_ax[]>2);
evtime = tr_time[1];
out = 3tracks & evtime;
3
1cbmed = cb_n_med[] > 0;
1track = (tr_n_ax[]>0);
evtime = cb_time[0];
out = 1cbmed & 1track & evtime;
4
1cbhigh = cb_n_high[] > 0;
1track = (tr_n_ax[]>0);
evtime = cb_time[0];
out = 1cbhigh & 1track & evtime;
5
1cbhigh = cb_n_high[] > 0;
1track = (tr_n_ax[]>0);
evtime = tr_time[1];
out = 1cbhigh & 1track & evtime;
6
1cehigh = ce_n_high[] > 0;
1track = (tr_n_ax[]>0);
evtime = ce_time[0];
out = 1cehigh & 1track & evtime;
7
1cehigh = ce_n_high[] > 0;
1track = (tr_n_ax[]>0);
evtime = tr_time[1];
out = 1cehigh & 1track & evtime;
8
1cemed = ce_n_med[] > 0;
1track = (tr_n_ax[]>0);
evtime = ce_time[0];
out = 1cemed & 1track & evtime;
9
2cclow = cb_n_low[] > 1;
2track = tr_n_ax[] > 1;
evtime = cb_time[0];
out = 2cclow & 2track & evtime;
10
2cclow = (cb_n_low[] > 1) #
((cb_n_low[] > 0)&(ce_n_low[] > 0)) #
(ce_n_low[] > 1);
2track = tr_n_ax[] > 1;
evtime = tr_time[1];
out = 2cclow & 2track & evtime;
11
ored = in[117]&in[116]&in[115]&in[114]&in[113]&in[112]&in[111]&in[110]&in[109]&in[108]&
in[107]&in[106]&in[105]&in[104]&in[103]&in[102]&in[101]&in[100]&
in[99]&in[98]&in[97]&in[96]&in[95]&in[94]&in[93]&in[92]&in[91]&in[90]&
in[89]&in[88]&in[87]&in[86]&in[85]&in[84]&in[83]&in[82]&in[81]&in[80]&
in[79]&in[78]&in[77]&in[76]&in[75]&in[74]&in[73]&in[72]&in[71]&in[70]&
in[69]&in[68]&in[67]&in[66]&in[65]&in[64]&in[63]&in[62]&in[61]&in[60]&
in[59]&in[58]&in[57]&in[56]&in[55]&in[54]&in[53]&in[52]&in[51]&in[50]&
in[49]&in[48]&in[47]&in[46]&in[45]&in[44]&in[43]&in[42]&in[41]&in[40]&
in[39]&in[38]&in[37]&in[36]&in[35]&in[34]&in[33]&in[32]&in[31]&in[30]&
in[29]&in[28]&in[27]&in[26]&in[25]&in[24]&in[23]&in[22]&in[21]&in[20]&
in[19]&in[18]&in[17]&in[16]&in[15]&in[14]&in[13]&in[12]&in[11]&in[10]&
in[9]&in[8]&in[7]&in[6]&in[5]&in[3]&in[1];
out = ored#in[0]#in[2]#in[4];
A1(060199)-------------------------------------------------------------------------------------
0
1cblow = cb_n_low[] > 0;
3tracks = (tr_n_hi[]>2) #
((tr_n_hi[]>1)&(tr_n_lo[]>0)) #
((tr_n_hi[]>0)&(tr_n_lo[]>1)) ;
evtime = cb_time[0];
out = 1cblow & 3tracks & evtime;
1
1cblow = cb_n_low[] > 0;
3tracks = (tr_n_hi[]>2) #
((tr_n_hi[]>1)&(tr_n_lo[]>0)) #
((tr_n_hi[]>0)&(tr_n_lo[]>1)) ;
evtime = tr_time[1];
out = 1cblow & 3tracks & evtime;
2
3tracks = (tr_n_hi[]>2) #
((tr_n_hi[]>1)&(tr_n_lo[]>0)) #
((tr_n_hi[]>0)&(tr_n_lo[]>1)) ;
evtime = tr_time[1];
out = 3tracks & evtime;
3
1cbmed = cb_n_med[] > 0;
1track = (tr_n_hi[]>0) # (tr_n_lo[]>0);
evtime = cb_time[0];
out = 1cbmed & 1track & evtime;
4
1cbhigh = cb_n_high[] > 0;
1track = (tr_n_hi[]>0);
evtime = cb_time[0];
out = 1cbhigh & 1track & evtime;
5
1cbhigh = cb_n_high[] > 0;
1track = (tr_n_hi[]>0);
evtime = tr_time[1];
out = 1cbhigh & 1track & evtime;
6
1cehigh = ce_n_high[] > 0;
1track = (tr_n_hi[]>0);
evtime = ce_time[0];
out = 1cehigh & 1track & evtime;
7
1cehigh = ce_n_high[] > 0;
1track = (tr_n_hi[]>0);
evtime = tr_time[1];
out = 1cehigh & 1track & evtime;
8
1cemed = ce_n_med[] > 0;
1track = (tr_n_hi[]>0);
evtime = ce_time[0];
out = 1cemed & 1track & evtime;
9
2cclow = cb_n_low[] > 1;
2track = tr_n_ax[] > 1;
evtime = cb_time[0];
out = 2cclow & 2track & evtime;
10
2cclow = (cb_n_low[] > 1) #
((cb_n_low[] > 0)&(ce_n_low[] > 0)) #
(ce_n_low[] > 1);
2track = tr_n_ax[] > 1;
evtime = tr_time[1];
out = 2cclow & 2track & evtime;
11
ored = in[117]&in[116]&in[115]&in[114]&in[113]&in[112]&in[111]&in[110]&in[109]&in[108]&
in[107]&in[106]&in[105]&in[104]&in[103]&in[102]&in[101]&in[100]&
in[99]&in[98]&in[97]&in[96]&in[95]&in[94]&in[93]&in[92]&in[91]&in[90]&
in[89]&in[88]&in[87]&in[86]&in[85]&in[84]&in[83]&in[82]&in[81]&in[80]&
in[79]&in[78]&in[77]&in[76]&in[75]&in[74]&in[73]&in[72]&in[71]&in[70]&
in[69]&in[68]&in[67]&in[66]&in[65]&in[64]&in[63]&in[62]&in[61]&in[60]&
in[59]&in[58]&in[57]&in[56]&in[55]&in[54]&in[53]&in[52]&in[51]&in[50]&
in[49]&in[48]&in[47]&in[46]&in[45]&in[44]&in[43]&in[42]&in[41]&in[40]&
in[39]&in[38]&in[37]&in[36]&in[35]&in[34]&in[33]&in[32]&in[31]&in[30]&
in[29]&in[28]&in[27]&in[26]&in[25]&in[24]&in[23]&in[22]&in[21]&in[20]&
in[19]&in[18]&in[17]&in[16]&in[15]&in[14]&in[13]&in[12]&in[11]&in[10]&
in[9]&in[8]&in[7]&in[6]&in[5]&in[3]&in[1];
out = ored#in[0]#in[2]#in[4];
A2(053100)-------------------------------------------------------------------------------------
0
evtime = ce_time[0];
bhabha = bha_theta[0];
ored = bhabha & evtime;
out = ored;
1
evtime = ce_time[0];
bhabha = bha_theta[1];
ored = bhabha & evtime;
out = ored;
2
evtime = ce_time[0];
bhabha = bha_theta[2] # bha_theta[3];
ored = bhabha & evtime;
out = ored;
3
evtime = cc_time[0];
bhabha = bha_theta[2] # bha_theta[3];
ored = bhabha & evtime;
out = ored;
4
evtime = cc_time[0];
bhabha = bha_theta[4];
ored = bhabha & evtime;
out = ored;
5
evtime = cc_time[0];
bhabha = bha_theta[5];
ored = bhabha & evtime;
out = ored;
6
evtime = cc_time[0];
gamgam = bha_theta[5] # bha_theta[4] # bha_theta[3] # bha_theta[2];
notrack = tr_n_ax[]==0;
ored = gamgam & notrack & evtime;
out = ored;
7
evtime = ce_time[0];
gamgam = bha_theta[0] # bha_theta[1] # bha_theta[2] # bha_theta[3];
notrack = tr_n_ax[]==0;
ored = gamgam & notrack & evtime;
out = ored;
8
evtime = cc_time[0];
2phot = cb_n_low[]>2;
ored = 2phot & evtime;
out = ored;
9
evtime = ce_time[0] # cc_time[0];
2phot = ((cb_n_low[]>1)&(ce_n_low[]>0)) #
((cb_n_low[]>0)&(ce_n_low[]>1));
ored = 2phot & evtime;
out = ored;
10
evtime = cc_time[0] # tr_time[1];
minbias = (cb_n_low[]>0) & (tr_n_ax[]>0);
ored = minbias & evtime;
11
ored = GND;
A2(051200)-------------------------------------------------------------------------------------
0
evtime = ce_time[0];
bhabha = bha_theta[0];
ored = bhabha & evtime;
out = ored;
1
evtime = ce_time[0];
bhabha = bha_theta[1];
ored = bhabha & evtime;
out = ored;
2
evtime = ce_time[0];
bhabha = bha_theta[2] # bha_theta[3];
ored = bhabha & evtime;
out = ored;
3
evtime = cc_time[0];
bhabha = bha_theta[2] # bha_theta[3];
ored = bhabha & evtime;
out = ored;
4
evtime = cc_time[0];
bhabha = bha_theta[4];
ored = bhabha & evtime;
out = ored;
5
evtime = cc_time[0];
bhabha = bha_theta[5];
ored = bhabha & evtime;
out = ored;
6
evtime = cc_time[0];
gamgam = bha_theta[5] # bha_theta[4] # bha_theta[3] # bha_theta[2];
notrack = tr_n_ax[]==0;
ored = gamgam & notrack & evtime;
out = ored;
7
evtime = ce_time[0];
gamgam = bha_theta[0] # bha_theta[1] # bha_theta[2] # bha_theta[3];
notrack = tr_n_ax[]==0;
ored = gamgam & notrack & evtime;
out = ored;
8
evtime = cc_time[0];
2phot = (cb_n_low[]>0) & (ce_n_med[]>0);
ored = 2phot & evtime;
out = ored;
9
evtime = ce_time[0];
2phot = (cb_n_low[]>0) & (ce_n_med[]>0);
ored = 2phot & evtime;
out = ored;
10
evtime = cc_time[0];
2phot = (cb_n_low[]>0) & (ce_n_low[]>1);
ored = 2phot & evtime;
out = ored;
11
ored = in[117]&in[116]&in[115]&in[114]&in[113]&in[112]&in[111]&in[110]&in[109]&in[108]&
in[107]&in[106]&in[105]&in[104]&in[103]&in[102]&in[101]&in[100]&
in[99]&in[98]&in[97]&in[96]&in[95]&in[94]&in[93]&in[92]&in[91]&in[90]&
in[89]&in[88]&in[87]&in[86]&in[85]&in[84]&in[83]&in[82]&in[81]&in[80]&
in[79]&in[78]&in[77]&in[76]&in[75]&in[74]&in[73]&in[72]&in[71]&in[70]&
in[69]&in[68]&in[67]&in[66]&in[65]&in[64]&in[63]&in[62]&in[61]&in[60]&
in[59]&in[58]&in[57]&in[56]&in[55]&in[54]&in[53]&in[52]&in[51]&in[50]&
in[49]&in[48]&in[47]&in[46]&in[45]&in[44]&in[43]&in[42]&in[41]&in[40]&
in[39]&in[38]&in[37]&in[36]&in[35]&in[34]&in[33]&in[32]&in[31]&in[30]&
in[29]&in[28]&in[27]&in[26]&in[25]&in[24]&in[23]&in[22]&in[21]&in[20]&
in[19]&in[18]&in[17]&in[16]&in[15]&in[14]&in[13]&in[12]&in[11]&in[10]&
in[9]&in[8]&in[7]&in[6]&in[5]&in[3]&in[1];
out = ored#in[0]#in[2]#in[4];
A2(060199)-------------------------------------------------------------------------------------
0
evtime = ce_time[0];
bhabha = bha_theta[0];
ored = bhabha & evtime;
out = ored;
1
evtime = ce_time[0];
bhabha = bha_theta[1];
ored = bhabha & evtime;
out = ored;
2
evtime = ce_time[0];
bhabha = bha_theta[2] # bha_theta[3];
ored = bhabha & evtime;
out = ored;
3
evtime = cb_time[0];
bhabha = bha_theta[2] # bha_theta[3];
ored = bhabha & evtime;
out = ored;
4
evtime = cb_time[0];
bhabha = bha_theta[4];
ored = bhabha & evtime;
out = ored;
5
evtime = cb_time[0];
bhabha = bha_theta[5];
ored = bhabha & evtime;
out = ored;
6
evtime = cb_time[0];
gamgam = bha_theta[5] # bha_theta[4] # bha_theta[3] # bha_theta[2];
notrack = tr_n_ax[]==0;
ored = gamgam & notrack & evtime;
out = ored;
7
evtime = ce_time[0];
gamgam = bha_theta[0] # bha_theta[1] # bha_theta[2] # bha_theta[3];
notrack = tr_n_ax[]==0;
ored = gamgam & notrack & evtime;
out = ored;
8
evtime = cb_time[0];
2phot = (cb_n_low[]>0) & (ce_n_med[]>0);
ored = 2phot & evtime;
out = ored;
9
evtime = ce_time[0];
2phot = (cb_n_low[]>0) & (ce_n_med[]>0);
ored = 2phot & evtime;
out = ored;
10
evtime = cb_time[0];
2phot = (cb_n_low[]>0) & (ce_n_low[]>1);
ored = 2phot & evtime;
out = ored;
11
ored = in[117]&in[116]&in[115]&in[114]&in[113]&in[112]&in[111]&in[110]&in[109]&in[108]&
in[107]&in[106]&in[105]&in[104]&in[103]&in[102]&in[101]&in[100]&
in[99]&in[98]&in[97]&in[96]&in[95]&in[94]&in[93]&in[92]&in[91]&in[90]&
in[89]&in[88]&in[87]&in[86]&in[85]&in[84]&in[83]&in[82]&in[81]&in[80]&
in[79]&in[78]&in[77]&in[76]&in[75]&in[74]&in[73]&in[72]&in[71]&in[70]&
in[69]&in[68]&in[67]&in[66]&in[65]&in[64]&in[63]&in[62]&in[61]&in[60]&
in[59]&in[58]&in[57]&in[56]&in[55]&in[54]&in[53]&in[52]&in[51]&in[50]&
in[49]&in[48]&in[47]&in[46]&in[45]&in[44]&in[43]&in[42]&in[41]&in[40]&
in[39]&in[38]&in[37]&in[36]&in[35]&in[34]&in[33]&in[32]&in[31]&in[30]&
in[29]&in[28]&in[27]&in[26]&in[25]&in[24]&in[23]&in[22]&in[21]&in[20]&
in[19]&in[18]&in[17]&in[16]&in[15]&in[14]&in[13]&in[12]&in[11]&in[10]&
in[9]&in[8]&in[7]&in[6]&in[5]&in[3]&in[1];
out = ored#in[0]#in[2]#in[4];
A3(062100)---------------------------------------------------------------------------------------
same as 061400 but without any CE timing
0
(tr_time[1]#cc_time[0];
1
(tr_time[1]#cc_time[0]) & (n_tr_ax[]>0);
2
(tr_time[1]#cc_time[0]) & (n_tr_ax[]>1);
3
(tr_time[1]#cc_time[0]) & (n_tr_ax[]>2);
4
(tr_time[1]#cc_time[0]) & (n_tr_ax[]>3);
5
(tr_time[1]#cc_time[0]) & (n_tr_ax[]>4);
6
n_tr_ax[] > 0;
7
n_tr_ax[] > 1;
8
n_tr_ax[] > 2;
9
n_tr_ax[] > 3;
10
n_tr_ax[] > 4;
11
n_tr_ax[] > 5;
A3(061400)---------------------------------------------------------------------------------------
0
(tr_time[1]#cc_time[0]#ce_time[0])
1
(tr_time[1]#cc_time[0]#ce_time[0]) & (n_tr_ax[]>0);
2
(tr_time[1]#cc_time[0]#ce_time[0]) & (n_tr_ax[]>1);
3
(tr_time[1]#cc_time[0]#ce_time[0]) & (n_tr_ax[]>2);
4
(tr_time[1]#cc_time[0]#ce_time[0]) & (n_tr_ax[]>3);
5
(tr_time[1]#cc_time[0]#ce_time[0]) & (n_tr_ax[]>4);
6
n_tr_ax[] > 0;
7
n_tr_ax[] > 1;
8
n_tr_ax[] > 2;
9
n_tr_ax[] > 3;
10
n_tr_ax[] > 4;
11
n_tr_ax[] > 5;
A3(111999)---------------------------------------------------------------------------------------
0
tr_time[1]
1
tr_time[1] & (n_tr_ax[]>0);
2
tr_time[1] & (n_tr_ax[]>1);
3
tr_time[1] & (n_tr_ax[]>2);
4
tr_time[1] & (n_tr_ax[]>3);
5
tr_time[1] & (n_tr_ax[]>4);
6
n_tr_ax[] > 0;
7
n_tr_ax[] > 1;
8
n_tr_ax[] > 2;
9
n_tr_ax[] > 3;
10
n_tr_ax[] > 4;
11
n_tr_ax[] > 5;
A4(051200)------------------------------------------------------------------------------------------
0
evtrig = (cb_high_old[] == 3);
evtime = (cc_time[0] # tr_time[1]);
ored = evtrig & evtime;
1
evtrig = (cb_low_old[] == 3);
evtime = (cc_time[0] # tr_time[1]);
ored = evtrig & evtime;
2
evtrig = (ce_high_old[] == 3);
evtime = (ce_time[0] # tr_time[1]);
ored = evtrig & evtime;
3
evtrig = (ce_low_old[] == 3);
evtime = (ce_time[0] # tr_time[1]);
ored = evtrig & evtime;
4
evtrig = (cb_high_old[] > 1) & !cpu_trig[0];
evtime = (cc_time[0] # tr_time[1]);
ored = evtrig & evtime;
5
evtrig = (cb_low_old[] > 1) & !cpu_trig[0];
evtime = (cc_time[0] # tr_time[1]);
ored = evtrig & evtime;
6
evtrig = (ce_high_old[] > 1) & !cpu_trig[0];
evtime = (ce_time[0] # tr_time[1]);
ored = evtrig & evtime;
7
evtrig = (ce_low_old[] > 1) & !cpu_trig[0];
evtime = (ce_time[0] # tr_time[1]);
ored = evtrig & evtime;
8
evtrig = (cb_high_old[] > 0) & !cpu_trig[1];
evtime = (cc_time[0] # tr_time[1]);
ored = evtrig & evtime;
9
evtrig = (cb_low_old[] > 0) & !cpu_trig[1];
evtime = (cc_time[0] # tr_time[1]);
ored = evtrig & evtime;
10
evtrig = (ce_high_old[] > 0) & !cpu_trig[1];
evtime = (ce_time[0] # tr_time[1]);
ored = evtrig & evtime;
11
evtrig = (ce_low_old[] > 0) & !cpu_trig[1];
evtime = (ce_time[0] # tr_time[1]);
ored = evtrig & evtime;
A4(111299)------------------------------------------------------------------------------------------
0
ored = (cb_high_old[] == 3);
1
ored = (cb_low_old[] == 3);
2
ored = (ce_high_old[] == 3);
3
ored = (ce_low_old[] == 3);
4
ored = (cb_high_old[] > 1) & !cpu_trig[0];
5
ored = (cb_low_old[] > 1) & !cpu_trig[0];
6
ored = (ce_high_old[] > 1) & !cpu_trig[0];
7
ored = (ce_low_old[] > 1) & !cpu_trig[0];
8
ored = (cb_high_old[] > 0) & !cpu_trig[1];
9
ored = (cb_low_old[] > 0) & !cpu_trig[1];
10
ored = (ce_high_old[] > 0) & !cpu_trig[1];
11
ored = (ce_low_old[] > 0) & !cpu_trig[1];
B1(051700) -------------------------------------------------------------------------------
line0: back to back tracks with (track OR CB) timing (1 versus 3 cells)
line1: back to back tracks with (track OR CB) timing (1 versus 5 cells)
line2: back to back tracks with (track OR CB) timing (1 versus 7 cells)
line3: back to back tracks with (track OR CB) timing (1 versus 9 cells)
line4: back to back tracks with (track OR CB) timing (1 versus 11 cells)
line5: back to back tracks with (track OR CB) timing (1 versus 13 cells)
lines 6 through 11 are GND;
B1(112999) -------------------------------------------------------------------------------
line0: back to back tracks with track timing (1 versus 3 cells)
line1: back to back tracks with track timing (1 versus 5 cells)
line2: back to back tracks with track timing (1 versus 7 cells)
line3: back to back tracks with track timing (1 versus 9 cells)
line4: back to back tracks with track timing (1 versus 11 cells)
line5: back to back tracks with track timing (1 versus 13 cells)
lines 6 through 11 are GND;
B1(060199) -------------------------------------------------------------------------------
0
ored = (tr_time[]==3) & (cb_time[]==3) & (ce_time[]==3) & (cc_time[]==3);
1
ored = (tr_top_ax[]==16777215);
2
ored = (tr_top_cc[]==16777215);
3
ored = (trig_spare_a[]==65535);
4
ored = (trig_spare_b[9..0]==1023);
5
ored = (trig_spare_b[10]==1); -- this is the "LIVE" bit
6
ored = (trig_spare_b[11]==1); -- this is the "RUN" bit
7
ored = (ext_trig[]==15);
8
ored = (ext_inhib[]==15);
9
ored = GND;
10
ored = GND;
11
ored = in[117]&in[116]&in[115]&in[114]&in[113]&in[112]&in[111]&in[110]&in[109]&in[108]&
in[107]&in[106]&in[105]&in[104]&in[103]&in[102]&in[101]&in[100]&
in[99]&in[98]&in[97]&in[96]&in[95]&in[94]&in[93]&in[92]&in[91]&in[90]&
in[89]&in[88]&in[87]&in[86]&in[85]&in[84]&in[83]&in[82]&in[81]&in[80]&
in[79]&in[78]&in[77]&in[76]&in[75]&in[74]&in[73]&in[72]&in[71]&in[70]&
in[69]&in[68]&in[67]&in[66]&in[65]&in[64]&in[63]&in[62]&in[61]&in[60]&
in[59]&in[58]&in[57]&in[56]&in[55]&in[54]&in[53]&in[52]&in[51]&in[50]&
in[49]&in[48]&in[47]&in[46]&in[45]&in[44]&in[43]&in[42]&in[41]&in[40]&
in[39]&in[38]&in[37]&in[36]&in[35]&in[34]&in[33]&in[32]&in[31]&in[30]&
in[29]&in[28]&in[27]&in[26]&in[25]&in[24]&in[23]&in[22]&in[21]&in[20]&
in[19]&in[18]&in[17]&in[16]&in[15]&in[14]&in[13]&in[12]&in[11]&in[10]&
in[9]&in[8]&in[7]&in[6]&in[5]&in[4]&in[3]&in[2]&in[1]&in[0];
out = ored;
B2(030100)--------------------------------------------------------------------------------
0
ored = cpu_trig[0] & !ext_trig[0];
1
ored = cpu_trig[1] & !ext_trig[2];
2
ored = GND;
3
ored = GND;
4
ored = GND;
5
ored = GND;
6
ored = GND;
7
ored = GND;
8
ored = GND;
9
ored = GND;
10
ored = GND;
11
ored = in[117]&in[116]&in[115]&in[114]&in[113]&in[112]&in[111]&in[110]&in[109]&in[108]&
in[107]&in[106]&in[105]&in[104]&in[103]&in[102]&in[101]&in[100]&
in[99]&in[98]&in[97]&in[96]&in[95]&in[94]&in[93]&in[92]&in[91]&in[90]&
in[89]&in[88]&in[87]&in[86]&in[85]&in[84]&in[83]&in[82]&in[81]&in[80]&
in[79]&in[78]&in[77]&in[76]&in[75]&in[74]&in[73]&in[72]&in[71]&in[70]&
in[69]&in[68]&in[67]&in[66]&in[65]&in[64]&in[63]&in[62]&in[61]&in[60]&
in[59]&in[58]&in[57]&in[56]&in[55]&in[54]&in[53]&in[52]&in[51]&in[50]&
in[49]&in[48]&in[47]&in[46]&in[45]&in[44]&in[43]&in[42]&in[41]&in[40]&
in[39]&in[38]&in[37]&in[36]&in[35]&in[34]&in[33]&in[32]&in[31]&in[30]&
in[29]&in[28]&in[27]&in[26]&in[25]&in[24]&in[23]&in[22]&in[21]&in[20]&
in[19]&in[18]&in[17]&in[16]&in[15]&in[14]&in[13]&in[12]&in[11]&in[10]&
in[9]&in[8]&in[7]&in[6]&in[5]&in[4]&in[3]&in[2]&in[1]&in[0];
B2(060199)--------------------------------------------------------------------------------
0
ored = cpu_trig[0] & !ext_trig[0];
1
ored = GND;
2
ored = GND;
3
ored = GND;
4
ored = GND;
5
ored = GND;
6
ored = GND;
7
ored = GND;
8
ored = GND;
9
ored = GND;
10
ored = GND;
11
ored = in[117]&in[116]&in[115]&in[114]&in[113]&in[112]&in[111]&in[110]&in[109]&in[108]&
in[107]&in[106]&in[105]&in[104]&in[103]&in[102]&in[101]&in[100]&
in[99]&in[98]&in[97]&in[96]&in[95]&in[94]&in[93]&in[92]&in[91]&in[90]&
in[89]&in[88]&in[87]&in[86]&in[85]&in[84]&in[83]&in[82]&in[81]&in[80]&
in[79]&in[78]&in[77]&in[76]&in[75]&in[74]&in[73]&in[72]&in[71]&in[70]&
in[69]&in[68]&in[67]&in[66]&in[65]&in[64]&in[63]&in[62]&in[61]&in[60]&
in[59]&in[58]&in[57]&in[56]&in[55]&in[54]&in[53]&in[52]&in[51]&in[50]&
in[49]&in[48]&in[47]&in[46]&in[45]&in[44]&in[43]&in[42]&in[41]&in[40]&
in[39]&in[38]&in[37]&in[36]&in[35]&in[34]&in[33]&in[32]&in[31]&in[30]&
in[29]&in[28]&in[27]&in[26]&in[25]&in[24]&in[23]&in[22]&in[21]&in[20]&
in[19]&in[18]&in[17]&in[16]&in[15]&in[14]&in[13]&in[12]&in[11]&in[10]&
in[9]&in[8]&in[7]&in[6]&in[5]&in[4]&in[3]&in[2]&in[1]&in[0];
C1(060199)-----------------------------------------------------------------------------------
If (ctl[3..0]==1) Then
o[11..0] = a1[];
ElsIf (ctl[3..0]==2) Then
o[11..0] = a2[];
ElsIf (ctl[3..0]==3) Then
o[11..0] = a3[];
ElsIf (ctl[3..0]==4) Then
o[11..0] = a4[];
ElsIf (ctl[3..0]==5) Then
o[11..0] = b1[];
ElsIf (ctl[3..0]==6) Then
o[11..0] = b2[];
else
o[11..0] = a1[];
End If;
If (ctl[7..4]==1) Then
o[23..12] = a1[];
ElsIf (ctl[7..4]==2) Then
o[23..12] = a2[];
ElsIf (ctl[7..4]==3) Then
o[23..12] = a3[];
ElsIf (ctl[7..4]==4) Then
o[23..12] = a4[];
ElsIf (ctl[7..4]==5) Then
o[23..12] = b1[];
ElsIf (ctl[7..4]==6) Then
o[23..12] = b2[];
else
o[23..12] = a2[];
End If;
out[23..0] = o[23..0];
C2(121999)-----------------------------------------------------------------------------------
-- back to back type stuff
-- b1[0] is back to back tracks with track timing (1 versus 3 cells)
-- b1[1] is back to back tracks with track timing (1 versus 5 cells)
-- b1[2] is back to back tracks with track timing (1 versus 7 cells)
-- a4[0] is back to back CB high
-- a4[1] is back to back CB low
-- a4[2] is back to back CE high
-- a4[3] is back to back CE low
o[0] = b1[0] & a4[0];
o[1] = b1[0] & a4[1];
o[2] = b1[1] & a4[0];
o[3] = b1[1] & a4[1];
o[4] = b1[2] & a4[0];
o[5] = b1[2] & a4[1];
o[6] = b1[0] & a4[2];
o[7] = b1[0] & a4[3];
o[8] = b1[1] & a4[2];
o[9] = b1[1] & a4[3];
o[10] = b1[2] & a4[2];
o[11] = b1[2] & a4[3];
o[23..12] = GND;
C2(060199)-----------------------------------------------------------------------------------
If (ctl[3..0]==1) Then
o[11..0] = a1[];
ElsIf (ctl[3..0]==2) Then
o[11..0] = a2[];
ElsIf (ctl[3..0]==3) Then
o[11..0] = a3[];
ElsIf (ctl[3..0]==4) Then
o[11..0] = a4[];
ElsIf (ctl[3..0]==5) Then
o[11..0] = b1[];
ElsIf (ctl[3..0]==6) Then
o[11..0] = b2[];
else
o[11..0] = a1[];
End If;
If (ctl[7..4]==1) Then
o[23..12] = a1[];
ElsIf (ctl[7..4]==2) Then
o[23..12] = a2[];
ElsIf (ctl[7..4]==3) Then
o[23..12] = a3[];
ElsIf (ctl[7..4]==4) Then
o[23..12] = a4[];
ElsIf (ctl[7..4]==5) Then
o[23..12] = b1[];
ElsIf (ctl[7..4]==6) Then
o[23..12] = b2[];
else
o[23..12] = a2[];
End If;
out[23..0] = o[23..0];