lec 5 _ hdl-based digital design

Upload: 0106062007

Post on 04-Apr-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    1/78

    1

    INTRODUCTIONTO

    Digital Design Using HDL(Hardware Descriptive

    Language.)

    2012/10/18

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    2/78

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    3/78

    2012/10/18 3

    How to tackle a 'million-gates' design?

    De-emphasis of hand design methods - useEDA tools

    o Behavioural Synthesis, Logic synthesis

    o Software prototyping

    Software simulator replaces thebreadboard

    o Hardware design begins to carry out like

    software

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    4/78

    2012/10/18 4

    How to tackle a 'million-gates' design?

    Digital logic design is a 'a day to learn, a lifetimeto master'.

    Technology:

    o SSI MSILSIVLSIULSI

    You can utilize different types of implementationtechnology (e.g. ASIC, Programmable LogicDevice) with provision up to few 'million' gates.

    o What challenges are faced by modern digital

    designers?o How do you tackle such a 'million-gates'

    design?

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    5/78

    2012/10/18 5

    How to tackle a 'million-gates' design?

    In the digital design community, the term RTLdesign is commonly used fora combination of

    dataflow modeling and behavioural modeling.

    Modern definition of a RTL code

    o any code that is synthesizable is called RTLcode.

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    6/78

    DSP(Digital Signal Processing Card)

    2012/10/18 6

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    7/78

    Design Ideas

    Behavioral Design

    Data Path Design

    Logic Design

    Physical Design

    Manufacturing

    Flow Chart, Pseudo Code,

    Bus & Register Structure

    Gate Wirelist, Netlist

    Transistor List, Layout,..

    Chip or Board

    INTRODUCTION

    2012/10/18 7

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    8/78

    2012/10/18 8

    Emergence of HDLs - What is a HDL?

    A high-level programming language offeringspecial constructs to model microelectronic

    circuits

    o Describe the operation of a circuit at various

    levels of abstractionBehaviour

    Function

    Structureo Describe the timing characteristics of a circuit

    o Express the concurrency of circuit operation

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    9/78

    2012/10/18 9

    NO OTHER CHOICE (Why?)

    it is very difficult to design directly on transistor-

    or gate-level hardware

    o for complex system, gate-level design is dead

    mixed-level modeling and simulation

    easier to explore different design options

    reduce time and cost

    Why Use the HDLs?

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    10/78

    2012/10/18 10

    HDL(Hardware Description Language)

    Characteristics of digital hardware

    Connections of parts

    Concurrent operations

    Concept of propagation delay and timing

    Characteristics cannot be captured by traditional PLs

    Require new language: HDL

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    11/78

    2012/10/18 11

    Specify Capture Verify Formalize Implement

    HDL supportsSpecify (for design specification)

    Capture (for design entry)

    Verify (for design simulation)

    Formalize (for documentation)

    Implement (for logic synthesis)

    Main Design Phases in a Development Cycle

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    12/78

    2012/10/18 12

    advantages compared to traditional schematic-based design

    o design with RTL description + logic synthesistools

    different levels of abstractioneasier and cheaper to explore different

    design options with the aid of a logicsynthesis tool

    HDL offers the mechanism to describe, testand synthesize such complex design

    design reuse

    Advantages of HDLs

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    13/78

    2012/10/18 13

    o functional verification can be done early

    optimized to meet the desired functionality

    o analogous to computer programming textual description and comments

    Advantages of HDLs

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    14/78

    2012/10/18 14

    Design Entry Test Development

    Synthesis Functional Simulation

    Device

    Fitting/Mapping Timing Simulation

    Device

    HDLs can be used for both

    d e s i g n e n t r y a n d t e s t

    development .

    HDL makes it easy to build,

    use and reuse lib raries of

    circuit elements.

    2 Main Roles of a HDL in Digital Design

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    15/78

    Two HDLs Used Today

    VHDL and Verilog

    Syntax and appearance of the two language are very different

    Capabilities and scopes are quite similar

    Both are industrial standards and are supported by most

    software tools

    2012/10/18 15

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    16/78

    2012/10/18 16

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    17/78

    VHDL Vs Verilog HDL

    2012/10/18 17

    VHDL

    Verilog

    open standard (originated by USADoD)

    oriented to system-level design orspecification

    probably better for designverification tasks, but

    less technology support for ASICimplementation

    complex syntax and abstract steep learning curve

    demanding good programmingbackground Good but too demanding for new

    learners, like you

    open standard (initiated by OVI)

    oriented to digital circuit design

    well support from EDA and ASIC

    vendors C-like syntax and more intuitive

    students should have some

    prior programming experience

    on C

    shallow learning curve than

    VHDL Future compatibility to Digital IC

    Design modules

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    18/78

    Genesis of VHDL

    VHDL is a language for describing digital hardware used by industry

    worldwide

    Multiple design entry methods and hardware description languages in use

    No or limited portability of designs between CAD tools from different

    vendors

    Objective: shortening the time from a design concept to implementation

    from 18 months to 6 months

    2012/10/18 18

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    19/78

    19

    What is VHDL?

    VHDL is the VHSIC ( Very High Speed Integrated Circuit ) Hardware

    Descriptive Language.

    A Simulation Modeling Language.

    A Design Entity Language.

    A standard Language.

    A Netlist Language.

    2012/10/18

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    20/78

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    21/78

    2012/10/18 21

    Features of VHDL Support for concurrent statements ( All elements are active

    simultaneously).

    Library support (user defined and system predefined ).

    Sequential statements (gives software-like sequential control (e.g. case, if-then-else, loop, ).

    Support for design hierarchy.

    Generic design (configurable for size, physicsl characteristics, timing, loading,).

    Use of subprograms.

    Type declaration and usage.

    - Not limited to Bit or Boolean types

    - Allow integers, floating point types, as well as user defined types.

    - Possibility to define new operators for the new types ).

    Timing control.

    Technology independent.

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    22/78

    2012/10/18 22

    Gate

    Algorithmic

    Behaviour

    Data Flow

    System

    Switch

    {

    RTL {{

    Different Levels of Abstractionof a Typical Digital System

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    23/78

    2012/10/18 23

    Levels of Abstraction

    Two basic ways of representing a digital circuito Structure

    primitives and connectivity

    tools: schematic diagram

    o Behaviour

    I/O functions vs time

    tools : Equations, Timing Waveforms, HDL

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    24/78

    2012/10/18 24

    Abstraction

    LevelStructure Behaviour

    Switchtransistors, resistors,

    capacitors,

    I-V diagrams,

    differential equations

    Gate gates, latches, flip-flops

    Boolean equations, truth

    tables, state diagrams, timing

    diagrams

    Register

    adders, comparators,multiplexers, registers,

    counters, queues,

    datapaths, memories

    flowcharts, algorihtms,

    generailized FSMs

    ProcessorCPU, memories, buses,

    ASICs

    executable specifications,

    programs

    Structural and Behavioural Representationat Different Levels of Abstraction

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    25/78

    2012/10/18 25

    Levels of Abstraction

    Physical/Switch/Transistor Levelo a model that describes layout of the wires,

    resistors, capacitors and transistors and

    interconnections between them on an IC chip

    Gate-levelo a circuit is described in terms of logic

    primitives (such as AND, OR, XOR, NAND,

    NOR, .), flip-flops, interconnections, logic

    levels and timing properties (e.g. gate delay)

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    26/78

    2012/10/18 26

    Levels of Abstraction

    Register Transfer Level (Dataflow)o a type of behavioural description that

    describes the flow of data between registers

    and how a design processes these data

    o defines signal values with respect to a clocko RTL (Register Transfer Level) is frequently

    used for the Verilog description with the

    combination ofbehavioural and dataflow

    constructs which is acceptable to logic

    synthesis tools

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    27/78

    2012/10/18 27

    Behavioural Modelingo highest level of abstraction

    o a component is described by its design

    algorithms and/or input/output responses

    o without implying any hardware details ofimplementation

    o behaviour is implied by the functional

    definitions of the components

    o synthesis tools accept only a limited subset of

    these high-level constructs

    Levels of Abstraction

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    28/78

    2012/10/18 28

    Behaviour

    RTL

    Gate

    Layout

    CLK

    QD Logic

    CLK

    QD

    F

    A

    BC

    D

    BlackBox

    F

    Different Levels of Abstraction

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    29/78

    2012/10/18 29

    Behaviour

    RTL

    Logic

    Layout

    Functional timing behaviour

    e.g. "after 10ns, signal Aswitches to 1"

    Describe clock, dataflow,functions and events

    Gate types, connections

    and gate delays

    Shape, dimensions, pathdelays

    less

    precise

    more

    precise

    fast

    simulation

    slow

    simulation

    Information Contents

    Behavioural Synthesis

    Logic Synthesis

    Placement & Routing

    Automation Tools

    Human-oriented

    Machine-

    oriented

    Tools and Information Contents forDifferent Levels of Abstraction

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    30/78

    2012/10/18 30

    Digital Design Flow

    Essential steps:o Design Entry

    o RTL Simulation

    o Logic Synthesis

    o Verification

    o Placement and Routing

    o Configuration

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    31/78

    2012/10/18 31

    Design Entry

    RTLHDL

    FunctionalSimulation

    LogicSynthesis

    Fitting /Place & Route

    LayoutData

    TimingExtraction

    Post-layoutSImulation

    TestBench

    SimulationLibrary

    TestBench

    Post-synthesisSimulation

    TestBench

    DesignConstraints

    Gate-levelNetlist

    Technology-independent

    Technology-dependent

    TechnologyLibrary

    Modern Digital Design Flow

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    32/78

    2012/10/18 32

    DesignVerification

    DesignEntry

    DesignImplementation

    Schematic Diagram Text-based Entry

    e.g. ABEL, Verilog,VHDL

    Functional andTiming Simulation

    Static TimingAnalysis

    In-circuit Verification

    Download to a TargetPLD Device

    FunctionalSimulation

    Back-annotation

    Optimization FPGA

    - Mapping, Placement,Routing

    CPLD- Fitting

    Bit Stream Generation

    Digital Design Flow(with a PLD as

    target)

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    33/78

    2012/10/18 33

    Synthesis

    Translation of a high-level design to a lower-level form

    o Map a more abstract representation to an

    optimized and more physical form

    BehaviouralSynthesis

    LogicSynthesis

    Synthesis Tools Used in Modern Digital design

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    34/78

    2012/10/18 34

    Synthesis

    Logic Synthesis the predominate synthesistechnology in use today

    o a design is specified at the RTL level

    o capable of optimizing a design with respect to

    various constraints, such as area, timing,power

    o an optimized gate-level implementation that is

    targeted to a particular technology

    o requiring a technology library to specify the

    components to be used in the design

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    35/78

    2012/10/18 35

    AreaConstraints

    TimingConstraints

    PowerConstraints

    Reports allconstraintsmet ?Technology

    Libraries

    Logic Synthesis Tools

    HDL Description

    Gate-level Netlist (Optimized)

    Technology-independent

    Technology-dependent

    DesignConstraints

    A

    B

    FSEL

    x

    y

    s

    _

    always @(state)

    begin

    hwy = GREEN;

    cntry = RED;

    if (clear)

    Q

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    36/78

    2012/10/18 36

    Synthesis

    Behavioural synthesiso an emerging technology that allows a more

    algorithmic specification of the system to be

    synthesized

    exploring design alternativesConsideration to betaken when carrying out a HDL-based design for

    logic synthesis:

    o synthesizable subset

    o synthesis policy

    o modeling style

    o functionally identical vs functionally equivalent

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    37/78

    2012/10/18 37

    Circuit Description

    module FA (SUM, CO, A, B CIN)

    output SUM, COUT,

    input A, B, CIN;

    . . .. . .

    endmodule

    Testfixture

    module testFixture;

    reg A, B;

    . . .

    . . .. . .

    endmodule

    Verilog Simulator

    Verilog Parser

    Simulator EngineUser Interface

    Graphical SimulationResults

    Text ModeSimulation Results

    The Verilog Simulation

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    38/78

    2012/10/18 38

    All rights transferred for Verilog

    HDL to OVI

    Analog Verilog ?

    Publication of IEEE Standard

    1364

    Gateway Design Automation introduced

    Verilog-XL Simulator and its proprietory HDL

    Cadence acquired Gateway and its

    Verilog-XL

    Verilog HDL placed in the public

    domain (Why ?)

    1989

    1985

    1990

    1995

    The future

    1991

    There were numerous proprieory HDLs in the

    academic and industrial sectors1980's

    Developmental History of Verilog HDL

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    39/78

    2012/10/18 39

    What is Verilog HDL ?

    Hardware Description Language

    Mixed level modeling

    o Behavioural Dataflow Structural

    Switch

    Single language for design and simulation Concurrency

    Built-in primitives and logic functions

    User-defined primitives

    Built-in data types

    High-level programming constructs

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    40/78

    2012/10/18 40

    What is Verilog HDL ?

    Programming Language Interface Hierarchial structure and instantiation

    Verilog modeling range

    o From switch/transistor to

    processor levelo Our main focus will be on RTL

    (RegisterTransferLevel)

    Gate

    Algorithmic

    Behaviour

    Data Flow

    System

    Switch

    {

    RTL {{

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    41/78

    2012/10/18 41

    General Design Process

    Understand problem and generate blockdiagram of solution

    Code block diagram in Verilog HDL

    Create verification script to test design

    Synthesize Verilog Run static timing tool to check all thing is met

    Design is mapped, placed and routed

    Bitstream (*.bit) file is generated anddownloaded to target devices (e.g. FPGA or

    CPLD)

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    42/78

    2012/10/18 42

    Digital Design Technologies

    DigitalDesign

    Methodologies

    Full Custom IC Semi Custom IC

    Field ProgrammableLogic

    GateArray

    StandardCell

    Field ProgrammableGate Array

    (FPGA)

    Simple/ComplexPLD

    (S/CPLD)

    Digital Design Technologies

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    43/78

    2012/10/18 43

    Ease of Use

    PLDs

    FPGAs,

    Gate Arrays

    Standard

    Cells

    Full-custom

    ICs

    * Nonrecurring engineering cost* Design Complexity* Process complexity* Logic Density* Speed

    *MarketVolumetoAmortiz

    e

    *TimetoPrototype

    Characteristics of variousDigital Design Technologies

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    44/78

    2012/10/18 44

    No.ofLog

    icGates/Ch

    ip

    Design Cycle / Man-Days

    10 100 1,000

    FPGA

    GateArray/Std.Cell

    ASICs

    PLD

    10

    100

    1,000

    10,000

    100,000

    Logic Density vs Design Cycle

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    45/78

    2012/10/18 45

    TotalCost

    Volume

    PLDS

    Gate Arrays

    Fixed

    Cost

    Breakeven

    Qty

    Cost Comparison of PLDs and Gate Arrays

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    46/78

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    47/78

    2012/10/18 47

    Classification

    Programmable Logic Device (PLD) or FieldProgrammable Logic Device (FPLD)

    o a generic term that refers to any integratedcircuit used for implementing digital hardware,

    where the chip can be configured by the enduser to realize different designs

    o fixed architecture but functionalityprogrammable for a specific application

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    48/78

    2012/10/18 48

    PLA, PALSPLD

    CPLD FPGA

    PROM PROMs are not classified asPLDs since they are mainly used

    for storage and special-purposeapplications.

    The Evolution of the PLD Technology

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    49/78

    2012/10/18 49

    3 categories of PLDs:

    1. SPLD (Simple Programmable Logic Device)

    PLA(Programmable Logic Array)

    PAL (Programmable Array Logic)

    Registered PAL

    2. CPLD (Complex Programmable Logic Device)3. FPGA(Field Programmable Gate Array)

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    50/78

    2012/10/18 50

    3 basic characteristics distinguish PLDs from eachother :

    o architecture of basic functional unitso programmable interconnections

    o programming technology

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    51/78

    2012/10/18 51

    Architecture of PLDs

    n x p

    AND Array

    (Programmable)

    p x m

    OR Array

    (Programmable)

    P[0]

    P[1]

    P[p-1]

    in[0]

    in[1]

    in[n-1]

    out[0]

    out[1]

    out[p-1]

    :

    :

    :

    ::

    :

    m outputs

    p product terms

    fromed from inputs

    n inputs

    Generic Architecture of PLDs

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    52/78

    2012/10/18 52

    PLA

    o Two programmable planes:AND &ORplanes

    o Any combinations of ANDs / ORs

    o Sharing of AND terms across multiple ORs

    o High logic density

    o High fuse counto Slower than PALs

    o Higher power dissipation than PALs

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    53/78

    2012/10/18 53

    Outputs

    Inputs

    ProgrammableAND Plane

    ProgrammableOR Plane

    Programmable Element(e.g. Metallic Fuse, UV

    EPROM Cell)

    The PLA Architecture

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    54/78

    2012/10/18 54

    PAL

    o ProgrammableAND plane / Fixed ORplane

    o Finite combination of ANDs / ORs

    o Medium logic density

    o Low fuse count

    o Faster than PLAs

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    55/78

    2012/10/18 55

    Outputs

    Inputs

    ProgrammableAND Plane

    Fixed OR Plane

    Programmable Element

    (e.g. Metallic Fuse, UV EPROM Cell)

    The PAL Architecture

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    56/78

    2012/10/18 56

    Inputs

    Fixed OR Plane

    D

    CLK

    Q

    D

    CLK

    Q

    Programm

    ableANDPlane

    Clock

    D or T

    Flip-flops

    The Registered PAL Architecture

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    57/78

    2012/10/18 57

    CPLD

    o Each basic logic block is constructed from

    registered PLDso Central, global interconnects

    o Simple and deterministic timing

    o Easily routedo PLD tools add only interconnects

    o Wide, fast complex gating

    o Clock speed > 300MHz

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    58/78

    2012/10/18 58

    PLD PLD PLD

    PLD PLD PLD

    Programmable

    Interconnect

    The CPLD Architecture

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    59/78

    2012/10/18 59

    LogicArray

    ProductTerm

    SharingArray

    OutputLogic

    Macrocells* Registers

    Inputs

    Clock

    Dedicated

    Inputs

    Outputs

    Basic PLD Block of a CPLD

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    60/78

    2012/10/18 60

    FPGA

    o a regular structure of configurable logic blocks

    (or modules) and interconnectso Channel-based routing

    o Fine-grained configurable logic block

    o Post-layout timing analysis requiredo Tools more complex than CPLDs

    o Fast register pipelining

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    61/78

    2012/10/18 61

    Configurable Logic Blocks

    I/OPads

    Horizontal Channel

    VerticalChannel Channel

    Configurable Logic Blocks

    Channel

    Channel

    Row 1

    Row 2

    Row 3

    Row 4

    (a) Matrix-based Architecture(e.g. Xilinx and QuickLogic devices)

    (b) Row-based Architecture(e.g. Actel devices)

    The FPGA Architecture

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    62/78

    2012/10/18 62

    Size of Logic Block

    InterconnectDelay

    BlockDelay

    Both Interconnect Delay and Block Delay aredependent on the FPGA architecture

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    63/78

    2012/10/18 63

    FPGA

    o 2 basic types of FPGAs:

    o Reprogrammable (SRAM-based)

    o SRAM determines interconnects

    o

    SRAM defines logic in Look UpTableo OTP (One-time Programmable)

    o Interconnect is anti-fuseo Logic is traditional gates

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    64/78

    2012/10/18 64

    Show how the PLD shown in the Figure can be

    used to implement typical 2-input logic functions:AND, OR, NAND, NOR, XORand XNOR.

    Example:

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    65/78

    2012/10/18 65

    Uses of Programmable Logic Devices

    3 main uses of PLDs:o Replacement ofglue logic (random logic)

    o Implementing dedicated controller circuits

    o Implementing finite state machines (FSM)

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    66/78

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    67/78

    2012/10/18 67

    o Dedicated logic functionsE.g. Flip-flop types, I/O buffers, macrocells

    o Timing characteristics & speed requirementsTpd, Tsetup, Thold, .

    o Power dissipationo Voltage requirements

    E.g. 2.5V, 3.3V, 5V

    o I/O pins availableo Packageso Special features

    E.g. In-system Programmability/Testability

    o CAD tools and vendor-supplied libraries

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    68/78

    2012/10/18 68

    PLD Design Flow & Tools

    Design Capture

    - schematics- HDL-based file

    Synthesis

    Device Fitting

    DeviceProgramming/Downloading

    Functional

    SImulation

    TimingSimulation

    In-circuitTesting

    Typical PLD Design Flow

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    69/78

    2012/10/18 69

    PLD Design Flow and Tools

    CAD Tools are crucial to implementing digitalcircuits in PLDs.

    PLD vendors usually offer series offree or low-cost CAD tools for users.

    o Examples: ISE Webpack from Xilinx

    MAX Plusfrom Altera

    ispLEVERfrom Lattice SemiconductorWarpfrom Cypress

    Idea

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    70/78

    2012/10/18 70

    SchematicsECS

    HDL State MachineStateCAD

    Design Entry

    Synthesis

    FittingCPLD Fitter MappingMAP/PAR

    EstimationXPower

    ProgrammingIMPACT Programmer

    TestBenchHDL

    Bencher

    SimulateModelSim

    XE

    TranslateNGDBuild

    Xilinx Synthesis Technology (XST)

    CPLD FPGA

    The Xilinx ISE Design Environment

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    71/78

    2012/10/18 71

    A sequential circuit is implemented into a PLD

    as in the following figure

    (a) Identify the architecture of the PLD device.

    i) architectural type

    ii) no. of inputs

    iii) no. of outputs

    iv) maximum number of product termsavailable for each output

    (b) Write a logic equation for each output.

    Example:

    R'

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    72/78

    2012/10/18 72

    Q1

    Q2

    Q3

    R

    S

    O4

    O5

    D

    D

    D

    CLK

    CLK

    CLK

    Q

    Q

    Q

    Q

    Q

    Q

    CLOCK

    R

    S'

    S

    Q2'

    Q2

    Q1

    Q1'

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    73/78

    2012/10/18 73

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    74/78

    Sample Design Process

    *Problem:

    Design a single bit half adder with carry & enable.

    *Specification:

    - Passes results only on enable high.

    - Passes zero on enable low.

    - Result get x plus y .

    - Carry gets any carry of x plus y .

    Half Adder

    x

    yenable

    carryresult

    2012/10/18 74

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    75/78

    Behavioral Design

    Starting with algorithm, a high level description of the adder is created.

    Half Adderxy

    enable

    carryresult

    IF enable=1 THEN

    result = x XOR y

    carry = x AND y

    ELSE

    carry = 0

    result = 0

    *The model can now be simulated at this high level description to

    verify correct under standing of the problem.

    2012/10/18 75

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    76/78

    Data Flow Design

    With the high level description confirmed, logic equations describing the

    data flow are then created.

    (x AND y) AND enable

    (xy OR xy ) AND enable

    xy

    enable

    carryresult

    carry = (x AND y) AND enable

    result = (xy OR xy ) AND enable

    *Again, the model can be simulated at this level to confirm the

    logic equations

    2012/10/18 76

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    77/78

    Logic Design

    Finally, the structural description is created at the gate level

    *These gates can be pulled from a library of parts

    x

    y

    xy

    enablecarry

    result

    2012/10/18 77

  • 7/31/2019 Lec 5 _ HDL-Based Digital Design

    78/78

    o USA DoD:United States Department ofDefenseo RTL:register-transfer levelo EDA or ECAD:Electronicdesign automation is a category of

    software tools for .... Logic simulation digital-simulation ofan RTL or gate-netlist's digital (boolean ...

    http://www.google.com.eg/url?sa=t&rct=j&q=DoD&source=web&cd=1&cad=rja&ved=0CB4QFjAA&url=http%3A%2F%2Fwww.defense.gov%2F&ei=zfqGUPi2MYXSsgaqwoGgDA&usg=AFQjCNHvKvPkmHYKerfPVK7fjuOQYdgnnghttp://www.google.com.eg/url?sa=t&rct=j&q=DoD&source=web&cd=1&cad=rja&ved=0CB4QFjAA&url=http%3A%2F%2Fwww.defense.gov%2F&ei=zfqGUPi2MYXSsgaqwoGgDA&usg=AFQjCNHvKvPkmHYKerfPVK7fjuOQYdgnnghttp://www.google.com.eg/url?sa=t&rct=j&q=DoD&source=web&cd=1&cad=rja&ved=0CB4QFjAA&url=http%3A%2F%2Fwww.defense.gov%2F&ei=zfqGUPi2MYXSsgaqwoGgDA&usg=AFQjCNHvKvPkmHYKerfPVK7fjuOQYdgnnghttp://www.google.com.eg/url?sa=t&rct=j&q=DoD&source=web&cd=1&cad=rja&ved=0CB4QFjAA&url=http%3A%2F%2Fwww.defense.gov%2F&ei=zfqGUPi2MYXSsgaqwoGgDA&usg=AFQjCNHvKvPkmHYKerfPVK7fjuOQYdgnnghttp://www.google.com.eg/url?sa=t&rct=j&q=DoD&source=web&cd=1&cad=rja&ved=0CB4QFjAA&url=http%3A%2F%2Fwww.defense.gov%2F&ei=zfqGUPi2MYXSsgaqwoGgDA&usg=AFQjCNHvKvPkmHYKerfPVK7fjuOQYdgnnghttp://www.google.com.eg/url?sa=t&rct=j&q=DoD&source=web&cd=1&cad=rja&ved=0CB4QFjAA&url=http%3A%2F%2Fwww.defense.gov%2F&ei=zfqGUPi2MYXSsgaqwoGgDA&usg=AFQjCNHvKvPkmHYKerfPVK7fjuOQYdgnng