status of dune daq hardware firmware development status
play

Status of DUNE DAQ Hardware/Firmware Development Status David - PowerPoint PPT Presentation

Status of DUNE DAQ Hardware/Firmware Development Status David Cussans DUNE DAQ Meeting 15 th October, 2018 Introduction Concentrating on firmware Agnostic of where it is implemented For TDR firmware will be demonstrated on


  1. Status of DUNE DAQ Hardware/Firmware Development Status David Cussans DUNE DAQ Meeting 15 th October, 2018

  2. Introduction • Concentrating on firmware Agnostic of where it is implemented  • For TDR firmware will be demonstrated on commercial development boards. ZCU102 chosen  • Initially, will use FPGA on Dev board to store data/patterns • Move to external data source Commonality with BNL plans for slice test  2 Presenter Name | Presentation Title

  3. Firmware Development • See minutes, recording at https://indico.fnal.gov/event/18658/ • CERN GitLab area set up: https://gitlab.cern.ch/DUNE-SP-TDR-DAQ/dataflow-firmware  Accessible to all DUNE collaborators (avoiding issues with FNAL  Redmine) Let me know if access problems   Blocks: Framework ( D Newbold , Bristol/RAL )  Filtering, pedestal subtraction ( K Manolopoulos , RAL)  Hit finding ( K Kothekar , Bristol)  Compression ( G Iles , P Dunn , Imperial)   Platform: Porting IPBus reference design to ZCU102 ( K Harder , RAL) 3 Presenter Name | Presentation Title

  4. Framework ( D Newbold )  Changed interface between processing blocks to use an AXI4-Stream based interface.  An example design is now present in the repository that streams data through processing blocks. ( All the blocks do is sum up the samples in each block and output the sum )  Following E-mail discussion about how to handle overflow, it looks like each packet will need a trailer. ( So the structure of each packet will be header,payload,trailer )  Simulation almost works. Hampered by DMN and Alessandro Thea hitting a Modelsim bug.  Todo:  Writing pipelinng stages that will allow the insertion of registers. ( Difficult, due to the hand-shaking ). DMN to tackle  Create empty top level design for synthesis (DMN)  Write down documentation for assumptions about data structures - i.e. each channel should be independent. Packets of data flowing down each channel should be time ordered.  Write and document scripts to load (simulated) ADC data into framework, play it thorough processing blocks and retrieve output (Jim Brooke, et. al.) 4 Presenter Name | Presentation Title

  5. Compression ( G Isles , P Dunne ) Flow Control Flow Control Implemented Packer in KU115 at 320MHz (didn’t try to go faster). Seems 4k deep (12bit) OK, but not tested. 4k deep (12bit) 32bit wide LUT 32bit wide LUT Only 18bits used for Compression block is fairly generic. Can Only 18bits used for encoding replace Fibonacci with another encoding Full? compression scheme if required. Proposal: Sacrifjce top 16 words (e.g. Packer Packer 4095-4080) to provide control words (e.g. overfmow, recovery, back-to-normal- data-fmow, etc). The control words could be followed by a subsequent words to provide info (albeit limited to 11 rather 32bit to 4bit FIFO 32bit to 4bit FIFO than 12bit for obvious reasons) e.g. number of missed samples during overfmow conditjon.

  6. 10-Second Buffer ( E Motuk, UCL ) • Self contained tests starting in hardware AWVALID, WVALID, WLAST, WSTROBE

  7. 10-Second Buffer ( E Motuk, UCL ) • Things to do: • Currently the data packets are sent by toggling a VIO output bit – One packet is sent at each rising transition • Continuous packet sending will be implemented • Currently the read operation flows the write operation – for debugging the correct writing • The read operation will start after a certain time • Flow control signals for this type of operation are already implemented • An additional FIFO will be added to keep track of the write addresses for each packet • The output control block will be fleshed out

  8. F a s t H i t F i n d e r ( K K o t h e h a r , B r i s t o l ) S t a r t f r o m p e d e s t a l - s u b t r a c t e d A D C s a mp l e s , s  i A h i t i s r e c o r d e d w h e n t h e A D C v a l u e g o e s a b o v e p r e - d e fi n e d  t h r e s h o l d a n d l a s t s t i l l i t d r o p s b e l o w t h e t h r e s h o l d .  Wh a t w e i n t e n d t o s t o r e i n s t r i g g e r p r i mi t i v e ? , C D  - A t s t a r t t i me 0  - t e n d t i me f S P  - p e a k t i me i  - p e a k a mp l i t u d e  - s u m o f S o v e r t h e h i t p e r i o d i C  I n t e g r a t e s e v e r a l fi x e d - s i z e w i n d o w s b e f o r e a n d a f t e r p u l s e . Δu Δu t t  C h o o s e w h i c h t o i n c l u d e i n c h a r g e e s t i ma t i o n l a t e r t i me t t t s f  O p t i mi z e s i z e / N u mb e r o f p w i n d o w s w i t h s i mu l a t i o n . f Δu t

  9. S t a t u s A mo d i fi e d w r a p p e r ( I / O , b u ff e r i n g e t c . ) i s a l r e a d y p r e s e n t .  V e r s i o n 1 o f s i mu l a t i o n i s r e a d y ( q u e s t a - s i m)  T h e A l g o r i t h m h a s n o w b e e n s y n t h e s i z e d i n V i v a d o a n d r e a d y f o r r e v i e w a n d  f u r t h e r i t e r a t i o n s .

  10. T e s t B e n c h O u t p u t S i mu l a t i o n o u t p u t o f H F A , t e s t e d w i t h a n e x a mp l e w a v e f o r m fi l e  c o n s i s t i n g i n c r e a s i n g a d c v a l u e s t o i mi t a t e a c t u a l w a v e f o r m, H i t s t a r t t i me = 1 5 H i t e n d t i me = 2 5 H i t p e a k = 5 6 7 H i t p e a k t i me = 2 2 H i t s u m = 5 6 3 3 O u t p u t r e a d y = 1 

  11. S y n t h e s i s o n V i v a d o 2 0 1 7 . 2 S y n t h e s i z e d t h e c o d e o n V i v a d o 2 0 1 7 . 2 , t a r g e t b o a r d K C U 1 0 5  R T L s c h e ma t i c ( e l a b o r a t e d d e s i g n ) 

  12. U t i l i z a t i o n r e p o r t

  13. R e s o u r c e E s t i ma t i o n I t i s c l e a r f r o m i n i t i a l w o r k t h a t , t h e c u r r e n t a l g o r i t h m t a k e s a v e r y  l o w r e s o u r c e s . F o r 9 6 0 c o l l e c t i o n p l a n e w i r e s a s s u mi n g t h e mu l t i p l e x i n g o f 1 0 0 i s  t o 1 , t h e L U T ’ s u t i l i z e d w i l l b e , 5 1 4 0 o u t o f 2 4 2 4 0 0 a v a i l a b l e . T h i s p o r t u t i l i z a t i o n i s c u r r e n t l y h i g h a s a l l t h e i / p a n d o / p p o r t s  a r e i mp l e me n t e d a s 3 2 b i t i n t e g e r ’ s . I f mu l t i p l e x i n g w e h a v e t o a l s o c h e c k t h e me mo r y u t i l i z a t i o n .  S a v i n g s t a t e b e t w e e n d a t a p a c k e t s n o t y e t i mp l e me n t e d . Wi l l  i n c r e a s e me mo r y u s a g e . N . B . T h e s e a r e v e r y p r i ma r y e s t i ma t e s ! 

  14. Summary and “To Do”  Aiming to have end-to-end processing firmware chain in next month or so.  Hackton at RAL on 24 th Oct ● Attempt to assemble a chain in hardware 14 Presenter Name | Presentation Title

Recommend


More recommend