Important Components, Blocks and Methodologies. To remember 1.EXORS 2.Counters and Generalized Counters 3.State Machines (Moore, Mealy, Rabin-Scott) 4.Controllers.

Slides:



Advertisements
Similar presentations
Part 4: combinational devices
Advertisements

Lecture 15 Finite State Machine Implementation
State-machine structure (Mealy)
Registers and Counters
TOPIC : Finite State Machine(FSM) and Flow Tables UNIT 1 : Modeling Module 1.4 : Modeling Sequential circuits.
التصميم المنطقي Second Course
Zvi Kohavi and Niraj K. Jha 1 Introduction to Synchronous Sequential Circuits and Iterative Networks.
Circuits require memory to store intermediate data
ECE 331 – Digital System Design Introduction to and Analysis of Sequential Logic Circuits (Lecture #20) The slides included herein were taken from the.
Review and Overview. Review  Combinational logic circuit – Decoder, Encoder, Multiplexer, De-multiplexer, Full Adder, Multiplier  Sequential logic circuit.
Discussed in class and on Fridays n FSMs (only synchronous, with asynchronous reset) –Moore –Mealy –Rabin-Scott n Generalized register: –With D FFs, –With.
1 COMP541 State Machines Montek Singh Feb 6, 2007.
Logic and Computer Design Fundamentals Registers and Counters
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
Chapter 7 - Part 2 1 CPEN Digital System Design Chapter 7 – Registers and Register Transfers Part 2 – Counters, Register Cells, Buses, & Serial Operations.
ECE 301 – Digital Electronics Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #17)
ECE 331 – Digital Systems Design Introduction to Sequential Logic Circuits (aka. Finite State Machines) and FSM Analysis (Lecture #19)
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
Lecture 21 Overview Counters Sequential logic design.
More Basics of CPU Design Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University.
CS 105 Digital Logic Design
Sequential Circuits Chapter 4 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer,  S.
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions.
Chapter 5 - Part Sequential Circuit Design Design Procedure  Specification  Formulation - Obtain a state diagram or state table  State Assignment.
CSI-2111 Computer Architecture Ipage Sequential circuits, 2nd part v Objectives: To recognize and know to use the principal types of sequential.
ECE 101 An Introduction to Information Technology Digital Logic.
Logical Circuit Design Week 8: Arithmetic Circuits Mentor Hamiti, MSc Office ,
Registers and Counters
Rabie A. Ramadan Lecture 3
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
IKI a-Combinatorial Components Bobby Nazief Semester-I The materials on these slides are adopted from those in CS231’s Lecture Notes.
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part3.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
ENG241 Digital Design Week #8 Registers and Counters.
Chap 5. Registers and Counters. Chap Definition of Register and Counter l a clocked sequential circuit o consist of a group of flip-flops & combinational.
Introduction to State Machine
Discussed in class and on Fridays n FSMs (only synchronous, with asynchronous reset) –Moore –Mealy –Rabin-Scott n Generalized register: –With D FFs, –With.
COMP541 Arithmetic Circuits
CHAPTER 6 Sequential Circuits’ Analysis CHAPTER 6 Sequential Circuits’ Analysis Sichuan University Software College.
Registers; State Machines Analysis Section 7-1 Section 5-4.
Chapter 8 -- Analysis and Synthesis of Synchronous Sequential Circuits.
ENG241 Digital Design Week #7 Sequential Circuits (Part B)
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Chap 5. Registers and Counters
Common Elements in Sequential Design. Lecture 3 topics  Registers and Register Transfer  Shift Registers  Counters Basic Counter Partial sequence counters.
Logic Design (CE1111 ) Lecture 6 (Chapter 6) Registers &Counters Prepared by Dr. Lamiaa Elshenawy 1.
Topic: N-Bit parallel and Serial adder
Explain Half Adder and Full Adder with Truth Table.
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
Arithmetic Circuits I. 2 Iterative Combinational Circuits Like a hierachy, except functional blocks per bit.
More on Digital Logic Devices and Circuits Trac D. Tran ECE Department The Johns Hopkins University Baltimore, MD
Finite Automata (FA) with Output FA discussed so far, is just associated with R.Es or language. Is there exist an FA which generates an output string corresponding.
1 Digital Design Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
Combinational Circuits
Figure 8.1. The general form of a sequential circuit.
Registers and Counters
EKT 221 – Counters.
EKT 221 : Digital 2 COUNTERS.
FIGURE 5.1 Block diagram of sequential circuit
Asynchronous Inputs of a Flip-Flop
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.
Instructor: Alexander Stoytchev
CSE 370 – Winter Sequential Logic-2 - 1
Instructor: Alexander Stoytchev
CSE 370 – Winter Sequential Logic-2 - 1
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Lecture 17 Logistics Last lecture Today HW5 due on Wednesday
Instruction execution and ALU
Presentation transcript:

Important Components, Blocks and Methodologies

To remember 1.EXORS 2.Counters and Generalized Counters 3.State Machines (Moore, Mealy, Rabin-Scott) 4.Controllers (FSM for control + Data Path) 5.Iterative Circuits 6.Generalized Register 7.Pipelined 8.Cellular Automata 9.Oracle 10.Data Flow Graph 11.Butterfly 12.Ping-Pong Architecture 13.Trees 14.Sequence Generators (permutations, selections, tree-search strategies) 15. Sequence Detectors 16.Sequence Transformers

Useful tool for your creativity! Cellular Automaton Systolic Controller Ping-Pong Pipelined Combinational Hierarchical Iterative Circuit SorterXXXXX Fast Fourier Butterfly XXXXX Max of N numbers XXXX Matrix – Vector Multiplicatio n XXXXX Comparator of order XXXXXX Morphologica l Image Processing XXXXXX Other?? architecture Design problem

XORs and XNORs

XOR

XOR gates A  0 = A A  1 = A’ A  A’ = 1 A + B = A  B  AB AB’ + A’B = AB’  A’B A  B’ = A’  B = (A  B)’

Cascading XOR gates

Parity Generation

74x280 9-bit odd/even parity generator

Tree and Iterative circuits

Fig XORs in comparators Always two choices: Tree Linear array (iterative)

Big OR functions

Sequence Detectors

14 Sequence Detector One-input/one-output sequence detector: produces output value 1 every time sequence 0101 is detected, else 0 Example: > State diagram and state table: Transition and output tables:

15 Sequence Detector (Contd.) Excitation and output maps: Logic diagram: z = xy 1 y 2 ’ y 1 = x’y 1 y 2 + xy 1 ’y 2 + xy 1 y 2 ’ y 2 = y 1 y 2 ’ + x’y 1 ’ + y 1 ’y 2 Clock in D type synchronized FF is not shown

Sequence Detector (Contd.) Another state assignment: z = xy 1 y 2 Y 1 = x’y 1 y 2 ’ + xy 2 Y 2 = x’ State assignment is really important for iterative circuits

Big Counters

18 Binary Counter One-input/one-output modulo-8 binary counter: produces output value 1 for every eighth input 1 value State diagram and state table: This is different type of graph of counter that we discussed before. Earlier the graph had no input and changes to new states corresponded to clock This graph assumes asynchronous FFs. Mealy table Stays in the same state

Binary Counter (Contd.) Transition and output tables: Excitation table for T flip-flops and logic diagram: T 1 = x T 2 = xy 1 T 3 = xy 1 y 2 z = xy 1 y 2 y 3 Realization with asynchronous FFs, no clock

Implementing the Counter with asynchronous SR Flip-flops Transition and output tables: Excitation table for SR flip-flops and logic diagram: Trivially extensible to modulo-16 counter S 1 = xy 1 ’ R 1 = xy 1 S 2 = xy 1 y 2 ’ R 2 = xy 1 y 2 S 3 = xy 1 y 2 y 3 ’ R 3 = z = xy 1 y 2 y 3 Asynchronous FFs, no clock

Counter Problems to think about: Design a counter modulo 2 k Design a counter modulo Design a counter in Gray Code. Design a counter in arbitrary code. Design a switchable counter in two codes with two capacities Design a reversible counter that can count up or down

Sequential Parity Generators

23 Parity-bit Generator Serial parity-bit generator: receives coded messages and adds a parity bit to every m-bit message Assume m = 3 and even parity State diagram and state table: J 1 = y 2 K 1 = y 2 ’ J 2 = y 1 ’ K 2 = y 1 J 3 = xy 1 ’ + xy 2 K 3 = x + y 2 ’ z = y 2 ’y 3

Controllers = (FSM+DataPath)

Sequential Circuit as a Control Element Control element: streamlines computation by providing appropriate control signals Example: digital system that computes the value of (4a + b) modulo 16 a, b: four-bit binary number X: register containing four flip-flops x: number stored in X Register can be loaded with: either b or a + x Addition performed by: a four-bit parallel adder K: modulo-4 binary counter, whose output L equals 1 whenever the count is 3 modulo 4

26 Example (Contd.) Sequential circuit M: Input u: initiates computation Input L: gives the count of K Outputs:,,, z When = 1: contents of b transferred to X When = 1: values of x and a added and transferred back to X When = 1: count of K increased by 1 z = 1: whenever final result available in X

Example (Contd.) Sequential circuit M: K, u, z: initially at 0 When u = 1: computation starts by setting = 1 –Causes b to be loaded into X To add a to x: set = 1 and = 1 to keep track of the number of times a has been added to x After four such additions: z = 1 and the computation is complete At this point: K = 0 to be ready for the next computation State diagram:

28 Example (Contd.) State assignment, transition table, maps and logic diagram: = y 1 ’y 2 = = y 1 y 2 z = y 1 y 2 ’ Y 1 = y 2 Y 2 = y 1 ’y 2 + uy 1 ’ + L’y 2 Sequential circuit

Every student has to know (from ECE 271) 1.Realization of a state table from a state graph 2.Encoding of a state table D 3.Realization of a state table with D FFs. JK 4.Realization of a state table with JK FFs. T 5.Realization of a state table with T FFs. Iterative CircuitRealization of a state table with Iterative Circuit Synchronous versus asynchronous FFs.

30 Arithmetic Circuits Arithmetic Circuits

31 Topics Adder circuits How to subtract –Why complemented representation works out so well Overflow

32 Iterative Circuit Functional blocks per bit

33 Adders Great example of this type of design Design 1-bit circuit, then expand Let’s look at –Half adder – 2-bit adder, no carry in Inputs are bits to be added Outputs: result and possible carry –Full adder – includes carry in, really a 3-bit adder

34 Half Adder S = X  Y C = XY

35 Full Adder Three inputs. Third is Cin Two outputs: sum and carry

36 Two Half Adders (and an OR) From Truth Table at the left we get this

37 Ripple-Carry Adder Straightforward – connect full adders Carry-out to carry-in chain –C 0 in case this is part of larger chain, or just ‘0’

Iterative Circuits

39 Iterative Combinational Circuits Iterative network: cascade of identical cells Sequential: counter, shift register Combinational Every finite output sequence that can be produced sequentially by an FSM can also be produced spatially (or simultaneously) by a combinational iterative network Analogy between iterative networks and sequential machines: Cell inputs/outputs Input/output carries

Iterative combinational Circuits Another notation and names

Iterative Comparators

Iterative comparator of equality

74x682 8-bit comparator Faster circuit

44 Cell Table Cell table: analogous to state table Example: 0101 pattern detector Assuming the same assignment for states (A: 00, B: 01, C: 11, D: 10): each cell same as the combinational logic of the sequential circuit derived for the 0101 sequence detector earlier

45 Synthesis Example: synthesize an n-cell iterative network Each cell has one cell input x i and one cell output z i z i = 1: if and only if either one or two of the cell inputs x 1, x 2, …, x i have value 1 States A, B, C, D: 0, 1, 2, (3 or more) of the cell inputs to preceding cells have value 1 Cell table Cell Output-carries and cell-output table

Iterative comparator of orders and equality 1.Calculated last week 2.Starts from graph 3.Next table from graph 4.Realize circuit combining identical blocks 5.Last block different 6.Transition from combinational to sequential circuit 7.Main tradeoff of digital design – parallel versus serial

General Iterative Circuits

Structures of generalized iterative circuits

Structures

It seems to be a loop here, but there is no loop You cannot create a loop that would cause creation of a memory. Circuit can have a loop but no memory.

Students that do not understand iterative circuits will be severely penalized!

Slides from Wakerly Montek Singh