Introduction to cosynthesis Rabi Mahapatra CSCE617

Slides:



Advertisements
Similar presentations
Hardware/ Software Partitioning 2011 年 12 月 09 日 Peter Marwedel TU Dortmund, Informatik 12 Germany Graphics: © Alexandra Nolte, Gesine Marwedel, 2003 These.
Advertisements

Sumitha Ajith Saicharan Bandarupalli Mahesh Borgaonkar.
Give qualifications of instructors: DAP
1/1/ /e/e eindhoven university of technology Microprocessor Design Course 5Z008 Dr.ir. A.C. (Ad) Verschueren Eindhoven University of Technology Section.
CS 151 Digital Systems Design Lecture 37 Register Transfer Level
Term Project Overview Yong Wang. Introduction Goal –familiarize with the design and implementation of a simple pipelined RISC processor What to do –Build.
Mahapatra-Texas A&M-Fall'001 cosynthesis Introduction to cosynthesis Rabi Mahapatra CPSC498.
Mehdi Amirijoo1 Power estimation n General power dissipation in CMOS n High-level power estimation metrics n Power estimation of the HW part.
VHDL Coding Exercise 4: FIR Filter. Where to start? AlgorithmArchitecture RTL- Block diagram VHDL-Code Designspace Exploration Feedback Optimization.
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ input/output and clock inputs Sequence of control signal combinations.
1 Chapter 7 Design Implementation. 2 Overview 3 Main Steps of an FPGA Design ’ s Implementation Design architecture Defining the structure, interface.
Group 5 Alain J. Percial Paula A. Ortiz Francis X. Ruiz.
Maria-Cristina Marinescu Martin Rinard Laboratory for Computer Science Massachusetts Institute of Technology A Synthesis Algorithm for Modular Design of.
Maria-Cristina Marinescu Martin Rinard Laboratory for Computer Science Massachusetts Institute of Technology High-level Specification and Efficient Implementation.
An Introduction Chapter Chapter 1 Introduction2 Computer Systems  Programmable machines  Hardware + Software (program) HardwareProgram.
FPGA-Based System Design: Chapter 4 Copyright  2004 Prentice Hall PTR HDL coding n Synthesis vs. simulation semantics n Syntax-directed translation n.
BASIC INPUT AND OUTPUT INTERFACING.  8085A communicate with outside world using the I/O devices.  Since memory and I/O devices share the system bus,
L11: Lower Power High Level Synthesis(2) 성균관대학교 조 준 동 교수
- 1 - EE898_HW/SW Partitioning Hardware/software partitioning  Functionality to be implemented in software or in hardware? No need to consider special.
HYPER: An Interactive Synthesis Environment for Real Time Applications Introduction to High Level Synthesis EE690 Presentation Sanjeev Gunawardena March.
Parallel architecture Technique. Pipelining Processor Pipelining is a technique of decomposing a sequential process into sub-processes, with each sub-process.
6. A PPLICATION MAPPING 6.3 HW/SW partitioning 6.4 Mapping to heterogeneous multi-processors 1 6. Application mapping (part 2)
Field Programmable Port Extender (FPX) 1 Modular Design Techniques for the FPX.
Introduction to VHDL Simulation … Synthesis …. The digital design process… Initial specification Block diagram Final product Circuit equations Logic design.
ECE-C662 Lecture 2 Prawat Nagvajara
Computer Organization CDA 3103 Dr. Hassan Foroosh Dept. of Computer Science UCF © Copyright Hassan Foroosh 2002.
03/30/031 ECE Digital System Design & Synthesis Lecture Design Partitioning for Synthesis Strategies  Partition for design reuse  Keep related.
EECE 320 L8: Combinational Logic design Principles 1Chehab, AUB, 2003 EECE 320 Digital Systems Design Lecture 8: Combinational Logic Design Principles.
SUBJECT : DIGITAL ELECTRONICS CLASS : SEM 3(B) TOPIC : INTRODUCTION OF VHDL.
CHaRy Software Synthesis for Hard Real-Time Systems
System-on-Chip Design
Advanced Computer Systems
System-on-Chip Design Homework Solutions
Andreas Hoffmann Andreas Ropers Tim Kogel Stefan Pees Prof
Basic Computer Organization and Design
Overview Parallel Processing Pipelining
Basic Processor Structure/design
Computing Systems Organization
ARM Organization and Implementation
SOFTWARE DESIGN AND ARCHITECTURE
Chapter 10 Input/Output Organization
Chap 7. Register Transfers and Datapaths
Embedded Systems Design
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Introduction of microprocessor
Chapter 3 Top Level View of Computer Function and Interconnection
ECE 448 Lecture 6 Finite State Machines State Diagrams vs. Algorithmic State Machine (ASM) Charts.
#01 Client/Server Computing
Computer Architecture
Design Flow System Level
Pipelining: Advanced ILP
Interfacing Memory Interfacing.
Central Processing Unit
Number Representations and Basic Processor Architecture
Topics HDL coding for synthesis. Verilog. VHDL..
Lesson 4 Synchronous Design Architectures: Data Path and High-level Synthesis (part two) Sept EE37E Adv. Digital Electronics.
ECEG-3202 Computer Architecture and Organization
ECE-C662 Introduction to Behavioral Synthesis Knapp Text Ch
Outline Module 1 and 2 dealt with processes, scheduling and synchronization Next two modules will deal with memory and storage Processes require data to.
Process Description and Control
VHDL Introduction.
THE ECE 554 XILINX DESIGN PROCESS
ARM ORGANISATION.
ECE 448 Lecture 6 Finite State Machines State Diagrams, State Tables, Algorithmic State Machine (ASM) Charts, and VHDL code ECE 448 – FPGA and ASIC Design.
Digital Designs – What does it take
ECE 448 Lecture 6 Finite State Machines State Diagrams vs. Algorithmic State Machine (ASM) Charts.
William Stallings Computer Organization and Architecture 7th Edition
THE ECE 554 XILINX DESIGN PROCESS
#01 Client/Server Computing
William Stallings Computer Organization and Architecture
Presentation transcript:

Introduction to cosynthesis Rabi Mahapatra CSCE617 Mahapatra-Texas A&M

Introduction What is cosynthesis? It is a problem to synthesize the hardware, software and interface for final implementation. Based on a target architecture, we consider the development of architecture and present here. This step comes after partitioning the nodes and selecting the application beans and obtaining a suitable schedule. Mahapatra-Texas A&M

Architecture Model Target Architecture Processor Core Read/Write Controller Hardware Module Processor Core Hardware Module Hardware Module Control Data System Inputs System outputs Mahapatra-Texas A&M

Architecture Model Single programmable processor and multiple hardware modules connected through a single system bus. Hardware Module: datapath and controller, input and output interface. I/O interfaces between hardware modules and processor. Each node mapped to hardware is synthesized as hardware module (no hardware reuse between module). Processor: software component of the architecture, the program that runs here. Includes device drivers that communicate between hw & sw Processor is non-pipelined architecture Mahapatra-Texas A&M

Architecture Model Communication between hardware and software: Memory mapped, asynchronous and blocked. Different type of communication are possible between the components. Component Configurations: Globally asynchronous and locally synchronous Reasoning: schedule generated by partitioning is based on execution-time estimates and is not guaranteed to be cycle-accurate. One can not determine when processor or hardware module would clock! Controller: responsible to activate the hardware modules based on the schedule due to partition. Mahapatra-Texas A&M

Hardware Module Architecture ino out0 Kernel Datapath and Controller Latch Latch OE0 IE0 out1 in1 Latch Latch IE1 OE1 ink outk Latch Latch IEk OEk OE IE Logic ready completion Output interface System Bus Input interface Mahapatra-Texas A&M

Hardware Module Architecture Handshaking Signals: ready, completion Latch: controlled by input enable (IE) and output enable (OE) Working: kernel begins computation at ready signal indicating the availability of data at its input. Then raises completion flag after computation. The ready signal is a function of input enable signals and the completion signal (generated by logic). Mahapatra-Texas A&M

Hardware-software interface Each input and output of hardware module has unique address in the shared address space of the processor (memory mapped). How to communicate between processor and HW module now? Can we use decoders to select appropriate input in the module? It is possible but for large number of modules, decoder area and delay becomes significant. The ordered transaction principle is applied. Based on the schedule, the order of data transfer is examined across hardware-software interface. Each data transfer is assigned a unique memory address. This way, the sequence of addresses to which read/write takes place is known apriori. This address corresponds to unique latch input/output address. A global controller uses the order information to activate the input and output latches. Mahapatra-Texas A&M

Hardware software interface completion Read/Write Global controller Processor Stall Order of data transfers IE OE 1. Processor issues Write request: Global controller issues appropriate IE signal for the latch. The read cycles can not overlap. When all input signals available, ready signal is issued. 2. Read action: controller checks if corresponding module has completion signals set. After completion is set, OE signals for the output latch is set. Mahapatra-Texas A&M

Software -Software interface Data transfer between two software nodes are assigned memory addresses in the internal data memory of the processor. Communication between the two takes place by writing the results to corresponding locations in the internal data memory. There is no need to check semaphore as the software executes sequentially. Hardware-Hardware interface: direct connection, and use of ready and completion signals. Mahapatra-Texas A&M

Cosynthesis Approaches Need to synthesize datapath & controller for each hardware module, program running on processor including codes for memory access and communication with HW modules. Global controller, I/O interface of hardware modules and netlist connecting the controller to various modules and processor. Mahapatra-Texas A&M

Cosynthesis approach The input to the cosynthesis stage is annonated DAG after partitioning. It includes the possible mapping selections, implementation bins and a schedule. The first step in cosynthesis is Retarget the DAG. It is a technology dependent presentation tool. Each incoming node in DAG is converted to appropriate state of presentation. Example: A software node takes either C code or assembly code and hardware node as VHDL/Verilog. If different implementations are available for a node the target tool selects the necessary bin here. In case of hardware-mapped nodes, transformation and resource-level implementation is possible. Mahapatra-Texas A&M

Retargeting approaches Library Approach: Assumes the existence of library for each technology and implementations (Ex: if FIR filter is the node, one should maintain FIR filter in C, verilog, assembly codes. Also different algorithms of FIR filter with multiple representations) Advantages: computationally efficient and retains modularity. If a node or its implementation changes, one can select the new library element and re-synthesize. Each module can be individually optimized to improve the quality of implementation. Disadvantage: It depends on richness of the library. If an element is not there, one has to develop it. Mahapatra-Texas A&M

Retargeting Approach Compilation Approach: Compile the technology-independent representation of every node into its desired representation. The node is described in high level description such as C or Java. Then, this highlevel description is translated to intermediate representation (like control-dataflow graph). The intermediate representation is compiled to either Verilog or assembly depending on desired synthesis technology. Advantage: Simplistic and traditional approach. Can use available compilers. Not to worry about the special library components. Disadvantages: optimization depends on compiler. Recompile complete design that takes more time. Mahapatra-Texas A&M

HW, SW and Interface Graph These graphs are fed to the hardware, software and interface synthesis tools. Hardware Graph: A separate hardware graph is generated for each node mapped to hardware. Hardware graph contains several sub-nodes. These are annotated with the transformation and sample period corresponding to implementation bins. The hardware synthesis tool generates a datapath and controller for each hardware graph. Mahapatra-Texas A&M

Software graph All nodes mapped to software are combined into a single software graph. Send and receive nodes are added wherever a hardware-software communication occurs. Note: partitioning algorithm generated a global schedule to execution order of all nodes. An ordering between the nodes of the software graph is derived from the above schedule. The software synthesis tool generates a single program from the software graph. The program contains codes for all nodes. The code is concatenated in the predetermined ordering. Mahapatra-Texas A&M

Interface graph Interface Graph: The order generator determines the order of transfers between nodes mapped to software and hardware The interface synthesis tool generates the global controller using this order of transfers. It also interface glue logic (latches, logic to generate ready signal) for the hardware modules. A netlist that describes the connectivity between hardware modules, the processor, and the global controller is next generated. A standard placement and routing tool can be used to synthesize the layout for the complete system. Mahapatra-Texas A&M

Hardware Synthesis Approach: Use VHDL or Verilog (may be Silage for Ptolemy) to describe the hardware graph to synthesize its datapath and controller. Feed this description to hardware synthesis tool for implementation. Hardware graph Silage Code generator in Ptolemy or VHDL VHDL code or Silage code High level hardware synthesis Datapath and controller Mahapatra-Texas A&M

Software Synthesis All the software nodes are to be together and augmented by send-receive. Each software node is called a codeblock which is technology dependent and represents the node functionality. Software synthesis process needs to stitch together these codeblocks and form a single program to be executed by the processor. Use flattened ordering that consider the schedule from partitioning and includes send-receive nodes. Mahapatra-Texas A&M

Software synthesis Software graph - schedule each hierarchical node ordering - schedule each hierarchical node - expand each hierarchical node according to schedule - update ordering to get flattened ordering Flattened software graph and its ordering Generate code for flattened software graph - add initialization code - add communication code - stitch codeblocks together according to ordering program Mahapatra-Texas A&M

Interface synthesis Involves synthesis of global controller and other glue logic FSM can be used to describe the global controller Use standard logic synthesis tool. A template-based approach may be used for glue logic. Mahapatra-Texas A&M

Other synthesis approaches VULCAN system: hardwareC and C COSYMA system: C like description, hardwareC SIERRA system: for multi board application. Mahapatra-Texas A&M