- Initialize your TTC system (should be sending BC0s but no L1A's)
- Using the Python program amc13_control.py:
- enable AMC Inputs:
"I [list of AMC inputs to be enabled]"
i.e. "I 0,1"
for lowest two inputs.
- Switch to Virtex chip:
"t1"
- Enable fake data:
"w 1 0x83"
- bit 0 - Run mode
- bit 1 - DAQ Link enable
- bit 7 - Fake data mode (no AMCs required)
- Reset virtex chip
"w 0 1"
- On your TTC system: Send Event Counter Reset (optional)
- On your TTC system: Send L1A
- Again, using anc13_control.py:
- Display status
"s"
- Dump event data to a binary file:
"d test.dat"
The status after receiving one or more
L1A should look something like this:
*****AMC13 status*****
Control 0: 03000041
DAQ Link Down
TTC BCNT Error
Control 1: 00100081
Crate fake event at L1A
AMC Link status: 00000001
AMC Enabled List: 00
--No AMC links enabled--
TTC Info:
EvN: 00000002
BcN: 00000880
OrN: 01038203
Bcnt Error: 0000007f
EVB 32-bit Counters:
SDRAM Page No: 00000001
SDRAM Event Ct: 00000390
Unread SDRAM Evts: 00000001
EVB 64-bit Counters:
TTC BC0 err [0044]: 00000000 032f72cd
L1A Ctr [0046]: 00000000 00000002
Run time [0048]: 0000002c 555dc692
Ready time [004a]: 0000002c 555f6516
Tot evs monitored [0056]: 00000000 00000002
AMC Counters:
<---Link 00----->
Total Words [0040]: 00000000 00000e02
Recieved Evts [0052]: 00000000 00000002
Read Evts [0054]: 00000000 00000002
If you write a data file with the
D command, you can dump it
as follows (HCAL data format, sorry!):
$ od -Ax -t x8 test.dat
000000 00000390deadbeef 5100000100900008 "deadbeef" sentinel, 0x390 length. 51... is CDF header EvN=1
000010 00000000000915b0 0010000100000010 AMC13 header stuff
000020 000000000000c701 0000000000000000
000030 0000000000000000 d800800000000001
000040 0007000600058009 000b000a00090008
000050 000f000e000d000c 0013001200110010
000060 0017001600150014 001b001a00190018 Fake HCAL data...
000070 001f001e001d001c 0023002200210020
000080 0027002600250024 002b002a00290028
000090 002f002e002d002c 0033003200310030
0000a0 0037003600350034 003b003a00390038
0000b0 003f003e003d003c 0043004200410040
...
000da0 06b706b606b506b4 06bb06ba06b906b8
000db0 06bf06be06bd06bc 06c306c206c106c0
000dc0 06c706c606c506c4 06cb06ca06c906c8
000dd0 06cf06ce06cd06cc 06d306d206d106d0
000de0 06d706d606d506d4 06db06da06d906d8
000df0 06df06de06dd06dc 06e306e206e106e0
000e00 06e706e606e506e4 06eb06ea06e906e8
000e10 06ef06ee06ed06ec 06f306f206f106f0
000e20 06f706f606f506f4 06fb06fa06f906f8
000e30 541206fe06fd06fc 0000000000000100
000e40 a00001c8be880000 CDF trailer 0xa......
000e48
--
CharlieHill - 10 Aug 2012