t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t...

19
www.ict.tuwien.ac.at Institute of Computer Technology /99 Example-driven Interconnect Synthesis for Heterogeneous Coarse-Grain Reconfigurable Logic Clifford Wolf, Johann Glaser , Florian Schupfer, Jan Haase, Christoph Grimm

Transcript of t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t...

Page 1: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology /99

Example-driven Interconnect Synthesis for Heterogeneous Coarse-Grain

Reconfigurable Logic

Clifford Wolf, Johann Glaser,Florian Schupfer, Jan Haase, Christoph Grimm

Page 2: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 2/19

Overview

Ultra-Low-Power Electronics Reconfigurable Modules

• Structure

• TR-FSM

• Design of Reconfigurable Modules

Interconnect Generation• Interconnect Topology

• Optimization Algorithm

• Evaluation Results

Full Design Flow Summary

Page 3: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 3/19

Ultra-Low-Power Electronics

Application: WSN Node in a SoC CPU as Master Sleep, Wakeup Offload-Engines Multiple Modules Reconfigurable

• Various Applications

• Adapt to Environment

WSN Node

SoC

CPU RF

GPIOMem

RTC ADC

Sens

or

Power Mgmt.

SoC

WSN Node

Power Mgmt.

ADC

GPIO

RF

Mem

CPU

RTC

Sens

or

Inte

rfac

eSe

nsor

Comm.Intf.

Page 4: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 4/19

Reconfigurable Logic

Development• Pre-Silicon vs. Post-Silicon

Fine-Grain vs. Coarse-Grain Heterogeneous Domain Specific

• Application Class

Reconfigurable Circuit

Manufacturing

Application 1

Bitstream

Application n

Bitstream

Pre-Silicon

Post-Silicon

Page 5: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 5/19

Structure

Interface FSM+D

➔ Control, Data, Arithmetic

Cell Types• FSM

• Memory

• Add, Subtract, |A-B|, ...

Reconfigurable• Routing

• Cells

ResetClk

Intr

Bus

Config

Param

FSM

|A-B| >P

I/O

Page 6: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 6/19

Transition-based Reconfigurable FSM

ISM

OPR

NSR

ISM

ISMnT1

nSIn

nTm

nT2

nO

Sel

ect

Next StateSR

Clk

En

En

En

IPG

IPG

IPG

SSG

SSG

SSG

OPR

NSR

OPR

NSR

Inputs State

Outputs

Reconfigurable Cell Focus on Transition Transition Row

• SSG: State Selection Gate

• ISM: Input Switching Matrix

• IPG: Input Pattern Gate

• NSR: Next State Register

VHDL Silicon-proven

Page 7: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 7/19

Design

Pre-Silicon Phase Define Application Class Specify Example Applications “Common Denominator” Pre-Silicon limits

Post-Silicon Design Space Future Applications

• Might need more Resources

➔ Oversizing• Additional Cell Instances

• Allow more Connections

Application Class

ReconfigurableLogic

App 1 App 2 App 3

Page 8: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 8/19

Connection Topology

Connection Types• e.g. Bit, Byte, Word

Requirements• Random Connections

• Simple Characterization

• Allow Optimization

• Limit Optimization

• Oversizing

• Synthesizable

Tree Topology

Parallel Trees• All Ports in all Trees

• Alternate Position

• Routing in any Tree

C C C C C C C C

Switch Switch Switch

Switch

Page 9: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 9/19

InterSynth: Overview

Post-Silicon• Input

− Internal Representation

− Netlist

• Output− Configuration Bitstream

Automatic Interconnect Generation and Optimization

Pre-Silicon• Input

− Example Netlists

− Cell Types

− Connection Types

• Output− Synthesizable RTL Code

− Configuration Bitstreams

− Static Timing Analysis Rules

− LaTeX TikZ Image

− Internal Representation

Page 10: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19

InterSynth: Algorithm

Degrees of Freedom• Number of Cells per Type

• Interconnect Resources

• Mapping of Cells in Netlist (“Nodes”) to Physical Cells

• Placement of Physical Cells in Interconnect Tree

Optimization Steps• Optimize Cell Placement

• Node-to-Cell Mapping

• Repeat Until no Further

Improvement

Optimization AlgorithmModified Kernighan-Lin algorithm

Optimization GoalMinimize Interconnect Resources

Page 11: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 11/19

Digital Filters Application Class

• Simple Digital Filters

• Cell Types− Adders

− Scalers

− Delays

• Netlists for Pre-Silicon− biquad-df2

− fir4-df1

− fir4-df2

• Extra Netlist for Post-Silicon− biquad-df1

• 2 Parallel Interconnect Trees

Page 12: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 12/19

Digital Filters Example

Post-Silicon Netlist: biquad-df1

Page 13: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 13/19

Digital Filters Example

Higher Order Filters• Combine two Stages

• 16 different Netlists

• Pre-Silicon: 2-4 Examples enough

Page 14: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 14/19

Full Design Flow

Pre-Silicon Phase After InterSynth

• Synthesizable HDL− Instantiate Cells

− Reconfigurable Routing

• SoC Integration

• Synthesis

• Place and Route

• Chip

Input of InterSynth• Example Netlists

• Cell Library P&R

Synthesis

InterSynth

Net-list 1

Net-list 2 Cell

Library

App 1 App 2 App 3

Net-list 3

SoC

Page 15: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 15/19

Full Design Flow

Specification• Easy to translate to netlist

• No new type of description

• Verifiable➔ VHDL, Verilog

Special Synthesis• Coarse Grain

• Identify Cells

• FSM Extraction

• Bitstream Generation

P&R

Synthesis

InterSynth

CellLibrary

App 1 App 2 App 3

SoC

Net-list 1

Net-list 2

Net-list 3

Page 16: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 16/19

yosys

Yosys Open SYnthesis Suite Extensible RTL Synthesis Verilog (VHDL will follow) Coarse-grain and Fine-grain Focus on easy extensibility

• Preserve HDL Information

• Structure− Frontend

− Multiple Passes

− Backend

Currently under development

Page 17: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 17/19

yosys Abstract HDL Constructs RTLIL

• RTL Intermediate Language

• Simple Internal Representation

• Modified by Synthesis Passes

Passes• Transformation of

High-Level Constructs toLow-Level Constructs

• Optimization

• Coarse-Grain Mapping

Verilog HDL Code

Frontend

AST Representation

AST Synthesis

RTLIL Representation

Backend

Output Netlist

Passes

Page 18: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 18/19

Full Design Flow

Example Applications Coarse Grain Synthesis Cell Library Verification

• Simulation

• Equivalence Checking

• Wrapper

• Configuration

Pre-Silicon Post-Silicon P&R

Synthesis

InterSynth

Net-list 1

Net-list 2 Cell

Library

App 1 App 2 App 3

Net-list 3

SoC

yosys→ Coarse-Grain Mapping

EC

Sim

Sim

Sim

Sim

Sim

Page 19: t a c w Example-driven Interconnect Synthesis for ... · w w w. i c t. t u w i e n. a c. a t Institute of Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 10/19 InterSynth:

ww

w.ic

t.tu

wie

n.a

c.at

Institute of

Computer Technology Wolf, Glaser, Schupfer, Haase, Grimm 19/19

Summary

Ultra-Low-Power Electronics CPU Offload-Engines Reconfigurable Modules Interconnect Generation Coarse-Grain Synthesis Full Design Flow

Future Work• yosys VHDL Frontend

• More on Coarse-Grain Synthesis