COMP541%20Combinational%20Logic%20and%20Design - PowerPoint PPT Presentation

About This Presentation
Title:

COMP541%20Combinational%20Logic%20and%20Design

Description:

assign E = ~(Ei[0] | Ei[1] | Ei[2] | Ei[3]); endmodule. 24 ... mx m3(A[3], B[3], Ei[3]); me me0(E, Ei); endmodule. 25. Integrated Circuit. Known as IC or chip ... – PowerPoint PPT presentation

Number of Views:38
Avg rating:3.0/5.0
Slides: 39
Provided by: Montek5
Learn more at: http://www.cs.unc.edu
Category:

less

Transcript and Presenter's Notes

Title: COMP541%20Combinational%20Logic%20and%20Design


1
COMP541Combinational Logic and Design
  • Montek Singh
  • Jan 25, 2007

2
Topics
  • What we didnt cover last time
  • Other gates, standard forms
  • Combinational Design (Ch. 3)
  • Real Devices
  • Logic Families, Actual ICs, Gate delays
  • Propagation delay

3
Combinational Logic Design
  • Ch. 3 takes us to hierarchical design
  • Like youd use for a program of size

4
Design Hierarchy
  • Just like with large program, to design a large
    chip need hierarchy
  • Divide and Conquer
  • To create, test, and also to understand
  • Block is equivalent to object

5
Example
  • 9-input odd func (parity for byte)
  • Block for schematic is box with labels

6
Design Broken Into Modules
  • Use 3-input odd functions

7
Each Module uses XOR
8
Use NAND to Implement XOR
  • In case theres no XOR, for example

9
Design Hierarchy
10
Components in Design
  • RHS shows what must be designed

11
Reuse is Common
  • Certainly forced because of availability of parts
    (chips)
  • Also the design cycle was very long
  • Now more flexibility with programmable logic
  • But still reuse from libraries or intellectual
    property (IP)
  • Example buy a PCI design
  • Open source, see www.opencores.org
  • Note the many logic blocks available in Xilinx
    library

12
Flow of CAD System
Replaces Generic Gates with ones available in
Technology Library
Generic Gates
  • Netlist is description of connections

13
Technology Mapping
  • Full custom
  • Pixel-Planes chips (machines in lobby)
  • Memories, CPUs, etc
  • Standard cell
  • Library of cells
  • Engineer determined interconnection
  • Gate arrays
  • Small circuits with interconnect

14
Hierarchy Example 4-bit Equality
  • Example 3-4 in book
  • Input 2 vectors A(30) and B(30)
  • Output One bit, E, which is 1 if A and B are
    bitwise equal, 0 otherwise

15
Design
  • Hierarchical design seems a good approach
  • One module/bit
  • Final module for E

16
Design for MX module
  • Logic function in book is
  • Id call this not E, but
  • Can implement as

17
Design for ME module
  • Final E is 1 only if all intermediate values are
    0
  • So
  • And a design is

18
Hierarchical Verilog
  • We already saw example of instantiation when we
    used AND and OR gates
  • Just use module name and an identifier for the
    particular instance

19
Vector of Wires (Bus)
  • Denotes a set of wires
  • input 10 S
  • Syntax is a b where a is high-order
  • So this could be 01 S
  • Order will matter when we make assignments with
    values bigger than one bit
  • Or when we connect sets of wires
  • NOTE THIS IS NOT AN ARRAY!

20
DEMO
  • Lets try entering the hierarchical example

21
Next slides document design
  • Just for your notes

22
MX
  • module mx(A, B, E)
  • input A, B
  • output E
  • assign E (A B) (A B)
  • endmodule

23
ME
  • module me(E, Ei)
  • input 30 Ei
  • output E
  • assign E (Ei0 Ei1 Ei2 Ei3)
  • endmodule

24
Top Level
  • module top(A, B, E)
  • input 30 A
  • input 30 B
  • output E
  • wire 30 Ei
  • mx m0(A0, B0, Ei0)
  • mx m1(A1, B1, Ei1)
  • mx m2(A2, B2, Ei2)
  • mx m3(A3, B3, Ei3)
  • me me0(E, Ei)
  • endmodule

25
Integrated Circuit
  • Known as IC or chip
  • Silicon containing circuit
  • Later in semester well examine design and
    construction
  • Maybe processes
  • Packaged in ceramic or plastic
  • From 4-6 pins to hundreds
  • Pins wired to pads on chip

26
Bonding
27
Levels of Integration
  • SSI
  • Individual gates
  • MSI
  • Things like counters, single-block adders, etc.
  • Like stuff well be doing next
  • LSI
  • VLSI
  • Larger circuits, like the FPGA, Pentium, etc.

28
Logic Families
  • RTL, DTL earliest
  • TTL was used 70s, 80s
  • Still available and used occasionally
  • 7400 series logic, refined over generations
  • CMOS
  • Was low speed, low noise
  • Now fast and is most common
  • BiCMOS and GaAs
  • Speed

29
Catalogs
  • Catalog pages describe chips
  • Look at
  • http//focus.ti.com/lit/ds/scas014c/scas014c.pdf
  • Specifications
  • Pinouts
  • Packages/Dimensions
  • Electrical characteristics

30
Electrical Characteristics
  • Fan in max number of inputs to a gate
  • Fan out how many standard loads it can drive
    (load usually 1)
  • Voltage often 1.8v, 3.3v or 5v are common
  • Noise margin how much electrical noise it can
    tolerate
  • Power dissipation how much power chip needs
  • TTL high
  • Some CMOS low (but look at heat sink on a
    Pentium)
  • Propagation delay next

31
Propagation Delay
  • Max of high-to-low and low-to-high
  • Maximum and typical given

32
Delays
  • Transport delay pure delay
  • Output after a specified time
  • Inertial delay
  • No effect if input occurs for time that is too
    short (cant overcome inertia) smaller than
    transport delay time

33
Effect of Transport Delay (blue)
  • Delay just shifts signal in time

34
Effect of Inertial Delay
  • Blue Propagation delay time Black
    Rejection time

35
Fan Out and Delay
  • Practical fan out of CMOS limited by capacitance
    of input gates
  • More gates driven, longer time for signal to
    change
  • So delay time for CMOS affected by fan out
  • Wire delay also very important
  • And routing delays in FPGA

36
Example using ISE
  • Look at Lab 1 (tomorrow)
  • Synthesis report timing prediction
  • Text-based Post Place Route timing report
  • View routed design
  • To see where components and I/O buffers are
    located

37
Today
  • Design paradigm
  • Hierarchical design
  • Talked about real devices
  • Propagation delays
  • First look at how fast your circuits could work

38
Next Time
  • Basic combinational circuits
  • Multiplexer
  • Encoders
  • Decoders

39
Read
  • Chapter 4
  • Sections 3, 4, 5
  • Section 4-8 covers Verilog
Write a Comment
User Comments (0)
About PowerShow.com