David Cussans, Geneva, June 2009 TLU v0.2c David Cussans

Download Report

Transcript David Cussans, Geneva, June 2009 TLU v0.2c David Cussans

TLU v0.2c
David Cussans, Geneva, June 2009
Outline
•
•
•
•
•
Firmware bug-fixes
Firmware enhancements
Hardware enhancements
Plans.
Conclusions.
David Cussans, Geneva, June 2009
Firmware Bug-Fixes
• Long-standing problem with blocktransfer of time-stamps believed
located.
o Symptoms:
 DMA status did not return to zero after a
transfer and the transfer did not take place
correctly.
 Frequent transfer timeouts
 Caveats - firmware works with Perl scripts on
Windows but not TLUController.exe on
Mac/Linux.
David Cussans, Geneva, June 2009
Firmware Enhancements
• AND_MASK , OR_MASK changed. Writing to
these registers now writes into a 4-bit input 1bit output un-clocked LUT.
o Functionality unchanged
• ... but can also write directly into the 16-bits of
the LUT.
o
o
Can construct any trigger combination (e.g. any-3-of-4)
Write into TRIGGER_PATTERN_ADDRESS_0,1
David Cussans, Geneva, June 2009
Firmware Enhancements
• Added an "auxiliary trigger".
Configured by writing into AUX_PATTERN_ADDRESS_0,1
Connected to 32-bit scaler. Read from
REGISTERED_AUX_COUNTER_0..3
o Can be used (for example) to check the efficiency of
individual scintillators.
• Can record which scintillators caused a trigger in the top 4 bits
of the time-stamp. ( set bit-0 of
WRITE_TRIGGER_BITS_MODE_ADDRESS )
o
o
David Cussans/Scott Mandry, NIKHEF, October 2008
Firmware - "NIM Crate"
• Can turn off trigger veto when timestamp buffer fills
o Clear bit-0 of BUFFER_STOP_MODE_ADDRESS
• Can turn off trigger/busy handshake on one or more
DUT
o Clear appropriate bit in
HANDSHAKE_MODE_ADDRESS
• Defaults to "old" behaviour
David Cussans, Geneva, June 2009
Firmware - Timestamps
• Improved precsion of timestamp from one
clock cycle to 1/8 clock cycle
• Working on ability to switch between
48MHz USB clock and an external clock.
• Resetting timestamp now pulses RESET
line on active DUT interfaces.
• Needed for "LHC" sensors.
David Cussans/Scott Mandry, NIKHEF, October 2008
Hardware Updates
• Schematic capture of a "clock board" to fit
inside the TLU almost finished.
• Will provide multiple clock outputs,
generated either from internal crystal or
external reference.
• Output frequency variable over a wide
range using I2C.
David Cussans, Geneva, June2009
Hardware Updates
• Latest TLUs shipped with new supply
board for photo-multiplers.
o
o
o
o
Include adjustable control voltage ( 0V - 1V)
Control by I2C.
4-pin LEMO connectors compatible with "DESY" PMTs.
Easy to upgrade existing TLU v0.2
David Cussans, Geneva, June2009
Future Hardware Updates
• EUDET/Calice clock and control board
now exists.
• Easier to interface to TLU by external
passive adapter than by special board
inside TLU.
David Cussans, Geneva, June 2009
Future Firmware Updates
• Code needs a substantial tidy up
Code for interface hardware (EZ-USB chip) completely
mixed with TLU specific code.
o Factorize to make it easier to add new modules.
o Make it easier to run simulations of TLU specific code –
fewer bugs before release ( probably!)
o This is almost finished ( and is how the DMA transfer bug
was tracked down
o
• Documentation needs to be improved
o
o
o
Substantial update of manual underway
Doxygen being used to document structure.
Have permission to release firmware under GPL
David Cussans/Scott Mandry, NIKHEF, October 2008
Conclusion
• Six TLU-v0.2c constructed. Three more almost
finished.
• Firmware enhanced to allow high-resolution
timestamp and synchronize reset output to
timestamp reset. Hardware being built to
generate 40Mhz clock.
• Firmware for "NIM crate mode" added.
• Improvements to documentation underway.
David Cussans/Scott Mandry, NIKHEF, October 2008