120 likes | 288 Views
Hash Sorting for Triplet Matching. Jinyuan Wu, M. Wang For BTeV collaboration Dec. 2002. Hash Sorter. 7. 6. 5. 4. 3. 2. 1. 0. Hash Sorting and Then?. DATA. DATA. Directly send to C algorithm. Send to hardware algorithm and then C algorithm. Hash Sorter. Hash Sorter. DSP.
E N D
Hash Sorting for Triplet Matching Jinyuan Wu, M. Wang For BTeV collaboration Dec. 2002
Hash Sorter 7 6 5 4 3 2 1 0
Hash Sorting and Then? DATA DATA • Directly send to C algorithm. • Send to hardware algorithm and then C algorithm. Hash Sorter Hash Sorter DSP Hardware Triplet Matcher DSP Buffer Manager Buffer Manager
However Hash sorting alone can not do the whole triplet matching job.
Hash Sorting and Feed to C Code • Data are just sorted, no cutting. • Sorted data let C code finds possible match in small number of combinations. DATA Hash Sorter DSP Buffer Manager
Hash Sorting and Feed to Hardware Triplet Matcher • Data are just sorted, no cutting. • Sorted data reduce the functional block array size, so that it will fit in FPGA. DATA Hash Sorter Hardware Triplet Matcher DSP Buffer Manager
Hash Sorting (For Triplet Matching) Triplets sorted by (dx/dz)
Hash Sorter (How) Int. Triplets Ext. Triplets dx
Hash Sorter (Implementation) DOUT DIN A_write DATA RAM B B(DIN) (B,C) Count for DOUT (C+1) C • Large number of bins. • 2 CLK/write. • 1 CLK/read. • Ping-pong structure. COUNT RAM
Results See the “hashT2Tr.pdf” file
Summary • Int. and Ext. triplets are sorted in 800um bins. • < 0.5% matching triplets are beyond 2 neighboring bins. • Feeding to C code: • Factor of 12 combination reduction. (both 132ns and 396ns cases) • Feeding to Hardware Triplet Matcher: • Max. query list size: 16 for 132ns case. (>80 without hash binning) • Max. query list size: 32 for 396ns case. (>200 without hash binning)