bu_cms_history/DCC_TTS_output_tests

SiteMap (Historical BU CMS wiki main page)

Testing DCC firmware v2c13 for sTTS output behavior. Add some new features to DCCdiagnose to support more convenient scripting:

Use the following script:

  #
  # test new EB stop feature in v13
  #
  dcc/init 0 1
  pci/write log3_fmem 4 0x4000
  dcc/start
  dcc/stat
  lrb/stat 1
  sleep 0.5
  # 64 events should stop event builder
  ttc/l1a 0x40
  lrb/stat 1
  dcc/stat
  # 10 more events should sit in SDRAM buffer
  ttc/l1a 10
  lrb/stat 1
  dcc/stat
  # 86 more events should turn on OFW
  ttc/l1a 86
  lrb/stat 1
  dcc/stat
  # try 15 more events
  ttc/l1a 15
  lrb/stat 1
  dcc/stat
  q

Final status looks like this:

  >Matched lrb/status
  mip1_conf 40
 003e0263 44
 b0200007
  Chan Empty Full Blocks Header CERR UERR IDER -WORD- -NBLK-
   0     Yes   No     No     No 0000 0000 0000 000000 000000
   1     Yes   No     No     No 0000 0000 0000 0079ae 0000af
   2     Yes   No     No     No 0000 0000 0000 0079ae 0000af
  >Matched dcc/status
  0000 0000a000
: TTC_err DCC_err
  TTS: 1001 RDY OFW
    TTCrx OVFL
    DCC nRDY
  0004 2c134001
:  run mode
    EB stop on MB full
  0008 00000000
 (spy prescale)  0018 001c9090
 (sych ctrl)  0080 00000000
 (page) 0000017e
 (mon words)
  0088 35103b10
 (ttc)   00000000
 (slink)
  HTR mis  004f 004f 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
  HTR blk  00af 00af 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000
                RDY on: 00000000 0f3645e5                BSY on: 00000000 00000000
                OFW on: 00000000 00153b00                SYN on: 00000000 00000000
                RUN on: 00000000 0f4b916d
              L1A Trig: 000000af          Events Built: 0000003f
          SLink Events: 00000000            VME Events: 0000003f
              Cal Trig: 00000000       CT EvN Mismatch: 00000000       CT BcN Mismatch: 00000000
       L1 EvN Mismatch: 0000004f       L1 BcN Mismatch: 0000004f       Bunch count err: 00000000
  >Matched */quit

This is a total of 0xaf triggers. If we send one fewer, then the TTS OFW does not come on. This is 128 triggers after the EB stops. I would expect a smaller number (i.e. 96).