40 likes | 169 Views
AMUX1. AMUX2. AMUXn n<=15. GTBterm. SHIP Readout Software. ADC. ADC. ADC. ADC. ADC. ADC. ADC. ADC. ADC. ADC. ADC. ADC. MBS. SAM3. Triggerbus. GTB1. GTB. Trigger. 3 parts: MBS readout function ( N. Kurz) SAM readout software AMUX readout software.
E N D
AMUX1 AMUX2 AMUXn n<=15 GTBterm SHIP Readout Software ADC ADC ADC ADC ADC ADC ADC ADC ADC ADC ADC ADC MBS SAM3 Triggerbus GTB1 GTB Trigger • 3 parts: • MBS readout function ( N. Kurz) • SAM readout software • AMUX readout software DVEE Palaver 26.4.05
System initialization • MBS: (sta acq command) • reset of SAM3 • loading of configuration data/AMUX program to SAM3 VME memory • loading and starting of SAM3 program • SAM3: • reset GTB • address distribution of AMUX ( any arbitrary order possible) • loading of configuration data and AMUX program to internal memory of AMUX DSPs • starting of AMUX DSPs • setting of GO bit on trigger bus DVEE Palaver 26.4.05
AMUX software • interrupt driven • Event queue , 400 Events • selectable coincidence/ conversion times • data channels can be enabled/disabled by configuration file • 1 Hz Sync Trigger to ensure Event synchronisation, used also for scaler readout adc-control HW ADC Trigger DSP adc0..3 HW Sync Trigger CPU Intterrupts HW Token In Event buffer 400 Timer Overflow *scaler SW ADC Trigger *readout with sync event 64kB internal memory SW Sync Trigger patternunit Event buffer 4 display DSP timer 3 x 16bit Event buffer 3 48bit timer 3 x 16bit/50Hz Event buffer 2 coinc/conv time 25MHz (bei 100MHz DSP) Event buffer 1 macro pulse counter Token in GTB-control Configuration data Event # Token out fast timer 1Mhz Program to GTB GTBoutput DVEE Palaver 26.4.05 reset with macro pulse
buf8 buf7 AMUX program buf6 buf5 buf4 AMUX config data buf3 buf2 buf1 Data buffer SAM3 software • start and initialization of AMUXes • GTB readout interrupt driven • 8 Event buffers in GTBRAM • DMA for data movement • handshake protocol with MBS GTB memory 16bit VME memory 32bit DSP Internal DSP memory 16bit DMA address pointer to MBS 32bit DMA Token out GTB control Token in Trigger to VME trigger module Token input interrupt DVEE Palaver 26.4.05