Difference between revisions of "JLab Module Configuration in CODA"

From GlueXWiki
Jump to: navigation, search
Line 9: Line 9:
 
|-
 
|-
 
| '''Download'''
 
| '''Download'''
|  
+
| <!-- TS crate -->
 
'''TS''':  
 
'''TS''':  
  tsInit() - Sets user defaults
+
  tsInit()  
 +
- Sets user defaults
 
  tsSetTriggerSource(..)
 
  tsSetTriggerSource(..)
  tsSet*Input(..) - Enables specific inputs
+
  tsSet*Input(..)  
 +
- Enables specific inputs
 
  tsSetSyncEventInterval(..)
 
  tsSetSyncEventInterval(..)
 
  tsSetBlockLevel(..)
 
  tsSetBlockLevel(..)
Line 21: Line 23:
 
  tsSetBlockBufferLevel(..)
 
  tsSetBlockBufferLevel(..)
 
'''TD''':
 
'''TD''':
  tdInit() - Sets user defaults.   
+
  tdInit()  
 +
- Sets user defaults.   
 
  - tdAutoAlignSync()  
 
  - tdAutoAlignSync()  
  - - Resets IODELAY
+
  - - Resets IODELAY (bit 14)
  - - Auto Align P0 Sync
+
  - - Auto Align P0 Sync (bit 11)
 
  tdGSetBlockLevel(..)
 
  tdGSetBlockLevel(..)
 
  tdGSetBlockBufferLevel(..)
 
  tdGSetBlockBufferLevel(..)
Line 33: Line 36:
 
'''TS''':
 
'''TS''':
 
  tsClockReset()
 
  tsClockReset()
 +
- Clock250 Resync (0x22)
 
  tsTrigLinkReset()
 
  tsTrigLinkReset()
 +
- Disables trigger link (twice) (0x55), Enables trigger link (0x77)
 
|-
 
|-
 
| '''Prestart'''
 
| '''Prestart'''
 +
| <!-- TS crate -->
 +
'''TS:'''
 +
tsSyncReset()
 +
- SyncReset (0xDD)
 +
tsIntConnect(...)
 +
- Connects trigger routine as the interrupt/polling service routine.
 +
- Sets interrupt level and vector.
 
|-
 
|-
 
| '''Go'''
 
| '''Go'''
 +
| <!-- TS crate -->
 +
'''TS:'''
 +
tsIntEnable(..)
 +
- Enables interrupts or starts polling thread.
 +
- Enables trigger source
 
|-
 
|-
 
| '''End'''
 
| '''End'''
 +
| <!-- TS crate -->
 +
'''TS:'''
 +
tsDisableTriggerSource(1)
 +
- Disables all trigger sources
 +
tsIntDisable()
 +
tsIntDisconnect()
 
|-
 
|-
 
| '''Pre-Download''' (after '''Reset''', executed prior to '''Download''')
 
| '''Pre-Download''' (after '''Reset''', executed prior to '''Download''')
 
|-
 
|-
 
|}
 
|}

Revision as of 09:33, 9 May 2013

In this wiki page, we attempt to outline how JLab Modules are configured and run within each CODA transition and state.

The following presents a table of the evolving global trigger setting in the EEL Electronics Lab.

CODA Transition Trigger Supervisor Crate Global Trigger Crate Payload Crate
Download

TS:

tsInit() 
- Sets user defaults
tsSetTriggerSource(..)
tsSet*Input(..) 
- Enables specific inputs
tsSetSyncEventInterval(..)
tsSetBlockLevel(..)
tsLoadTriggerTable()
tsSetTriggerHoldoff(..)
tsSetSyncDelayWidth(..)
tsSetBlockBufferLevel(..)

TD:

tdInit() 
- Sets user defaults.  
- tdAutoAlignSync() 
- - Resets IODELAY (bit 14)
- - Auto Align P0 Sync (bit 11)
tdGSetBlockLevel(..)
tdGSetBlockBufferLevel(..)
tdAddSlave(..)

SD:

sdInit()
sdSetActiveVmeSlots(..)

TS:

tsClockReset()
- Clock250 Resync (0x22)
tsTrigLinkReset()
- Disables trigger link (twice) (0x55), Enables trigger link (0x77)
Prestart

TS:

tsSyncReset()
- SyncReset (0xDD)
tsIntConnect(...)
- Connects trigger routine as the interrupt/polling service routine.
- Sets interrupt level and vector.
Go

TS:

tsIntEnable(..)
- Enables interrupts or starts polling thread.
- Enables trigger source
End

TS:

tsDisableTriggerSource(1)
- Disables all trigger sources
tsIntDisable()
tsIntDisconnect()
Pre-Download (after Reset, executed prior to Download)