adsd fall2011 01 introduction updated

Upload: rehan-hafiz

Post on 06-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    1/50

    Dr. Rehan Hafiz Lecture # 01

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    2/50

    Course Website for ADSD Fall 2011

    http://lms.nust.edu.pk/

    Key: EE803

    2

    Lectures: Tuesday @ 5:30-6:20 pm, Friday @ 6:30-7:20 pm

    Contact: By appointment/EmailOffice: VISpro Lab above SEECS Library

    Acknowledgement: Material from the following sources has been consulted/used in theseslides:1. [SHO] Digital Design of Signal Processing System by Dr Shoab A Khan

    Material/Slides from these slides CAN be used with following citing reference:Dr. Rehan Hafiz: Advanced Digital System Design 2010

    Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

    http://creativecommons.org/licenses/by-nc-sa/3.0/
  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    3/50

    Introduction

    Mine

    On-going Projects & Research opportunities

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    4/50

    Introduction - Mine

    4

    PhD, The University of Manchester: Reconfigurable signal processing

    techniques for optical tomography

    Area

    Digital System Design for complex algorithms

    Digital Image Processing, Video Registration, Immersive Displays

    Activities

    Group Director : Vision Imaging & Signal Processing Research Group (VISPRO)

    Head: Digital Systems & Signal Processing Knowledge Group (Summer 2009-2011)

    Projects

    Ultra High Definition Panorama Generation & Rendering (Funded by ETRI Korea) Digital Image Calibration for Multi Projector Displays (Funded by Epic Technologies)

    A Multi View Imaging (MVI) Processing Platform: Real Time Panoramic Mosaic

    Generation (Funded by ICT R&D Fund)

    Have been part of the project Design and Verification of Low-Power, High-Speed IP

    Suite for Universal Serial Bus (USB 3.0) with Dr. Nazar (Funded by ICT R&D Fund)

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    5/50

    VISpro: Vision Imaging & Signal Processing Research Group

    5htt ://vis ro.seecs.nust.edu. k/

    Current Research Projects by various members

    UHD Panorama & Rendering (ETRI)

    Digital Image Calibration for Multi-Projector System (EPICTechnologies)

    Multi View Imaging

    Object Tracking & Tagging (Silicon Valley Company)

    Texture Analysis based Population Estimation (HEC Funded)

    Pico-Projection Systems

    Collaborations

    ETRI Korea

    EPIC Technologies

    Computer Vision LAB, LUMS

    Image Processing Research

    Group, Warwick

    Dr. Rehan Hafiz (Lead)

    Dr. M. Murtaza

    Dr. Hammad Qureshi (DOC)

    Dr. Shahzad (CSE)

    Dr. Khawer Khurshid

    Total Research Grants:

    21 Million (PKR)

    VISpro

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    6/50

    Research Opportunities 2010VISpro -- Multi-View Imaging (MVI) MVI: Videos acquired from multiple video sources

    Enormous video dataEnormous information

    Enormous applications

    Multimedia/ Surveillance/ Inspection

    Immersive Multimedia Applications

    Sports/ Cricket Match

    Video Conferencing

    Research Theme

    Real Time Panoramic View Generation

    Real Time View Point Generation

    Camera-1 Camera-2

    Overlapping

    region

    I(x,y)T(x,y)

    I`(x,y)

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    7/50

    Opportunities

    7

    Volunteer RA-Ship

    Do explore research groups at SEECS

    Try out before your thesis begins

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    8/50

    Introduction-Aims

    Name

    Area of interest

    Where u see yourself

    in future Industry ?

    Academia ?

    Research ? Development ?

    Any where else ?

    What you expect to learn in this couse ?

    8

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    9/50

    ADSD Fall 2011

    Course Description

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    10/50

    Relevant Books

    (Sho.) Digital Design of Signal Processing Systems

    (Cil.) Advanced Digital Design with the Verilog HDL, M D. Ciletti

    (Stv) Advanced FPGA Design, Steve Kilts

    10

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    11/50

    Useful Books

    Verilog HDL, Samir Palnitkar

    Synthesis of Arithmetic Circuits

    VLSI Signal Processing Systems, Parhi

    11

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    12/50

    Course EvolutionADSD-Fall-2009 Course outline

    12

    Introduction Digital design methodology (Cil.)

    Combinational & Sequential Logic

    (Cil.)

    Common structures

    HDL review

    Synthesis

    Design & Synthesis of Datapath

    controllers (Cil.)

    Micro-Architecture Fixed point & Floating point

    Arithmetic

    Architectures for ArithmeticProcessors (Cil.)

    Adders, Multipliers, Dividers

    Coordinate Rotation Digital Computer

    (CORDIC Algorithm)

    Advanced FPGA Design Concepts(Stv.)

    Architecting Speed, Area & Power

    Clock Domains

    Reset Circuits

    Coding for synthesis

    Timing Analysis

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    13/50

    ADSD Fall 2011

    Course Outline

    Week Topic Description/ Lecture Breakdown

    1 Introduction Outline & Introduction

    Initial Assessment of students

    Digital design methodology & design flow

    2 Verilog+

    Combinational Logic

    Combinational Logic Review + Verilog Introduction

    Combinational Building Blocks in Verilog

    3 Verilog + Sequential

    Logic

    Sequential Common Structure in Verilog (LFSR /CRC+ Counters + RAMS)

    Sequential Logic in Verilog

    4 Synthesis in Verilog Synthesis of Blocking/Non-Blocking Statements

    5 Micro-Architecture Design Partitioning + RISC Microprocessor + Micro architecture

    Document6 Optimizing Speed Architecting Speed in Digital System Design: [Throughput, Latency,

    Timing]

    7 Optimizing Area Architecting Area in Digital System Design: [Area Optimization]

    8 FIR Implementation FIR Implementations + Pipelining & Parallelism in Non Recursive DFGs

    9 MID EXAM

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    14/50

    ADSD Fall 2011

    Course Outline

    Week Topic Description/ Lecture Breakdown

    10 CDC Issues Cross-Clock Domain Issues & RESET circuits

    11 Fixed-Point Arithmetic Arithmetic Operations: Review Fixed Point Representation

    12 Adders Adders & Fast Adders

    Multi-Operand Addition

    13 Multipliers Multiplication , Multiplication by Constants + BOOTH Multipliers

    13 CORDIC CORDIC (sine, cosine, magnitude, division, etc)

    CORDIC implementation in HW

    14 Algorithmic

    Transformations for

    System Design

    DFG representation of DSP Algorithms

    Iteration Bound

    Retiming

    15 AlgorithmicTransformations for

    System Design

    UnfoldingLook ahead transformations

    16 Project Course Review &

    Project Presentations

    17 Project Project Presentations

    18 END SEMESTER EXAM

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    15/50

    Distribution

    Quizzes 10%

    Assignment 10%

    Research Project 15%

    Mid 30%

    Final 35%

    15

    *There can be slight modifications & shall be notified earlier

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    16/50

    Furthermore

    16

    After successful completion of this course the students shall be able to

    port complex algorithms to hardware by designing efficient data-paths

    and controllers; handle cross clock domain issues and shall have the

    desired knowledge to design for meeting specifications (speed, logic

    optimization).

    The related relevant courses in your stream are:

    ASIC Design Methodology

    Advanced VLSI System Design

    The course has NO associated LAB credit hours. However, interested

    students can contact.

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    17/50

    Relevant Conferences

    17

    IEEE International Symposium on Circuits andSystems ISCAS

    DATE - Design, Automation, and Test in Europe

    IEEE Symposium on Computer Arithmetic ISCA Applied Reconfigurable Computing ARC

    Engineering of Reconfigurable Systems andAlgorithms ERSA

    Design Automation Conference DAC International Symposium on High-Performance

    Computer Architecture - HPCA

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    18/50

    Relevant Journals

    18

    IEEE Transactions on Circuits and Systems for VideoTechnology TCSV

    IEEE Transactions on Very Large Scale IntegrationSystems VLSI

    ACM Transactions on Architecture and CodeOptimization TACO

    Journal of Systems Architecture - Elsevier

    Microprocessors and Microsystems Elsevier

    Journal of Signal Processing Systems - Springer

    AIP Review Scientific Instruments

    ACM Transactions on Design Automation of ElectronicSystems (TODAES)

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    19/50

    Relevant Links

    19

    Verilog Tutorial http://www.asic-world.com/verilog/veritut.html

    Writing Technical Paper

    http://www1.cs.columbia.edu/~hgs/etc/writing-style.html

    http://www.asic-world.com/verilog/veritut.htmlhttp://www1.cs.columbia.edu/~hgs/etc/writing-style.htmlhttp://www1.cs.columbia.edu/~hgs/etc/writing-style.htmlhttp://www1.cs.columbia.edu/~hgs/etc/writing-style.htmlhttp://www1.cs.columbia.edu/~hgs/etc/writing-style.htmlhttp://www.asic-world.com/verilog/veritut.htmlhttp://www.asic-world.com/verilog/veritut.htmlhttp://www.asic-world.com/verilog/veritut.html
  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    20/50

    Class Ethics

    20

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    21/50

    Class Ethics &.. Other stuff

    Attendance

    Respect for all & classroom discipline

    Quizzes Anytime

    Never cheat Better fail NOW or else will fail sometime LATER in life

    Hard work always pays.

    Assignments References (IEEE Indexing [1],[2],)

    Plagiarism No copying

    21

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    22/50

    PLAGIARISM

    Adapted from What is Plagiarism PowerPoint

    http://mciu.org/~spjvweb/plagiarism.ppt22

    http://mciu.org/~spjvweb/plagiarism.ppthttp://mciu.org/~spjvweb/plagiarism.ppt
  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    23/50

    23

    Sirjeeby chancewe had the same

    variable name

    Oh !

    I forgot toreplace-all the

    variable names..

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    24/50

    Questions.

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    25/50

    Assessment

    Status quo

    Where we stand?

    25

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    26/50

    Dr. Rehan Hafiz Lecture # 01

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    27/50

    More & Powerful design options are getting available to the developer.

    Design Space Options : GPPs, DSPs, FPGAs, Application SpecificProcessors,ASICs

    Design Space Exploration deals with deciding the best from theavailable options for the design.

    For Further Reading : [SHO] Chapter-1

    Design Space Exploration27

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    28/50

    Moores Law (1965) is fueling the DSP Market

    28

    The number of transistors on a chip was doubling every 18 to 24 months and made the prediction for future

    32nm => Sandy Bridge (2011) 11 nm => approx. 2015

    More & Powerful Design Options are now available

    [SHO]

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    29/50

    Design Options

    29

    Programmable Processors (& Microcontrollers)

    Programming flexibility

    Optimized - Architectures with so much design effort put in their designs

    Examples: Intel, Atmel, ARM Processors

    Digital Signal Processors

    Programming flexibility

    Optimized - Architectures with so much design effort put in their designs

    Examples: DSP from Texas Instruments

    FPGA

    Reconfigurable Hardware

    Application Specific Instruction Set Processors (ASIPs) OR Fully dedicated design,e.g Unfied Serial Bus Controller for USB 3 PCI Expres 3.0

    Also offer: Soft Processors [Microblaze, NIOS]

    ASIC

    Lower cost, low power

    No flexibility of programming

    Application Specific Instruction Set Processors (ASIPs) OR Fully dedicated design

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    30/50

    Design Space Options

    30

    [SHO]

    Design Decision depends on the

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    31/50

    Design Decision depends on the

    nature & complexity of applications31

    Applications are characterized

    by amount of data, parallelism,

    real time requirements.

    l l f d

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    32/50

    Analyzing your application for design space

    exploration

    32

    Computationally intensive (number crunching) tasks Standard Tasks/Protocols/Interfaces/Encoding

    Commercial off the shelf ASICs are available

    Memory Controllers, Firewire interfaces

    Non Standard Structured Tasks

    Consist of code that has loops or nested loops with a few instructions being repeated anumber of times.

    Suitable for FPGAs

    Examples: FFT Butterflies

    Non Standard Non Structured Tasks

    More Code intensive & complex to port to H/W.

    Suitable for DSPs

    Adaptive Algorithms with multiple IF/Else such as Motion Vector Estimation

    Control Oriented Tasks

    User interfaces, control processes, system controllers and other code intensiveprotocols are usually mapped on GPPs or microcontrollers.

    Multiple interrupts & Complex Scheduling are conveniently handled by OperatingSystems so better handled by instruction based Processors

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    33/50

    A typical system

    33

    For complex systems

    HW/SW co design may be

    the only optimal choice.

    Soft processors like NIOS

    even allow you to make

    custom instructions ! Use a processor with

    FPGA/SICS as Hardware

    Accelerators

    http://www.openmoko.com/freerunner.html

    http://www.openmoko.com/freerunner.htmlhttp://www.openmoko.com/freerunner.html
  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    34/50

    A little exercise

    34

    Display- 480 x 640 pixels, VGA, resistance

    type touch

    User Interface Navigation- Touch screen on

    LCD, 2 control buttons, 1 Power button, 1

    Aux for 911 emergency call Wifi, Bluetooth,

    Supports camera & JPEG compression

    Built-in GPS Radio

    Need support to run Mobile Applications

    What components you shall be using for

    your system ?

    Group of 3 On a paper & submit

    http://www.openmoko.com/freerunner.html

    http://www.openmoko.com/freerunner.htmlhttp://www.openmoko.com/freerunner.html
  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    35/50

    An examples

    35

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    36/50

    Good Resources Must Read

    36

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    37/50

    Where are we focusing

    37

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    38/50

    Digital Design Methodology

    38

    From concept to reality

    A long tiring process

    http://nigamanth.net/vlsi/category/asic-design-flow/

    Design Methodology: Big Picture

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    39/50

    Design Methodology: Big Picture

    39

    MRD MarketingRequirement

    Document

    Arch. Spec.

    (Macro

    Architecture)

    DesignSpecificationMicro

    -Architecture &

    Design Partition

    Design Entry

    HDL

    SimulationFunctionalVerification

    DesignIntegration &

    Verification

    Pre synthesisSign-Off

    Synthesize &Map Gate-Level

    Netlist

    Post synthesisDesign

    Verification

    Test Generation& Fault

    Generation

    Clock Trees

    Cell Routing

    Verify Physical &Electrical Design

    RulesExtract ParasiticDesign Sign-Off

    Design Methodology

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    40/50

    Design Methodology

    A list of desirable features

    Studies

    Customers expectations

    Competing Products

    Add-ons

    Market opportunities

    Time to market

    Projects revenue estimates

    Profit Margins

    Evaluation

    Architecture at a very high and

    abstract level

    Usually a transaction level

    model (TLM) Defines communicating

    processes

    Events may not be defined

    Marketing Requirement

    Document (MRD)

    Architecture Specification

    Macro Architecture

    Sample

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    41/50

    Sample

    Architecture

    41

    Architectural Spec : Another Example

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    42/50

    Architectural Spec : Another Example.

    Design Methodology

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    43/50

    Design Methodology

    Going deeper into design

    Partitioning of functions into

    blocks

    Clock/reset requirements,

    Pipelining of registers

    Memory buffers

    Algorithm State Machines (like

    flowcharts)

    State machines and interfacedetails.

    State Transition Graphs

    Timing Charts

    FUs defined by their behavior

    Interacting functional units

    Control vs. datapath separation

    Interconnection structures within

    datapath

    Top-down design method

    Exploiting hierarchy

    Design Reuse

    This document is very crucial, for alarge team working on various

    modules of the same design.

    Design Spec/Micro Architecture / Design Partition

    Design Methodology

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    44/50

    Design Methodology

    HDL

    Higher productivity thanschematic based gate levelimplementation

    Easier to Debug, Modify & Update De-burdens gate level

    optimizations

    Allows this stage to be technologyindependent (e.g., FPGA LUTs orASIC standard cell libraries)

    Behavioral descriptions

    Simulation vs. Formal

    Methods

    Test Plan Development

    What to test & how ? E.g: Instruction set for a range of

    data

    Testbench Development

    Testing of independent modules

    Test Execution and Model

    Verification

    Meets Specification ?

    44Design Entry/ HDL

    Simulation and Functional

    Verification

    Design Methodology

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    45/50

    Design Methodology

    Integrate

    Bugs lurking in the

    interface behavior

    among modules

    The Testbench

    I/O interfacing with top

    level moduleMonitor port & bus

    activity across module

    boundaries

    Full functionality

    Demonstrated

    Make sure thatthe behavior

    specification meets thedesign specification

    45

    Design Integration and

    VerificationPre synthesis sign-off

    Design Methodology

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    46/50

    Design Methodology

    Synthesize the design fromthe behavior description

    Optimized Booleandescription

    Map onto target technology Optimizations

    Minimize logic

    Reduce area

    Reduce power

    Balance speed vs. otherresources consumed

    Produces netlist of standardcells or database to configuretarget FPGA

    Comparing Synthesized gate-

    level description to the

    verified behavioral model

    A testbench that instantiatesboth models & drive them via

    common stimulus

    46

    Gate-Level Synthesis and

    Technology Mapping

    Post-synthesis Design

    Validation

    Design Methodology

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    47/50

    Design Methodology

    Are the timingspecifications met?

    Are the speeds adequate

    on the critical paths? Re-synthesis may be

    required to achievetiming goals

    Resize transistorsModify architecture

    Choose a different targetdevice or technology

    Test Generation and Fault

    Simulation

    Placement and Routing

    Clock distribution trees tominimize skew

    Physical and Electrical

    Design Rule Check

    Determining Parastics Extract geometric

    information

    47

    Post synthesis Timing

    VerificationASIC Specific

    Design Methodology: Big Picture

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    48/50

    Design Methodology: Big Picture

    48

    MRD MarketingRequirement

    Document

    Arch. Spec.

    (Macro

    Architecture)

    Micro-Architecture& Design Partition

    Design Entry

    HDL

    SimulationFunctionalVerification

    DesignIntegration &

    Verification

    Pre synthesisSign-Off

    Synthesize &Map Gate-Level

    Netlist

    Post synthesisDesign

    Verification

    Test Generation& Fault

    Generation

    Clock Trees

    Cell Routing

    Verify Physical &Electrical Design

    RulesExtract ParasiticDesign Sign-Off

    ASIC Specific

    d

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    49/50

    Reading Assignment

    49

    Relevant sections of Chapter-1 [SHO]

  • 8/3/2019 ADSD Fall2011 01 Introduction Updated

    50/50

    Questions.