verilog basics 7 examples of basic components

Upload: ahmad-shdifat

Post on 05-Apr-2018

235 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    1/24

    1

    Digital System Design

    Verilog:Examples of Basic Components

    Dr. Bassam Jamil

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    2/24

    2222

    Topics

    Combinational Designs

    Mux/Dec/Encoder

    Sequential Designs

    FFs/Latches/Counters/Shifters

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    3/24

    3

    Parameterized Mux Designs

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    4/24

    4

    Parameterized Comparator Design

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    5/24

    5

    Mux With Tri-State Output

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    6/24

    6

    Encoder Design (1)

    endmodule

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    7/247

    Encoder Design (2)

    ad

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    8/248

    Priority Encoder Design (1)

    Adaf

    endmodule

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    9/249

    Priority Encoder Design (2)

    ad

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    10/2410

    Decoder Design (1)

    Design (1) Design (2)

    ad

    endmodule

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    11/2411

    Seven Segment Display

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    12/2412

    Flip-Flops(1)

    D

    clk

    q

    D

    clk

    q

    en

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    13/2413

    Flip-Flops (2)

    QD

    resetN

    enable

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    14/2414

    Flip-Flip (3)

    Synchronous Set/Reset FF Asynchronous Set/Reset FF

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    15/2415

    Latch Design

    Transparent latch does not change the output ifthe enable (or clk) is off

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    16/2416

    Register Design

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    17/2417

    Register with Generate Statement

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    18/2418

    Register Design: Parallel Load

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    19/2419

    Register Design: Shift Register

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    20/2420

    Barrel Shift Register

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    21/2421

    Universal Shift Register

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    22/24

    22

    Register File

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    23/24

    23

    Up-Down Counter with Parallel Load

  • 7/31/2019 Verilog Basics 7 Examples of Basic Components

    24/24

    24

    Ring Counter