680 likes | 885 Views
High-level Synthesis and System Synthesis. Camposano, J. Hofstede, Knapp, MacMillen Lin. SOURCES- Mark Manwaring Kia Bazargan Giovanni De Micheli Gupta Youn-Long Lin. Why the level of automation must go up and up?. What Went Wrong with early approaches to design automation ?.
E N D
High-level Synthesis and System Synthesis • Camposano, • J. Hofstede, • Knapp, • MacMillenLin SOURCES- Mark Manwaring Kia Bazargan Giovanni De Micheli Gupta Youn-Long Lin
What Went Wrong with early approaches to design automation ? • Too much emphasis on incremental work on algorithms and point tools • Unrealistic assumption on component capability, architectures, timing, etc • Lack of quality-measurement from the low level • Too many promises on fully automated system (silicon compiler??)
Example of a Silicon Compiler System Initial specification
VLSI Design Tools • Design Capturing/Entry • Analysis and Characterization • Synthesis/Optimization • Physical (Floor planning, Placement, Routing) • Logic (FSM, Retiming, Sizing, DFT) • High Level(RTL, Behavioral) • Management
Specify and ??? Describe and Synthesize Design Methodology Progress Capture and Simulate
Why not Synthesis? Why Synthesis? Productivity Performance Loss Correctness Unsynthesizability Re-Targetability Inertial
Structural Behavioral Block Algorithm FSM RTL Boolean Gate X’tor GDSII Placement Y-Chart Dan D Gajski Floorplan Physical
Structural Behavioral Block Algorithm FSM RTL Boolean Gate X’tor GDSII Placement Layout Synthesis Floorplan Physical
Structural Behavioral Block Algorithm FSM RTL Boolean Gate X’tor GDSII Placement Logic Synthesis Floorplan Physical
Structural Behavioral Block Algorithm FSM RTL Boolean Gate X’tor GDSII Placement High-Level Synthesis Floorplan Physical
Target Architectures • Bus-based • Multiplexer-based • Register file • Pipelined • RISC, VLIW • Interface Protocol
Goal of synthesis for future systems From Behavioral specification at ‘System Level’(Algorithms) To Structural implementation at ‘Register Transfer Level’ of Data path (ALU’s, REG’s, MUX’s) and Controller • Generally restricted to a single process • Generally data path is optimized; controller is by-product
In Camposano Behavioral Register-Transfer (RTL) Logic Our Abstraction levels System Register Logic Levels of Abstraction
Abstraction levels Level Behavior Structure Synthesisstep System High-level Logic Physical
Intermediate Representation * * + Data Flow Graph Control Flow Graph
What are possible levels of synthesis? What are possible styles? How to automate big tasks?
Variants of simple FSMD architectures Controlling /activation pulses control Data Path Controlling /activation pulses control Data Path Status signals
Variants of simple FSMD architectures Controlling /activation pulses Data Path control Instructions Status signals
Interactive FSMDs FSM FSM FSM Data Path Data Path Data Path FSM with Data Path (FSMD)
Details of control signals Register; a) RTL level b) with control signal details • controls: • Reg_EO Enable Output • Reg_EI Enable Input • RegFile_EI RegFile_SI <p>
Control of register files • control signals: • RegFile_EO1 RegFile_SO1 <p> • RegFile_EO2 RegFile_SO2 <p> • RegFile_EI RegFile_SI <p> Register; a) RTL level b) with control signal details
The role of tri-state signals Scheduling and allocation problems are similar Tri-state signals in buses instead of multiplexing
Communication with a memory External address-bus External data-bus Internal bus
Pipeline Design Issues • Pipelined processor design • Pipeline is an implementation issue. • A behavioral representation should not specify the pipeline. • Most processor instruction sets are conceived with an implementation in mind. • The behavior is defined to fit an implementation model.
Semantics of variables • Variables are implemented in hardware by: • Registers. • Wires. • The hardware can store information or not. • Cases: • Combinational circuits. • Sequential circuits.
Semantics of variables Semantics of variables • Combinational circuits. • Multiple-assignment to a variable. • Conflict resolution. • Oring. • Last assignment.
Semantics of variables Semantics of variables • Sequential circuits. • Multiple-assignment to a variable. • Variable retains its value until reassigned. • Problem: • Variable propagation and observability.
Example Semantics of variables • Multiple reassignments: • x= 0 ; x = 1 ; x = 0 ; • Interpretations: • Each assignment takes a cycle. --> pulse. • x assumes value 0. • x assumes value 0 after a short glitch.
Timing semantics Semantics of variables • Most procedural HDLs specify a partial orderamong operations. • What is the timing of an operation? • A posteriori model: • Delay annotation. • A priori model: • Timing constraints. • Synthesis policies.
Timing semantics(event-driven semantics) • Digital synchronous implementation. • An operation is triggered by some event: • If the inputs to an operation change --> the operation is re-evaluated. • Used by simulators for efficiency reasons.
Synthesis policyfor VHDL and Verilog • Operations are synchronized to a clock by using a wait(or @) command. • Waitand @ statements delimit clock boundaries. • Clock is a parameter of the model: • model is updated at each clock cycle.
Verilog examplebehavior of sequential logic circuit module DIFFEQ (x, y, u , dx, a, clock, start); input [7:0] a, dx; inout [7:0] x, y, u; input clock, start; reg [7:0] xl, ul, yl; always begin wait ( start); while ( x < a ) begin xl = x + dx; ul = u - (3 * x * u * dx) - (3 * y * dx); yl = y + (u * dx); @(posedge clock); x = xl; u = ul ; y = yl; end endmodule
Abstract models • Models based on graphs. • Useful for: • Machine-level processing. • Reasoning about properties. • Derived from language models by compilation.
Abstract modelsExamples • Netlists: • Structural views. • Logic networks • Mixed structural/behavioral views. • State diagrams • Behavioral views of sequential logic models. • Dataflow and sequencing graphs. • Abstraction of behavioral models.
Data flow graphs • Behavioral views of architectural models. • Useful to represent data-paths. • Graph: • Vertices = operations. • Edges = dependencies.
Dataflow graph Example xl = x + dx ul = u - (3 * x * u * dx) - (3 * y * dx) yl = y + u * dx c = xl < a
Example of Data Flow Graph continued xl = x + dx ul = u - (3 * x * u * dx) - (3 * y * dx) yl = y + u * dx c = xl < a