// Svn $Id: patch_single_rob3a.tcs 5815 2019-12-30 14:37:32Z angelov $: // Patch to be applied when using the standard configuration with a single ROB 3A only. include src/common/scsn_ids.tcs const ROB_ONE_COL = 0; // 1 when only MCM00..03 + BM + HCM, 0 for full ROB // own -> 3, used only in single ROB configuration const niro_hm = 0x0001fffc; const NTRO_DB = 0xF0F9; const NRRO_DB = 0xF0FA; write EBD, 0; restrict ROB_ONE_COL const niro_bm = 0x0003fffa; // only port 2 write chip_bm, NRRO, niro_bm; write chip_bm, NTRO, niro_bm; write chip_bm, NTRO_DB, niro_bm; write chip_bm, NRRO_DB, niro_bm; restrict 1 write chip_hm4, NRRO, niro_hm; write chip_hm4, NTRO, niro_hm; write chip_hm4, NTRO_DB, niro_hm; write chip_hm4, NRRO_DB, niro_hm; // set the auto-accept-flag, so a single pretrigger will start the whole sequence const smmode_delta = 6; // 4 bit, window for L0A, L1A const LTIME0 = 48-(smmode_delta >> 1); // 14-bit, used for L0A/R const LTIME1 = 0x0390+000; // 14-bit, used to start the raw data readout const LTIME2 = 0x03a8-(smmode_delta >> 1); // 14-bit, used for L1A/R write SML0, LTIME0 | (1 << 14); // the time for L0 accept write SML2, LTIME2 | (0 << 14); // the actual L1 time write SML1, LTIME1 | (1 << 14); // the time to start the raw data readout, a little bit later