gaels project meeting
play

GAELS Project Meeting Automatic Data Path Extraction Wei Song - PowerPoint PPT Presentation

GAELS Project Meeting Automatic Data Path Extraction Wei Song 15/11/2013 Advanced Processor Technologies Group The School of Computer Science Content Tool Flow Progress Updated Type Calculation Detailed FSM classification


  1. GAELS Project Meeting Automatic Data Path Extraction Wei Song 15/11/2013 Advanced Processor Technologies Group The School of Computer Science

  2. Content • Tool Flow • Progress – Updated Type Calculation – Detailed FSM classification – Automatic Data Path Extraction – Preliminary Partition Analysis • Future Works • Conclusion Advanced Processor Technologies Group 15/11/2013 2 School of Computer Science

  3. System Partitions FSM BUS FSM FSM FSM A large RTL system can FSM be partitioned into multi RAM sub-design connected by data channels with variable data-rates. Advanced Processor Technologies Group 15/11/2013 3 School of Computer Science

  4. Tool Flow RTL Verilog Cell Library Waveforms Files Timing info Asynchronous Pipeline usage Verilog Synthesizer Async Asynchronous Multiple Interfaces interfaces Verilog Sub-designs Commercial Tools Advanced Processor Technologies Group 15/11/2013 4 School of Computer Science

  5. Flow inside Async Synthesizer 02/2013 FSM 05/2012 09/2012 11/2012 RTL Verilog Extraction Verilog SDFG GALS RTL Verilog Elaborator 10/2013 Parser Generation Partition RTL Verilog Data Path Extraction RTL Verilog Async RTL Verilog Netlist Pipeline Writer Insertion Async Netlist Cell Libs Constraint Constraint Generation Advanced Processor Technologies Group 15/11/2013 5 School of Computer Science

  6. Progress from Last Meeting • Automatic FSM classification – Add more types in SDFG – Automatic identify FSMs, counters and flags. • Automatic data path extraction – Removing control arcs – Trim the SDFG afterwards • Preliminary partition analysis – All data outputs have variable data rate Advanced Processor Technologies Group 15/11/2013 6 School of Computer Science

  7. Signal-Level Data Flow Graph always @(posedge clk or negedge rstn) if(~rstn) state <= R; else state <= state_nxt; always @(state or cnt) // next state if(cnt == 0) case(state) R: state_nxt = YR; YR: state_nxt = G; G: state_nxt = YG; rstn clk default: state_nxt = R; I I I i_port endcase // case (state) else state_nxt = state; O o_port always @(posedge clk or negedge rstn) combi_block if(~rstn) cnt <= 0; else if(cnt == 0) state FF seq_block case(state) cnt FF R: cnt <= 2; reset YR: cnt <= 49; FF clock G: cnt <= 4; default: cnt <= 49; control endcase // case (state) else data cnt <= cnt - 1; state_nxt assign red = state == R ? 1 : 0; O O O assign green = state == G ? 1 : 0; red green yellow assign yellow = (state == YR || state == YG) ? 1 : 0; Advanced Processor Technologies Group 15/11/2013 7 School of Computer Science

  8. Register Relation Graph rstn clk I I rstn clk I I state cnt FF FF FF cnt state_nxt O O O red green yellow FF state O O O red green Advanced Processor Technologies Group 15/11/2013 8 School of Computer Science

  9. Add Extra Arc Types • Old typing systems – Data – Control – Clock; Reset • New typing system – Self-loop; Calculation; Assign; Data* – Compare; Equate; Logic; Address; Control* – Clock; Reset Advanced Processor Technologies Group 15/11/2013 9 School of Computer Science

  10. Recognition Criteria • State machine – Self (equate); Out(equate); In(!data) • Counter – Self(Calculate); Out(equate|compare|logic); In(!data) • Address – Self(default); Out(address); In(!data) • Flag – Self(All); Out(logic); In(!data) • Other – Self(All); Out(control); in(!data) Advanced Processor Technologies Group 15/11/2013 10 School of Computer Science

  11. FSM report • SUMMARY: • In this extraction, 2074 nodes has been scanned, in which 120 nodes are registers. • In total 30 FSM controllers has been found in 101 potential FSM registers. • The extracted FSMs are listed below: • [1] dwb_biu/aborted_r FLAG • [2] dwb_biu/valid_div CNT|FLAG • [3] iwb_biu/aborted_r FLAG • [4] iwb_biu/previous_complete FLAG • [5] iwb_biu/valid_div CNT|FLAG • [6] or1200_cpu/or1200_ctrl/sig_syscall FLAG • [7] or1200_cpu/or1200_ctrl/sig_trap FLAG • [8] or1200_cpu/or1200_except/delayed_iee FLAG • [9] or1200_cpu/or1200_except/ex_dslot FLAG • [10] or1200_cpu/or1200_except/except_type FSM|ADR • [11] or1200_cpu/or1200_except/extend_flush FSM|FLAG • [12] or1200_cpu/or1200_except/state FSM|FLAG • [13] or1200_cpu/or1200_if/saved FLAG • [14] or1200_cpu/or1200_mult_mac/div_free FLAG • [15] or1200_cpu/or1200_operandmuxes/saved_a FLAG • [16] or1200_cpu/or1200_operandmuxes/saved_b FLAG • [17] or1200_dc_top/or1200_dc_fsm/cache_inhibit FLAG Advanced Processor Technologies Group 15/11/2013 11 School of Computer Science

  12. Data Path Extraction RTL RTL RTL Parser Abstract Syntax Tree Signal-Level DFG Remove Control Arcs extraction Data path Graph Trimming Data Paths Advanced Processor Technologies Group 15/11/2013 12 School of Computer Science

  13. Greatest Common Divisor A_P Reset_P Load_P B_P Clock_P I I I I I Reset A Clock Load B A_lessthan_B FF FF A_Hold A_New Done Y Y_P Done_P O O Advanced Processor Technologies Group 15/11/2013 13 School of Computer Science

  14. Remove Control Arcs Reset_P A_P Load_P B_P Clock_P I I I I I Reset A Clock Load B A_P Reset_P Load_P B_P Clock_P I I I I I A_lessthan_B Reset A Clock Load B FF FF A_Hold A_New A_lessthan_B B_Hold FF FF A_Hold A_New Done Y Y_P Done_P O O Done Y Y_P Done_P O O Advanced Processor Technologies Group 15/11/2013 14 School of Computer Science

  15. Trim the SDFG A_P Reset_P Load_P B_P Clock_P I I I I I A_P B_P Reset A Clock Load B I I A B A_lessthan_B B_Hold FF FF A_Hold A_New B_Hold FF FF A_Hold A_New Done Y Y_P Done_P O O Y Y_P O Advanced Processor Technologies Group 15/11/2013 15 School of Computer Science

  16. Permutation Module (SHA-3) in out FF in_P out_P I O round one counter const round out in FF round_in round round_out rconst i rc FF MODULE MODULE Advanced Processor Technologies Group 15/11/2013 16 School of Computer Science

  17. Large Scale Designs Advanced Processor Technologies Group 15/11/2013 17 School of Computer Science

  18. Performance Advanced Processor Technologies Group 15/11/2013 18 School of Computer Science

  19. Partition Detection Through Wire Classify each output port as fixed rate (through wire or pipeline pipeline) or variable rate (variable data, FSM control, pipeline FSM) Variable data A Module with most output ports with variable rate is FSM FSM Control considered a potential partition. FSM FSM Advanced Processor Technologies Group 15/11/2013 19 School of Computer Science

  20. Partition Detection Report pixel_generator (module vga_pgen) with rate 0.470588 < 0.8 : hsync_o 0 [pixel_generator/hsync_o:data-pipeline] cc0_adr_o 0 [through wire] cc1_adr_o 0 [through wire] stat_acmp 1 [pixel_generator/stat_acmp:self-fsm:ctl- fsm(pixel_generator/stat_acmp)] blank_o 0 [pixel_generator/blank_o:data-pipeline] wbm/clut_sw_fifo (module vga_fifo_aw4_dw1) with rate 1 >= 0.8 : aempty 1 [wbm_ack_i_P:data- pipeline][pixel_generator/color_proc/vdat_buffer_rreq:ctl- fsm(pixel_generator/rgb_fifo/nword] full 1 [wbm/clut_sw_fifo/full:ctl- fsm(wbm/stb_o,wbm/clut_sw_fifo/rp,wbm/clut_sw_fifo/wp)] empty 1 [wbm/clut_sw_fifo/empty:ctl- fsm(wbm/stb_o,wbm/clut_sw_fifo/rp,wbm/clut_sw_fifo/wp)] nword 1 [wbm/clut_sw_fifo/nword:ctl-fsm(wbm/stb_o)] afull 1 [wbm_ack_i_P:data- pipeline][pixel_generator/color_proc/vdat_buffer_rreq:ctl- fsm(pixel_generator/rgb_fifo/nword,pixel_generator/color_proc/colcnt] Advanced Processor Technologies Group 15/11/2013 20 School of Computer Science

  21. Future Works • Partition Detection – Rather than evaluate all output ports, evaluate only data output ports. – Replace the pattern detection with data rate estimation (possibly need state space analyses) – Back-annotate data rate to data path graph – Interface recognition (mem, FIFO, handshake, bus, etc) Advanced Processor Technologies Group 15/11/2013 21 School of Computer Science

  22. Conclusion • Utilizing signal-level data flow graph, the sync Verilog synthesizer is able to: – Detect and classify controllers – Detect data paths – Detect potential partitions (preliminary) Advanced Processor Technologies Group 15/11/2013 22 School of Computer Science

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend