Actions![]() |
---|
Initialize AMC13 |
Read Out Data |
Send Data over the DAQLink |
Send Local Triggers |
Update Firmware |
cd ~/amc13_mcs wget http://physics.bu.edu/~wusx/download/AMC13/AMC13T1v0x0017_6vlx130t.mcs
cd ~/amc13_mcs AMC13Tool.exe
Pick an action (h for menu): pv Current Virtex firmware version: 0x14 1) AMC13T1v0x000f_6vlx130t.mcs 2) AMC13T1v0x0010_6vlx130t.mcs 3) AMC13T1v0x0012_6vlx130t.mcs 4) AMC13T1v0x0013_6v130t.mcs 5) AMC13T1v0x0014_6vlx130t.mcs 6) **AMC13T1v0x0017_6vlx130t.mcs** Select desired MCS file. Hit <CR> to select best highlighted option Type '1-6' to select or '0' for menu:
Current Virtex Firmware Version
is not already the latest! If it is, then your firmware does not need to be updated; type '0'
to return to the main menu
<CR>
to select the highlighted file, which is the latest-version firmware file found in the current directory ./AMC13T1v0x0017_6vlx130t.mcs WARNING: you are about to reprogram flash memory. Are you sure? (y)
'y'
to program the flash or hit any other key to quit flash programming
Flash successfully programmed and verified. Load the new flash memory to the chips to complete firmware update
Pick an action (h for menu): ps
Pick an action (h for menu): L WARNING: you are about to reconfigure both spartan and virtex from flash memory. Are you sure? (y) y Wait 10 seconds to ensure the reconfiguration's completion: 0 Spartan and Virtex have been reconfigured from flash
Pick an action (h for menu): fv Virtex Firmware Version: 0x17 Spartan Firmware Version: 0xb
Pick an action (h for menu): rg *** Both chips have been issued a reset *** Pick an action (h for menu): rc *** Virtex Counters have been issued a reset ***
'i'
followed by the list of inputs to be enabled and a set of desired initialization conditions (which are specified here). Pick an action (h for menu): i 4 10 b Enabling AMC inputs from list: 4, 10 Link status: 04100410 Stop EvB when Mon Buf Full 'CONTROL1': 00174001
Pick an action (h for menu): st *****AMC13 Status***** Status display detail level: 1 Control 0: 0300000b DAQ Link Down DAQ Link Almost Full Monitor Buffer Empty Control 1: 00174001 MonBuff full stops EVB Run Mode AMC Link Status: 04100410 AMC Enabled Inputs: 04, 10 AMC Input links locked: 04, 10 AMC Port Status: 0be90000 --All AMC Link Versions Correct-- Unsynced AMC Ports: 00, 03, 05, 06, 07, 08, 09, 11 EVB Counters: LSCDAQ status [001b]: 000031ac Run time [0048]: 00000000 04307312 Ready time [004a]: 00000000 0430ab94 Busy time [004c]: 00000000 00000001 L1A ovfl warn time [0050]: 00000000 00000001 AMC Counters: <---Link 04-----> <---Link 10-----> AMC Ctr ACK [000e]: 00000000 00000860 00000000 00000861 Resend [004a]: 00000000 00000001 00000000 00000001 Ctr Accept [004e]: 00000000 0000086b 00000000 0000086c AMC13 ACK [0050]: 00000000 00000001 00000000 00000001
Pick an action (h for menu): en 0-11 L
Pick an action (h for menu): en 0-11 T L
Pick an action (h for menu): tsp 0x100As you can see, 0x100 has been written to register 0x1c, which controls OrN trigger spacing
Pick an action (h for menu): lt eYou should now see the AMC13 L1A counter (register 0x46) incrementing
Pick an action (h for menu): lt dThe AMC13 L1A counter should now stop incrementing
Pick an action (h for menu): lt 100
'd'
flag (in addition to other desired init flags) to enable the DAQ link. For example: Pick an action (h for menu): en 0-11 f t l d Enabling AMC inputs from list: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 Link status: 04100fff Enable DAQ Link Enable Fake Event Generator Enable Local TTC Input Signal Enable Local L1A generation 'CONTROL1': 00208187
Pick an action (h for menu): en No AMC inputs specified. No AMC links will be enabled. Link status: 00000000 Pick an action (h for menu): de DAQ Link Enabled
Pick an action (h for menu): dsv e Saving incoming DAQ data to SDRAM
Pick an action (h for menu): lt 100
DAQLSC Counters
on the sending AMC13 module. Make sure the Events
sent equals the number of L1As generated Pick an action (h for menu): lst ***AMC13 SFP Status*** [...] DAQLSC Counters: ACK [0010]: 000002bd Packets Seen [0011]: 000002bc Events [0013]: 00000064 Words [0014]: 0004bc1c [...]
DAQLDC Counters
match the sender's LSC Counters Pick an action (h for menu): lst ***AMC13 SFP Status*** [...] DAQLDC Counters: Words [0090]: 0004bc1c Control Counter [0091]: 000000c8 Events [0092]: 00000064 Words Received [0093]: 0004bc1c Controls Received [0094]: 000000c8 Events Received [0095]: 00000064 ACK Counter [0099]: 000002be Valid Packets [009a]: 000002bd Total Packets [009b]: 00000252 [...]
Pick an action (h for menu): st *****AMC13 Status***** Status display detail level: 1 Control 0: 03000003 DAQ Link Down DAQ Link Almost Full Control 1: 00174001 MonBuff full stops EVB Run Mode AMC Link Status: 04100410 AMC Enabled Inputs: 04, 10 AMC Input links locked: 04, 10 AMC Port Status: 0be90000 --All AMC Link Versions Correct-- Unsynced AMC Ports: 00, 03, 05, 06, 07, 08, 09, 11 EVB Counters: SDRAM Word Ct [000d]: 00000086 Unread SDRAM Evts [000e]: 00000064 LSCDAQ status [001b]: 0000c1ac L1A Ctr [0046]: 00000000 00000064 Run time [0048]: 00000010 78f86712 Ready time [004a]: 00000010 78f8af94 Busy time [004c]: 00000000 00000001 L1A ovfl warn time [0050]: 00000000 00000001 Tot evs monitored [0056]: 00000000 00000064 AMC Counters: <---Link 04-----> <---Link 10-----> AMC Accept [0000]: 00000000 00000064 00000000 00000064 AMC ACK [0002]: 00000000 00000064 00000000 00000064 AMC EvN Mismatch [0006]: 00000000 00000064 00000000 00000064 AMC OrN Mismatch [0008]: 00000000 00000064 00000000 00000064 AMC BcN Mismatch [000a]: 00000000 0000005f 00000000 0000004d AMC Received Ev [000c]: 00000000 00000064 00000000 00000064 AMC Ctr ACK [000e]: 00000000 0020cf2a 00000000 0020cf26 AMC Ev Buf near full time [0016]: 00000000 00003d18 00000000 00003d38 Total Words [0040]: 00000000 00002ee0 00000000 00002ee0 Resend [004a]: 00000000 00000001 00000000 00000001 AMC13 Accept [004c]: 00000000 00000064 00000000 00000064 Ctr Accept [004e]: 00000000 0020cf36 00000000 0020cf32 AMC13 ACK [0050]: 00000000 00000065 00000000 00000065 Received Evts [0052]: 00000000 00000064 00000000 00000064 Read Evts [0054]: 00000000 00000064 00000000 00000064
'df'
command (whose specifics can be found here): Pick an action (h for menu): df test.dat Number of events to be dumped not specified Starting to dump 2048 events to file test.dat 2000 events to go, current size= 134 Wrote 100 to file 'test.dat'
'df'
command also offers other kinds of file dumps, which are specified here