Lecture 15 Sequential Circuit Design

Slides:



Advertisements
Similar presentations
Lecture 11-1 FPGA We have finished combinational circuits, and learned registers. Now are ready to see the inside of an FPGA.
Advertisements

컴퓨터구조론 교수 채수환. 교재 Computer Systems Organization & Architecture John D. Carpinelli, 2001, Addison Wesley.
Chapter #10: Finite State Machine Implementation
Lecture 15 Finite State Machine Implementation
Sequential Circuits1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
©2004 Brooks/Cole FIGURES FOR CHAPTER 9 MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES Click the mouse to move to the next page. Use the ESC key.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
Multiplexers, Decoders, and Programmable Logic Devices
ECE 331 – Digital System Design Tristate Buffers, Read-Only Memories and Programmable Logic Devices (Lecture #16) The slides included herein were taken.
Sequential Circuits. Combinational Circuits + Storage element output depends both on previous state and input Fig. 5-1.
1 Lecture 32 Datapath Analysis. 2 Overview °Datapaths must deal with input and output data values Implement with tri-state buffers °Necessary to control.
CHAPTER 9 MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES
Basic Sequential Components CT101 – Computing Systems Organization.
Digital System Design using VHDL
FIGURES FOR CHAPTER 16 SEQUENTIAL CIRCUIT DESIGN
Programmable Logic Devices
This chapter in the book includes: Objectives Study Guide
Issues in FPGA Technologies
ETE Digital Electronics
CHAPTER 16 SEQUENTIAL CIRCUIT DESIGN
Sequential Logic Design
Lecture 10 Flip-Flops/Latches
Chapter #6: Sequential Logic Design
Lecture 13 State Machines / ROMs
Flip Flops Lecture 10 CAP
Topics SRAM-based FPGA fabrics: Xilinx. Altera..
Combinational circuits
This chapter in the book includes: Objectives Study Guide
Lecture 13 Derivation of State Graphs and Tables
Lecture 12 Analysis of Clocked Sequential Network
Each I/O pin may be configured as either input or output.
Analysis of Clocked Sequential Circuit
CS 352 Introduction to Logic Design
Flip Flops.
FIGURE 5.1 Block diagram of sequential circuit
Appendix B The Basics of Logic Design
Electronics for Physicists
CS Chapter 3 (3A and ) – Part 4 of 5
Asynchronous Inputs of a Flip-Flop
This chapter in the book includes: Objectives Study Guide
3.2 Shift Register Basic shift register function
ECE 434 Advanced Digital System L03
ECE Digital logic Lecture 16: Synchronous Sequential Logic
CPE/EE 422/522 Advanced Logic Design L03
332:437 Lecture 12 Finite State Machine Design
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
CPE/EE 422/522 Advanced Logic Design L02
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
Dr. Clincy Professor of CS
Field Programmable Gate Array
Field Programmable Gate Array
COOLRUNNER II REAL DIGITAL CPLD
Field Programmable Gate Array
CSE 370 – Winter Sequential Logic-2 - 1
ECE 434 Advanced Digital System L04
COE 202: Digital Logic Design Sequential Circuits Part 4
The Xilinx Virtex Series FPGA
FIGURE 7.1 Conventional and array logic diagrams for OR gate
ECE 434 Advanced Digital System L05
Computer Architecture and Organization: L02: Logic design Review
CSE 370 – Winter Sequential Logic-2 - 1
Registers.
The Xilinx Virtex Series FPGA
Electronics for Physicists
"Computer Design" by Sunggu Lee
FIGURE 5-1 MOS Transistor, Symbols, and Switch Models
Chapter 5 Sequential Circuits.
Week 11 Flip flop & Latches.
Implementation Strategies
Presentation transcript:

Lecture 15 Sequential Circuit Design Example: Code converter Put it all together using what we learn previously. Inputs are received according to time t0, t1, t2, t3. Chap 16

Code Converter State table construction: least significant bit is received first. At t1, starting with B = 0, if the network receives X = 0, we call state D. This means 00 is received. We should give Z = 1 for input X = 0. (Check Table 16-1 for all 00s, we have Z=1 at t1). For input = 0, output = 1 (Check T 16-1 at t0) Chap 16

Code Converter (cont.) Or construct the state graph first. Starting at t3, path 0000 has outputs 0011 as given in Table 16-1. Chap 16

Code Converter (cont.) State reduction: find the equivalent states. Chap 16

Code Converter (cont.) State assignment State B and C, D and E, H and M should be given adjacent assignments. State A,B,E,M, state C, D, and H should be given adjacent assignments. G3. (Output) Chap 16

Code Converter (cont.) Find the Q+ map, and then the FF input equations. Chap 16

Iterative Circuits Same operation in each cell. Parallel inputs/parallel outputs Combinational cells Primary inputs Xi Primary output Zi Secondary input ai Secondary output a i+1 Chap 16

A Comparator Compare two binary numbers Si Si+1 X = x1x2….xn and Y = y1y2y3.. yn The left bit is the most significant bit. Comparison proceeds from left to right. To the left of cell i, either X=Y, X>Y, or X<Y These input conditions called S0, S1, S2 S i+1 is output state at the right of cell i with the input xi yi and the input state at the left of the cell (Si) Si Si+1 Chap 16

A Cell in the Comparator State assignment Chap 16

End Cells in the Comparator For the left end cell, a1= b1 = 0. Can be used to simplify the equation for this cell. Output Z1 (X < Y) = 1 (S2 = 10 = a n+1 b n+1), 11 is not used. Chap 16

Sequential Circuit Version Inputs are received serially. Use the same table (state table) The same next state equations. Chap 16

Sequential Circuits Using ROMs ROM for combinational parts 7 states: 3 D FFs => 4 outputs/4 inputs Chap 16

Sequential Circuits Using ROMs ROM for combinational parts 7 states: 3 D FFs => 4 outputs/4 inputs Q+ Address bus Data bus Chap 16

Sequential Circuits Using PLAs For PLA, this table uses 4 inputs/4 outputs, 13 products terms (excluding xxxx) PLA Chap 16

Sequential Circuits Using PLAs For PLA, this table uses 4 inputs/4 outputs and 7 product terms. (Fig 16-2 assignment) Chap 16

PALs for Sequential Circuit Programmable AND array. Q+ = D = A’BQ’ + AB’Q Chap 16

CPLDs for Sequential Circuit CPLD = function blocks + MCs + AIM + I/Os + etc PLA in each function block AIM: advanced interconnection matrix Macocell = MUXs + FFs (or latches) Dual-edge triggered FF Chap 16

A Macrocell CPLD D or T or S-R Product terms Logic 1 (get OR’) Logic 0 (pass OR) OR array AND array Invert clock D or T or S-R Chap 16

CPLDs for Sequential Circuit CPLD for a Mealy machine 4 macrocells Two for D FF inputs Two for output Z AIM Chap 16

FPGAs for Sequential Circuit FPGA = configurable logic blocks (CLB) + I/O blocks + (memory blocks + CLK generators + tri-state buffers) CLB = LUTs + MUXes + D-CE FFs I/O block = FFs (for I/O) + tri-state buffers Chap 16

FPGAs for Sequential Circuit FPGA for a Mealy machine FG: functional generator Chap 16

Simulations Functional level Logic level Circuit level Sequence of transfers btw registers, ALU, memories. Verify high level system design Logic level Logic gates, FF, and interconnection Verify logic design and analyze timing Circuit level Each gate is represented in transistors, R, C. Information about voltage level and switching speed. Chap 16

Delays Unit delay model for simulation at first. Minimum – Nominal- Maximum delay Shaded area indicates that B may change at any time during this interval. Chap 16

Synchronizer Circuits Purpose: Synchronize the inputs w.r.t. clock. X1s and X2s always change immediately following the clock pulse. Inputs are loaded into the shift register and use the same clock to shift one at a time Chap 16

Synchronizer Circuits This synchronizer may fail if the FF enters the metastable state. When the signal that is sampled is not stable for the required set-up time and hold time. The FF may go into a metastable state where the output will not have a legitimate high or low value, but in an indeterminate region between them. The FF can not be guaranteed to exit the metastable in any bounded time. But the probability of the FF in the metastable state decreases exponentially with time. So, the solution is to wait more time until the output is stable. Chap 16

Synchronizer Circuits This synchronizer will work properly if the period of metastability is less than the clock period. The first output of the D FF may be metastable, it will not be seen by other logic element until the second clock, when the second D FF samples the signal, which by that time should no longer be in a metastable state. It does not matter whether X1s is delayed for one or two clocks. Chap 16