MSC Input CSR

Registers

In registers 0x80~0xBF times of last rising and falling edges of each external CE signal are stored. Time encoded in TAI 64-bit Timestamp.

Registers 0xC0~0xFF set crosspoint switching between any input channel to any internal histogram. Register address defines number of internal histogramer (lowest address is for histogram #0, next address - histogram #1, etc). Value of register defines input channel number.

Registers 0x100~17F are for Gate logic LUTs.

Each gate has it own LUT. Number of RegIO words for each LUT depends on the number of external count conditions (N_EXT_CE, Input CSR register 0xF): if N_EXT_CE is 4 of less, then number of RegIO words per LUT is 1, else use equation 2^(N_EXT_CE-4). There are no empty space between LUTs.

Assume that number of external count conditions is N, and in given time moment state of external count conditions is M. Steps to resolve LUT for each gate (LUT offset is known):

  1. determine RegIO word number: (N>4) ? 2^(N-1)-1 : 0

  2. determine exact output bit in word from previous step: M%16

Registers 0x180~1FF are for Count Enable LUTs. Same principle as for Gate LUTs


MSC SDB

MSC Input CSR (last edited 2025-01-15 14:38:09 by Sav)