Logic Design ( Part 3) Sequential Logic (Chapter 3)

Size: px
Start display at page:

Download "Logic Design ( Part 3) Sequential Logic (Chapter 3)"

Transcription

1 o Far: Combinational Logic Logic esign ( Part ) equential Logic (Chapter ) Based on slides McGraw-Hill Additional material 24/25/26 Lewis/Martin Additional material 28 oth Additional material 2 Taylor Additional material 2 Farmer Additional material 24 Narahari Combinational Logic: Always gives the same output for a given set of inputs Aka state-less (i.e., no state or memory ) equential Logic: Its output depends on its inputs & its last output! Forms the basis for state or memory for a computer Combinational vs. equential Combinational Circuit always gives the same output for a given set of inputs ex: adder always generates sum and carry, regardless of previous inputs equential Circuit stores information output depends on stored information (state) plus input so a given input might produce different outputs, depending on the stored information example: elevator Current floor increases when you go up output depends on previous state and inputs (request for current floor) useful for building memory elements and state machines Finite tate Machines The behavior of sequential circuits can be expressed using characteristic tables or finite state machines (FMs). FMs consist of a set of nodes that hold the states of the machine and a set of arcs that connect the states. irected graph to represent a FM Moore and Mealy machines are two types of FMs that are equivalent. They differ only in how they express the outputs of the machine. Moore machines place outputs on each node/state Associate an output with each state Mealy machines present their outputs on the transitions.

2 Example: A Vending Machine Accept user input (coins), when total is at least 75 cents dispense output (soda) Input valid coins: (25cents) () or N (5) What should it keep track of? current total Is it 75 cents or more? When it reaches 75 or more: Generate output esign a Counter: counts from to 7 tates of the machine? Finite tate Machine epresentation of Counter eset Bubbles represent all possible states for the machine (aka your flip-flop based circuit) tate Machine type of sequential circuit Combines combinational logic with storage emembers state, and changes output (and state) based on inputs and current state tate Machine Arrows show movement from one state to the next Inputs Combinational Logic Circuit Outputs Transitions occur at pulse of the clock torage Elements 2

3 equential Logic Where do we start: Build a device, using combinational logic devices, to store a value Latch (also called Latch) concept of memory Build it using the devices we have thus far How? Use feedback circuit What is the methodology behind design of sequential logic circuits Finite tate Machines Example of Vending machine Feedback Circuits What happens if we feed the output of a combinational logic circuit to an input in the circuit? This is the key to circuits that can store values! table circuit Output point of circuit retains value indefinitely Unstable circuit tate that remains constant only for a duration of a few gate delays Combine sequential and combinational logic devices to assemble a simple processor! Feedback circuits download equential Circuits: sequential.cdl Open in Cedar Logic Page of equential Circuits: Example How do the two circuits behave? Feedback Circuits To retain their state values, sequential circuits rely on feedback. Feedback in digital circuits occurs when an output is looped back to the input. A simple example of this concept is shown below. If is it will always be, if it is, it will always be. Why?

4 Latches and Flip-Flops Latch: basic circuit for storage Operate on changes in Level (i.e., or ) Flip-flop: equential circuits take input from output of storage Latches that work on change of level can lead to unstable sequential circuits As level changes the outputs change --- inputs change! Flip-Flop circuits designed to operate properly when they are part of a sequential circuit Most Basic equential Logic Circuit: - Latch Most fundamental unit for static memory Has the ability to store its last output - Latch Cross-Coupled NAN gates Output of each NAN gate serves as input to the other Two inputs: (ET) & (EET) Two outputs: and NOT() ecall: NOT()= ~ = = Called a Latch because it can Latch onto data coming in ~ - Latch The - latch is a bi-stable circuit which means that it can happily exist in either of two stable states. Just like a see-saw. You can push the latch from one state to another by setting or resetting it with the - signals The logic levels are maintained because of the feedback paths from outputs to inputs. Most Basic equential Logic Circuit: - Latch Most fundamental unit for static memory Has the ability to store its last output - Latch Cross-Coupled NAN gates Output of each NAN gate serves as input to the other Two inputs: (ET) & (EET) Two outputs: and NOT() ecall: NOT()= ~ = = Called a Latch because it can Latch onto data coming in ~ Another common way of drawing the same circuit 4

5 Latch Page 2 of equential Circuits: Example Figure on top of page (with one circuit) First, set =, = What is the output? Next, set =, = What is the output? Next, set =, = What is the output? Next, set =, = What is the output? Most Basic equential Logic Circuit: - Latch First, recall truth table for a NAN gate: - Latch Operation: Best place to start is =, = = ~ = A B C X Next, look at top NAN gate Its inputs are: and Blue, comes from lower NAN Produces a at its output Therefore, when =, = The output of latch is: =, ~= -8 Most Basic equential Logic Circuit: - Latch First, recall truth table for a NAN gate: - Latch Operation: = ~ = A B C Truth Table for - Latch: ACTION ~ EET Called the EET action, as is set to Also, notice: and ~ opposite Most Basic equential Logic Circuit: - Latch Truth table for a NAN gate: - Latch Operation: = ~ = A B C Truth Table for - Latch: ACTION ~ ET EET HOL HOL HOL s last value on its outputs! -2 OUTPUT depends on input and last output 5

6 Most Basic equential Logic Circuit: - Latch Truth table for a NAN gate: A B C Most Basic equential Logic Circuit: - Latch Truth table for a NAN gate: A B C - Latch Operation: Next input case is called the ET, when inputs are: =, = = ~ = X st look at upper NAN gate Its inputs are: and X (anything) Produces a at its output Lower NAN gate Inputs are: and Produces a at its output - Latch Operation: = ~ = Truth Table for - Latch: ACTION ~ ET EET -22 ETs LATCH to have a at the output Most Basic equential Logic Circuit: - Latch Truth table for a NAN gate: A B C Most Basic equential Logic Circuit: - Latch Truth table for a NAN gate: A B C - Latch Operation: Last valid input case is the HOL =, = If we have just ET Latch, we will have =, ~=, already on outputs = ~ = Upper NAN gate Has = & former value of ~= Produces a at its output (same ~ as when it started) Lower NAN gate Inputs are: and Produces a at its output (same ) - Latch Operation: = ~ = Truth Table for - Latch: ACTION ~ ET EET HOL HOL s value we ET last -24 6

7 torage - Cross-Coupled NANs (- Latch) Using multiple latches ~ Figure on Page : Multiple latches. What is this circuit doing? tore bit number! What happens with = and =? hort answer: confusion eal circuits depend on both and ~ trange things may happen if both are ACTION ~ ILLEGAL ET EET HOL HOL -Latches shows a way to prevent the Latch from ever getting == as its input torage - Cross-Coupled NANs (- Latch) How does this device store data? Each latch can store -bit of information, Latches, holds -bits Let s assume we wish to store the number 5 ( 2 in binary): ET HOL Gated -Latch: Preventing Illegal tate of Latch Add logic to an - latch Create a more convenient interface, prevent = && = Two inputs: (data) and (write enable) When =, latch is set to value of = NOT(), = EET 5 HOL 5 ET etting the data we wish to store HOL Holding the data we set in the last phase = && = o = 7

8 What to do about the illegal inputs in latch can we make the latch simpler? Page Place an input at, set = What happens to output set =, set input at What happens to output We have a latch simplest way to store a bit If Write Enable = then input is stored IF write enable =, previous value remains in storage Gated -Latch: Preventing Illegal tate of Latch Add logic to an - latch Create a more convenient interface, prevent = && = Two inputs: (data) and (write enable) When =, latch is set to value of = NOT(), = When =, latch continues to hold previous value = = (hold condition for latch) Extra logic does not allow =, = case to occur was held from last state no longer follows, when = -Latch Timing iagram The diagram below is called a Timing iagram Our -Latch is previous-state dependent We can think of this as a time dependency Moving to the right on diagram, represents forward moving time The inputs & outputs to our -Latch are on left Inputs/Outputs can be either HIGH (logic ) or LOW (logic ) Think of this as a time-dependent truth table -Latch Timing iagram When the signal is high the latch is said to be open and the output signal,, follows the input signal,. As in any combinational circuit there will be a small delay between the time that the input changes and the time that the output follows suit. When latch is OPEN (=): Notice, follows Logic level = Logic level = open open time time 8

9 -Latch Timing iagram When the signal is low the latch is closed and the output signal, retains its value. When latch is CLOE (=): Notice, doesn t follow (Instead, has previous value) open closed time open -Latch Timing iagram etup / Hold Times The input signal should () be stable a certain amount of time before the signal is set to CLOE (=) This is referred to as the ETUP time In addition, the input signal () must be stable for a time after the is set to CLOE (=) This is referred to as HOL time Why? Time must be given for inputs to propagate through NAN gates! Gates are not instantaneous! Logic level = open Logic level = closed time open Next torage evices Ok we now have a device ( -Latch) that can store a bit Page 4 Use 4 latches Use this to build real storage devices. Temporary storage in a computer? Where are variables stored before being sent to the arithmetic unit for operations on them? egister Can we build an n-bit register using latches? What about main memory isk Later et input (from keypad) and set = What gets stored et =, try entering inputs 4-bit register 9

10 egister A register stores a multi-bit value. We use a collection of -latches, all controlled by a common. When =, n-bit value is written to register. Multi Bit -Latch A collection of -latches, controlled by a common When =, n-bit value is written to the outputs 2 2 ecall: A Basic Model of a Computer Address ata 2 PC -2 A, -2, $ A,, $ 2 UB $, $, $ 2-7 MPY $, $4, $5 8 4 A $, $5, $ 4 5 IV $, 5, $ Memory We know how to store m-bit number in a register How about many m-bit numbers? Bank of registers? How to fetch a specific m-bit number? addressing 5 9 Memory CPU Instructions Essential Part of Computer! Basic Components: Address: Looks up data Note: both are in binary

11 Memory Now that we know how to store bits, we can build a memory a logical k by m array of stored bits Address pace: number of locations (usually a power of 2) k = 2 n locations Addressability: number of bits per location (e.g., byte-addressable) m bits Memory Interface There are two basic operations on a memory electing one of the memory locations to read from electing one of the memory locations to write to Interface signals A n-bit address lines to select a location out Contents of selected location during read (m bits) in Value to be stored during write (m bits) If = write operation, =, read operation A in n m Memory (2 n by m-bit) m out Memory Looking from the outside, what do we need? Memory Looking from the outside, what do we need? A IN OUT

12 Memory A large number of addressable fixed size locations Address pace n bits allow the addressing of 2 n memory locations. Example: 24 bits can address 2 24 = 6,777,26 locations (i.e. 6M locations). If each location holds byte (= 8 bits) then the memory is 6MB. If each location holds one word (2 bits = 4 bytes) then it is 64 MB. Memory Addressability Computers are either byte or word addressable - i.e. each memory location holds either 8 bits ( byte), or a full standard word for that computer (6 bits for the LC-, more typically 2 bits, though now many machines use 64 bit words). Normally, a whole word is written and read at a time: If the computer is word addressable, this is simply a single address location. If the computer is byte addressable, and uses a multi-byte word, then the word address is conventionally either that of its most significant byte (big endian machines) or of its least significant byte (little endian machines). Memory Given address, fetch contents at that address elect or enable one of many locations Page 6 If we want output to come from one of many locations Multiplexer Control lines to Multiplexer = Address A IN OUT How about writing into one of many locations Enable one out of many locations ecoder Control lines to ecoder = Address 2

13 2 2 by -bit memory ead operation A 2 elects address to read ecall : The ecoder n inputs, 2 n outputs ONLY one AN gate outputs a for each possible input pattern But how do we select/enable ONE of the -latches? Given 2 bit address, elect ONE latch 2 2 or 4 registers 2 MUX out 2-bit decoder Think of it like this: put a binary # on AB, turns on the corresponding output wire! Ex: AB=, rd wire turns high, all the other are low 2 2 by -bit memory Write operation A 2 in 2 2 by -bit memory - Multiple Ports Independent ead/write 2 A W Limitation: You can only read or write at any given time ecoder 2 MUX out A W 2 You can read from one address and write to another with this arrangement (notice address line for address line for W) ecoder 2 MUX

14 2 2 by -bit memory - Multiple ead Ports 2 A 2 A 2 W A W ead from 2 locations At once, Write to a third! (notice address lines) (We will use this later In something called the: register file for the CPU) 2 ecoder 2 2 An Efficient 2 2 by -bit Memory - ingle Port address write enable latch (not flip-flop) address decoder word select output bits word input bits mux What is different? -latch Makes this memory writeable when clock is HIGH, More Memory etails This is still not the way actual memory is implemented eal memory: fewer transistors, denser, relies on analog properties But the logical structure is similar Address decoder Word select line, word write enable Bit line Two basic kinds of AM (andom Access Memory) tatic AM (AM) - 6 transistors per bit Fast, maintains data as long as power applied ynamic AM (AM) - transistor per bit enser but slower, relies on capacitance to store data, needs constant refreshing of data to hold charge on capacitor Also, non-volatile memories: OM, POM, flash, ynamic AM Information stored as charge on capacitors. Capacitors leak so values have to be refreshed continually As memory chips get larger, access times tend to increase. The processor spends more time waiting for data. This is a major issue limiting computer systems performance 4

15 Example Intel Core i5 Processor Clock rates approx 2.5GHz, Clock period approx.4 ns PC2-5 O-IMM 2 GB Memory Can deliver at most 64-bit word every.5 ns Mismatch between processor speed and memory speed Memory Hierarchy Modern computers try to mitigate memory delays by exploiting locality of reference through caches. maller, faster memory stores are placed closer to the CPU and bulk transfers from slower memory are used CPU Cache Memories Main Memory torage in MegaBytes, access times single clock cycles torage in GigaBytes, access time s of clock cycles isks Magnetic, Flash etc. torage in TeraBytes, access time s of clock cycles Memory Hierarchy Will return to this at the end of the course.! Are we ready to design sequential circuits and finite state machines? Is something missing? When do states change in a machine? o we let states change at arbitrary times? What do you think happens in a computer? 5

16 Clocked Flip-Flops/Circuits ubsystem in a computer consists of a large number of combinational and sequential devices Each sequential device is like latch which is in one of two states As machine executes its cycle, the states of all sequential devices change with time To control large collection of devices in an orderly (synchronized) fashion, machine maintains a clock equires all devices to change their states at the same time Clock generates sequence of pulses Clock Page 7 Input to latch can be written only when clock is high Much easier to design, debug, implement, and test How do we change latches so that they allow change in state synchronized with the clock? equential logic circuits require a means by which events can be sequenced..clock! Attaching Clock to -Latch Let s attach CLOCK to the on -Latch clock We create windows of time that we can store data into latch When the CLOCK is HIGH -latch is open When the CLOCK is LOW -latch is closed We have to prepare what we wish to store, right before latch closes open closed open CLOCK time Introducing - The Clock! A clock controls when stored values are updated Electrical waveform sends pulses through a circuit Oscillating global signal with fixed period One Cycle time The clock will act as the heartbeat of our system The number of cycles per second is the clock frequency measured in cycles per second or Hertz (Hz) The clock period refers to the duration of one clock cycle. The period and frequency are inversely related. Typical clock frequency: 2.5GHz = 2.5 x 9 Hz o corresponding clock period = /(2.5 x 9 ) =.4x -9 sec That would be:.4 nanoseconds 6

17 Let s Try to Build a Counter using the -Latch clock -bit -latch What is a counter? Counter increments value by at each cycle of clock Example: time =, counter = time =, counter = time = 2, counter =... time = 7, counter = + imple 2-bit Counter count from to 2 bit encoding A,B of states:,,, Counts functions: A,B current state A*, B* next state A* = (A B) + (A B ) = A XO B B* = (A B ) + (AB ) = B A B A* B* Let s Try to Build a Counter using the -Latch clock -bit -latch We can t use a -latch to build a counter Why not? Let s say at time=, -latch has: >This is the input to incrementer, so output = >Now is input to the -latch Problem: >We can t guarantee the clock will be low in time to store this new value into the -latch + Flip-Flop (or master-slave flip-flop) Flip-Flop is a pair of latches tupid name, but it stuck Isolates next state from current state Latch # inter 2 Latch #2 Clock Two phases: Clock = : =: Latch # closed, 2 =: Latch #2 open Clock = : =: Latch # open, 2 =: Latch #2 closed 7

18 Flip-Flop timing iagram Latch # inter Latch #2 Flip-Flop vs. -Latch We refer to the flip flop as an edge-triggered device. = ONLY when changes from to Clock inter 2 L -closed L -open L 2 -open L 2 -closed Clock L -closed L -open L 2 -open L 2 -closed This differs from latch, which is: level-triggered = anytime equals Timing iagram for FF: -7-7 Flip-Flop vs. -Latch We refer to the flip flop as an edge-triggered device. = ONLY when changes from to This differs from latch, which is: level-triggered = anytime equals Timing iagram for -Latch: Flip-Flop We can think of the Flip-Flop as a bit storage container with an input,, and an output,. The flip-flop takes a clock input (often denoted with a triangle) A set of flip-flops can be grouped together with common Clock and inputs to form a register. A key component in our processor Flip-Flop Clock 8

19 torage evices Latch tores Bit, Level-Triggered - forbidden input: =, = -Holds ata when = Working Counter Use a clocked register (made of flip-flops) Clock -ff + -Latch tores Bit, Level-Triggered -No forbidden inputs (fixes Latch) -= when = -Holds ata when = FF CLK -Flip-Flop tores Bit, Edge-Triggered -No forbidden inputs -= when (CLK) transitions from to -Holds ata for = or = -Except when transitions from to Counter Timing iagram Incrementer (+) computes the next value of the state register Clock -ff + Finite tate Machine epresentation of Counter eset Bubbles represent all possible states for the machine (aka your flip-flop based circuit) Clock Arrows show movement from one state to the next Transitions occur at pulse of the clock 9

20 Truth Table epresentation of Counter Present tate Next tate 2 (t) (t) (t) 2 (t+) 2 (t+) (t+) Finite tate Machine The counter we designed is an example of a finite state machine. In general a Finite tate Machine consists of An n-bit register which stores the state of the machine A block of logic that computes the next state as a function of the current state and the inputs, if any A block of logic which computes the output based on the current state. Combinational Clock Logic Blocks Inputs Next tate Function tate egister Output Function Outputs One Last Thing Flip-Flop with Additional Write Enable From previous slides, we attached clock to of the -flip-flop Now, we add another line to the flip flop Just holds onto data already stored in FF Give it the ability to ignore the clock! Next. Procedure for designing equential circuits (to implement Finite tate Machine) torage evice to store state: flip flop Logic to implement next state: combinational gates/devices How to derive the logic: truth tables FF Clock Flip-Flop w/ Clock 2

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3)

Logic Design ( Part 3) Sequential Logic- Finite State Machines (Chapter 3) Logic esign ( Part ) Sequential Logic- Finite State Machines (Chapter ) Based on slides McGraw-Hill Additional material 00/00/006 Lewis/Martin Additional material 008 Roth Additional material 00 Taylor

More information

Combinational vs Sequential

Combinational vs Sequential Combinational vs Sequential inputs X Combinational Circuits outputs Z A combinational circuit: At any time, outputs depends only on inputs Changing inputs changes outputs No regard for previous inputs

More information

COMP2611: Computer Organization. Introduction to Digital Logic

COMP2611: Computer Organization. Introduction to Digital Logic 1 COMP2611: Computer Organization Sequential Logic Time 2 Till now, we have essentially ignored the issue of time. We assume digital circuits: Perform their computations instantaneously Stateless: once

More information

Page 1. Some Definitions. Chapter 3: Sequential Logic. Sequential Logic. The Combinational Logic Unit. A NOR Gate with a Lumped Delay

Page 1. Some Definitions. Chapter 3: Sequential Logic. Sequential Logic. The Combinational Logic Unit. A NOR Gate with a Lumped Delay 3- hapter 3 equential Logic hapter 3: equential Logic 3-2 hapter 3 equential Logic ome efinitions r. Tim McGuire am Houston tate University ased on notes by Miles Murdocca ombinational logic: a digital

More information

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic.

Chapter 6. sequential logic design. This is the beginning of the second part of this course, sequential logic. Chapter 6. sequential logic design This is the beginning of the second part of this course, sequential logic. equential logic equential circuits simple circuits with feedback latches edge-triggered flip-flops

More information

Memory, Latches, & Registers

Memory, Latches, & Registers Memory, Latches, & Registers 1) Structured Logic Arrays 2) Memory Arrays 3) Transparent Latches 4) How to save a few bucks at toll booths 5) Edge-triggered Registers L13 Memory 1 General Table Lookup Synthesis

More information

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS

DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS COURSE / CODE DIGITAL SYSTEM FUNDAMENTALS (ECE421) DIGITAL ELECTRONICS FUNDAMENTAL (ECE422) LATCHES and FLIP-FLOPS In the same way that logic gates are the building blocks of combinatorial circuits, latches

More information

Chapter Contents. Appendix A: Digital Logic. Some Definitions

Chapter Contents. Appendix A: Digital Logic. Some Definitions A- Appendix A - Digital Logic A-2 Appendix A - Digital Logic Chapter Contents Principles of Computer Architecture Miles Murdocca and Vincent Heuring Appendix A: Digital Logic A. Introduction A.2 Combinational

More information

Principles of Computer Architecture. Appendix A: Digital Logic

Principles of Computer Architecture. Appendix A: Digital Logic A-1 Appendix A - Digital Logic Principles of Computer Architecture Miles Murdocca and Vincent Heuring Appendix A: Digital Logic A-2 Appendix A - Digital Logic Chapter Contents A.1 Introduction A.2 Combinational

More information

Module for Lab #16: Basic Memory Devices

Module for Lab #16: Basic Memory Devices Module for Lab #16: Basic Memory evices evision: November 14, 2004 LAB Overview This lab introduces the concept of electronic memory. Memory circuits store the voltage present on an input signal (LHV or

More information

COMP sequential logic 1 Jan. 25, 2016

COMP sequential logic 1 Jan. 25, 2016 OMP 273 5 - sequential logic 1 Jan. 25, 2016 Sequential ircuits All of the circuits that I have discussed up to now are combinational digital circuits. For these circuits, each output is a logical combination

More information

Sequential Circuit Design: Part 1

Sequential Circuit Design: Part 1 Sequential Circuit esign: Part 1 esign of memory elements Static latches Pseudo-static latches ynamic latches Timing parameters Two-phase clocking Clocked inverters James Morizio 1 Sequential Logic FFs

More information

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1

Sequential Logic. E&CE 223 Digital Circuits and Systems (A. Kennings) Page 1 Sequential Logic E&CE 223 igital Circuits and Systems (A. Kennings) Page 1 Sequential Circuits Have considered only combinational circuits in which circuit outputs are determined entirely by current circuit

More information

give sequence to events have memory (short-term) use feedback from output to input to store information

give sequence to events have memory (short-term) use feedback from output to input to store information Chapter 3 :: equential Logic esign Chapter 3 :: Topics igital esign and Computer Architecture avid Money Harris and arah L. Harris Introduction Latches and Flip-Flops ynchronous Logic esign Finite tate

More information

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

(CSC-3501) Lecture 7 (07 Feb 2008) Seung-Jong Park (Jay)  CSC S.J. Park. Announcement Seung-Jong Park (Jay) http://www.csc.lsu.edu/~sjpark Computer Architecture (CSC-3501) Lecture 7 (07 Feb 2008) 1 Announcement 2 1 Combinational vs. Sequential Logic Combinational Logic Memoryless Outputs

More information

CPS311 Lecture: Sequential Circuits

CPS311 Lecture: Sequential Circuits CPS311 Lecture: Sequential Circuits Last revised August 4, 2015 Objectives: 1. To introduce asynchronous and synchronous flip-flops (latches and pulsetriggered, plus asynchronous preset/clear) 2. To introduce

More information

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters

Logic and Computer Design Fundamentals. Chapter 7. Registers and Counters Logic and Computer Design Fundamentals Chapter 7 Registers and Counters Registers Register a collection of binary storage elements In theory, a register is sequential logic which can be defined by a state

More information

Chapter 3. Boolean Algebra and Digital Logic

Chapter 3. Boolean Algebra and Digital Logic Chapter 3 Boolean Algebra and Digital Logic Chapter 3 Objectives Understand the relationship between Boolean logic and digital computer circuits. Learn how to design simple logic circuits. Understand how

More information

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic

Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays. Introduction to latches Chapter 9: Binary Arithmetic 12.12.216 Chapter 5 Flip Flops Dr.-ng. Stefan Werner /14 Table of content Chapter 1: Switching Algebra Chapter 2: Logical Levels, Timing & Delays Chapter 3: Karnaugh-Veitch-Maps Chapter 4: Combinational

More information

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic

cascading flip-flops for proper operation clock skew Hardware description languages and sequential logic equential logic equential circuits simple circuits with feedback latches edge-triggered flip-flops Timing methodologies cascading flip-flops for proper operation clock skew Basic registers shift registers

More information

CHAPTER 4: Logic Circuits

CHAPTER 4: Logic Circuits CHAPTER 4: Logic Circuits II. Sequential Circuits Combinational circuits o The outputs depend only on the current input values o It uses only logic gates, decoders, multiplexers, ALUs Sequential circuits

More information

Counters. The simplest circuit for binary counting is a multibit divider.

Counters. The simplest circuit for binary counting is a multibit divider. Counters The simplest circuit for binary counting is a multibit divider. +5 CL 0 1 2 3 Each bit toggles on the downward edge of the preceding bit. The timing is asynchronous. This particular circuit is

More information

Exercises. 162 CHAPTER THREE Sequential Logic Design

Exercises. 162 CHAPTER THREE Sequential Logic Design 162 CHPTE THEE equential Logic Design Exercises Exercise 3.1 Given the input waveforms shown in Figure 3.61, sketch the output,, of an latch. Figure 3.61 Input waveforms of latch for Exercise 3.1 Exercise

More information

UNIT 11 LATCHES AND FLIP-FLOPS

UNIT 11 LATCHES AND FLIP-FLOPS UNIT 11 LATCHE AN FLIP-FLOP pring 2011 Latches and Flip-Flops 2 Contents et-eset latch Gated latch Edge-triggered flip-flop - flip-flop J-K flip-flop T flip-flop Flip-flops with additional inputs eading

More information

CHAPTER 4: Logic Circuits

CHAPTER 4: Logic Circuits CHAPTER 4: Logic Circuits II. Sequential Circuits Combinational circuits o The outputs depend only on the current input values o It uses only logic gates, decoders, multiplexers, ALUs Sequential circuits

More information

Week 4: Sequential Circuits

Week 4: Sequential Circuits Week 4: equential ircuits omething to consider omputer specs use terms like 8 GB of AM and 2.2GHz processors. ú What do these terms mean? AM = andom Access Memory; 8GB = 8 billion ints 2.2 GHz = 2.2 billion

More information

Computer Architecture and Organization

Computer Architecture and Organization A-1 Appendix A - Digital Logic Computer Architecture and Organization Miles Murdocca and Vincent Heuring Appendix A Digital Logic A-2 Appendix A - Digital Logic Chapter Contents A.1 Introduction A.2 Combinational

More information

Chapter 5: Synchronous Sequential Logic

Chapter 5: Synchronous Sequential Logic Chapter 5: Synchronous Sequential Logic NCNU_2016_DD_5_1 Digital systems may contain memory for storing information. Combinational circuits contains no memory elements the outputs depends only on the inputs

More information

Logic Design. Flip Flops, Registers and Counters

Logic Design. Flip Flops, Registers and Counters Logic Design Flip Flops, Registers and Counters Introduction Combinational circuits: value of each output depends only on the values of inputs Sequential Circuits: values of outputs depend on inputs and

More information

Sequential Circuits. Sequential Logic. Circuits with Feedback. Simplest Circuits with Feedback. Memory with Cross-coupled Gates.

Sequential Circuits. Sequential Logic. Circuits with Feedback. Simplest Circuits with Feedback. Memory with Cross-coupled Gates. equential Logic equential Circuits equential Circuits imple circuits with feedback Latches Edge-triggered flip-flops Timing Methodologies Cascading flip-flops for proper operation Clock skew Basic egisters

More information

Introduction to Sequential Circuits

Introduction to Sequential Circuits Introduction to Sequential Circuits COE 202 Digital Logic Design Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals Presentation Outline Introduction to Sequential Circuits Synchronous

More information

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of

The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of 1 The basic logic gates are the inverter (or NOT gate), the AND gate, the OR gate and the exclusive-or gate (XOR). If you put an inverter in front of the AND gate, you get the NAND gate etc. 2 One of the

More information

Sequential Circuit Design: Part 1

Sequential Circuit Design: Part 1 Sequential ircuit esign: Part 1 esign of memory elements Static latches Pseudo-static latches ynamic latches Timing parameters Two-phase clocking locked inverters Krish hakrabarty 1 Sequential Logic FFs

More information

Overview of Chapter 4

Overview of Chapter 4 Overview of hapter 4 Types of equential ircuits torage Elements Latches Flip-Flops equential ircuit nalysis tate Tables tate iagrams equential ircuit esign pecification ssignment of tate odes Implementation

More information

6. Sequential Logic Flip-Flops

6. Sequential Logic Flip-Flops ection 6. equential Logic Flip-Flops Page of 5 6. equential Logic Flip-Flops ombinatorial components: their output values are computed entirely from their present input values. equential components: their

More information

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers

Sequential logic. Circuits with feedback. How to control feedback? Sequential circuits. Timing methodologies. Basic registers equential logic equential circuits simple circuits with feedback latches edge-triggered flip-flops Timing methodologies cascading flip-flops for proper operation clock skew Basic registers shift registers

More information

D Latch (Transparent Latch)

D Latch (Transparent Latch) D Latch (Transparent Latch) -One way to eliminate the undesirable condition of the indeterminate state in the SR latch is to ensure that inputs S and R are never equal to 1 at the same time. This is done

More information

Part 4: Introduction to Sequential Logic. Basic Sequential structure. Positive-edge-triggered D flip-flop. Flip-flops classified by inputs

Part 4: Introduction to Sequential Logic. Basic Sequential structure. Positive-edge-triggered D flip-flop. Flip-flops classified by inputs Part 4: Introduction to Sequential Logic Basic Sequential structure There are two kinds of components in a sequential circuit: () combinational blocks (2) storage elements Combinational blocks provide

More information

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram UNIT III INTRODUCTION In combinational logic circuits, the outputs at any instant of time depend only on the input signals present at that time. For a change in input, the output occurs immediately. Combinational

More information

Sequential Circuits. Introduction to Digital Logic. Course Outline. Overview. Introduction to Digital Logic. Introduction to Sequential Circuits

Sequential Circuits. Introduction to Digital Logic. Course Outline. Overview. Introduction to Digital Logic. Introduction to Sequential Circuits Introduction to igital Logic Prof. Nizamettin IN naydin@yildiz.edu.tr naydin@ieee.org ourse Outline. igital omputers, Number ystems, rithmetic Operations, ecimal, lphanumeric, and Gray odes 2. inary Logic,

More information

Sequential Logic. Introduction to Computer Yung-Yu Chuang

Sequential Logic. Introduction to Computer Yung-Yu Chuang Sequential Logic Introduction to Computer Yung-Yu Chuang with slides by Sedgewick & Wayne (introcs.cs.princeton.edu), Nisan & Schocken (www.nand2tetris.org) and Harris & Harris (DDCA) Review of Combinational

More information

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP

EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP EMT 125 Digital Electronic Principles I CHAPTER 6 : FLIP-FLOP 1 Chapter Overview Latches Gated Latches Edge-triggered flip-flops Master-slave flip-flops Flip-flop operating characteristics Flip-flop applications

More information

MODULE 3. Combinational & Sequential logic

MODULE 3. Combinational & Sequential logic MODULE 3 Combinational & Sequential logic Combinational Logic Introduction Logic circuit may be classified into two categories. Combinational logic circuits 2. Sequential logic circuits A combinational

More information

Logic Design II (17.342) Spring Lecture Outline

Logic Design II (17.342) Spring Lecture Outline Logic Design II (17.342) Spring 2012 Lecture Outline Class # 05 February 23, 2012 Dohn Bowden 1 Today s Lecture Analysis of Clocked Sequential Circuits Chapter 13 2 Course Admin 3 Administrative Admin

More information

! Two inverters form a static memory cell " Will hold value as long as it has power applied

! Two inverters form a static memory cell  Will hold value as long as it has power applied equential Logic! equential Circuits " imple circuits with feedback " Latches " Edge-triggered flip-flops! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew! Basic egisters "

More information

ECE321 Electronics I

ECE321 Electronics I ECE321 Electronics I Lecture 25: Sequential Logic: Flip-flop Payman Zarkesh-Ha Office: ECE Bldg. 230B Office hours: Tuesday 2:00-3:00PM or by appointment E-mail: pzarkesh.unm.edu Slide: 1 Review of Last

More information

Sequential Logic. Sequential Circuits. ! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew

Sequential Logic. Sequential Circuits. ! Timing Methodologies  Cascading flip-flops for proper operation  Clock skew equential Logic! equential Circuits " imple circuits with feedback " Latches " Edge-triggered flip-flops! Timing Methodologies " Cascading flip-flops for proper operation " Clock skew! Basic egisters "

More information

Chapter 3 Unit Combinational

Chapter 3 Unit Combinational EE 200: Digital Logic Circuit Design Dr Radwan E Abdel-Aal, COE Logic and Computer Design Fundamentals Chapter 3 Unit Combinational 5 Registers Logic and Design Counters Part Implementation Technology

More information

CS 61C: Great Ideas in Computer Architecture

CS 61C: Great Ideas in Computer Architecture CS 6C: Great Ideas in Computer Architecture Combinational and Sequential Logic, Boolean Algebra Instructor: Alan Christopher 7/23/24 Summer 24 -- Lecture #8 Review of Last Lecture OpenMP as simple parallel

More information

CS/ECE 250: Computer Architecture. Basics of Logic Design: ALU, Storage, Tristate. Benjamin Lee

CS/ECE 250: Computer Architecture. Basics of Logic Design: ALU, Storage, Tristate. Benjamin Lee CS/ECE 25: Computer Architecture Basics of Logic esign: ALU, Storage, Tristate Benjamin Lee Slides based on those from Alvin Lebeck, aniel, Andrew Hilton, Amir Roth, Gershon Kedem Homework #3 ue Mar 7,

More information

ECE 25 Introduction to Digital Design. Chapter 5 Sequential Circuits ( ) Part 1 Storage Elements and Sequential Circuit Analysis

ECE 25 Introduction to Digital Design. Chapter 5 Sequential Circuits ( ) Part 1 Storage Elements and Sequential Circuit Analysis EE 25 Introduction to igital esign hapter 5 Sequential ircuits (5.1-5.4) Part 1 Storage Elements and Sequential ircuit Analysis Logic and omputer esign Fundamentals harles Kime & Thomas Kaminski 2008 Pearson

More information

Rangkaian Sekuensial. Flip-flop

Rangkaian Sekuensial. Flip-flop Rangkaian Sekuensial Rangkaian Sekuensial Flip-flop Combinational versus Sequential Functions Logic functions are categorized as being either combinational (sometimes referred to as combinatorial) or sequential.

More information

Final Exam review: chapter 4 and 5. Supplement 3 and 4

Final Exam review: chapter 4 and 5. Supplement 3 and 4 Final Exam review: chapter 4 and 5. Supplement 3 and 4 1. A new type of synchronous flip-flop has the following characteristic table. Find the corresponding excitation table with don t cares used as much

More information

Problems with D-Latch

Problems with D-Latch Problems with -Latch If changes while is true, the new value of will appear at the output. The latch is transparent. If the stored value can change state more than once during a single clock pulse, the

More information

Multiplexor (aka MUX) An example, yet VERY useful circuit!

Multiplexor (aka MUX) An example, yet VERY useful circuit! Multiplexor (aka MUX) An example, yet VERY useful circuit! A B 0 1 Y S A B Y 0 0 x 0 0 1 x 1 1 x 0 0 1 x 1 1 S=1 S=0 Y = (S)? B:A; Y=S A+SB when S = 0: output A 1: output B 56 A 32-bit MUX Use 32 1-bit

More information

Read-only memory (ROM) Digital logic: ALUs Sequential logic circuits. Don't cares. Bus

Read-only memory (ROM) Digital logic: ALUs Sequential logic circuits. Don't cares. Bus Digital logic: ALUs Sequential logic circuits CS207, Fall 2004 October 11, 13, and 15, 2004 1 Read-only memory (ROM) A form of memory Contents fixed when circuit is created n input lines for 2 n addressable

More information

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS

NH 67, Karur Trichy Highways, Puliyur C.F, Karur District UNIT-III SEQUENTIAL CIRCUITS NH 67, Karur Trichy Highways, Puliyur C.F, 639 114 Karur District DEPARTMENT OF ELETRONICS AND COMMUNICATION ENGINEERING COURSE NOTES SUBJECT: DIGITAL ELECTRONICS CLASS: II YEAR ECE SUBJECT CODE: EC2203

More information

ECEN454 Digital Integrated Circuit Design. Sequential Circuits. Sequencing. Output depends on current inputs

ECEN454 Digital Integrated Circuit Design. Sequential Circuits. Sequencing. Output depends on current inputs ECEN454 igital Integrated Circuit esign Sequential Circuits ECEN 454 Combinational logic Sequencing Output depends on current inputs Sequential logic Output depends on current and previous inputs Requires

More information

Introduction. NAND Gate Latch. Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1

Introduction. NAND Gate Latch.  Digital Logic Design 1 FLIP-FLOP. Digital Logic Design 1 2007 Introduction BK TP.HCM FLIP-FLOP So far we have seen Combinational Logic The output(s) depends only on the current values of the input variables Here we will look at Sequential Logic circuits The

More information

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits Computer Science 324 Computer Architecture Mount Holyoke College Fall 2007 opic Notes: Sequential Circuits Let s think about how life can be bad for a circuit. Edge Detection Consider this one: What is

More information

Learning Outcomes. Unit 13. Sequential Logic BISTABLES, LATCHES, AND FLIP- FLOPS. I understand the difference between levelsensitive

Learning Outcomes. Unit 13. Sequential Logic BISTABLES, LATCHES, AND FLIP- FLOPS. I understand the difference between levelsensitive 1.1 1. Learning Outcomes Unit 1 I understand the difference between levelsensitive and edge-sensitive I understand how to create an edge-triggered FF from latches Sequential Logic onstructs 1. 1.4 Sequential

More information

IT T35 Digital system desigm y - ii /s - iii

IT T35 Digital system desigm y - ii /s - iii UNIT - III Sequential Logic I Sequential circuits: latches flip flops analysis of clocked sequential circuits state reduction and assignments Registers and Counters: Registers shift registers ripple counters

More information

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1

Unit 9 Latches and Flip-Flops. Dept. of Electrical and Computer Eng., NCTU 1 Unit 9 Latches and Flip-Flops Dept. of Electrical and Computer Eng., NCTU 1 9.1 Introduction Dept. of Electrical and Computer Eng., NCTU 2 What is the characteristic of sequential circuits in contrast

More information

MC9211 Computer Organization

MC9211 Computer Organization MC9211 Computer Organization Unit 2 : Combinational and Sequential Circuits Lesson2 : Sequential Circuits (KSB) (MCA) (2009-12/ODD) (2009-10/1 A&B) Coverage Lesson2 Outlines the formal procedures for the

More information

ALGORITHMS IN HW EECS150 ALGORITHMS IN HW. COMBINATIONAL vs. SEQUENTIAL. Sequential Circuits ALGORITHMS IN HW

ALGORITHMS IN HW EECS150 ALGORITHMS IN HW. COMBINATIONAL vs. SEQUENTIAL. Sequential Circuits ALGORITHMS IN HW LGOITHM HW EEC150 ection 2 Introduction to equential Logic Fall 2001 pproach #2: Combinational divide & conquer a[0] a[1] a[1022] a[1023] MX MX MX 512 + 256 + K+ 1 = 1023 blocks Each MX block has: 64 s;

More information

Lecture 8: Sequential Logic

Lecture 8: Sequential Logic Lecture 8: Sequential Logic Last lecture discussed how we can use digital electronics to do combinatorial logic we designed circuits that gave an immediate output when presented with a given set of inputs

More information

Digital Logic & Computer Design CS Professor Dan Moldovan Spring Chapter 3 :: Sequential Logic Design

Digital Logic & Computer Design CS Professor Dan Moldovan Spring Chapter 3 :: Sequential Logic Design igital Logic & Computer esign CS 4341 Professor an Moldovan Spring 21 Copyright 27 Elsevier 3- Chapter 3 :: Sequential Logic esign igital esign and Computer Architecture avid Money Harris and Sarah

More information

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger.

CS 110 Computer Architecture. Finite State Machines, Functional Units. Instructor: Sören Schwertfeger. CS 110 Computer Architecture Finite State Machines, Functional Units Instructor: Sören Schwertfeger http://shtech.org/courses/ca/ School of Information Science and Technology SIST ShanghaiTech University

More information

Memory elements. Topics. Memory element terminology. Variations in memory elements. Clock terminology. Memory element parameters. clock.

Memory elements. Topics. Memory element terminology. Variations in memory elements. Clock terminology. Memory element parameters. clock. Topics! Memory elements.! Basics of sequential machines. Memory elements! Stores a value as controlled by clock.! May have load signal, etc.! In CMOS, memory is created by:! capacitance (dynamic);! feedback

More information

CprE 281: Digital Logic

CprE 281: Digital Logic CprE 281: igital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/ Registers CprE 281: igital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev Administrative

More information

ECE 250 / CPS 250 Computer Architecture. Basics of Logic Design ALU and Storage Elements

ECE 250 / CPS 250 Computer Architecture. Basics of Logic Design ALU and Storage Elements ECE 25 / CPS 25 Computer Architecture Basics of Logic esign ALU and Storage Elements Benjamin Lee Slides based on those from Andrew Hilton (uke), Alvy Lebeck (uke) Benjamin Lee (uke), and Amir Roth (Penn)

More information

CS 261 Fall Mike Lam, Professor. Sequential Circuits

CS 261 Fall Mike Lam, Professor. Sequential Circuits CS 261 Fall 2018 Mike Lam, Professor Sequential Circuits Circuits Circuits are formed by linking gates (or other circuits) together Inputs and outputs Link output of one gate to input of another Some circuits

More information

UNIT IV. Sequential circuit

UNIT IV. Sequential circuit UNIT IV Sequential circuit Introduction In the previous session, we said that the output of a combinational circuit depends solely upon the input. The implication is that combinational circuits have no

More information

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it,

Solution to Digital Logic )What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it, Solution to Digital Logic -2067 Solution to digital logic 2067 1.)What is the magnitude comparator? Design a logic circuit for 4 bit magnitude comparator and explain it, A Magnitude comparator is a combinational

More information

Chapter 3 Unit Combinational

Chapter 3 Unit Combinational EE 2: igital Logic ircuit esign r Radwan E Abdel-Aal, OE Logic and omputer esign Fundamentals hapter 3 Unit ombinational 4 Sequential Logic esign ircuits Part Implementation Technology and Logic esign

More information

Basis of sequential circuits: the R-S latch

Basis of sequential circuits: the R-S latch equential logic Asynchronous sequential logic state changes occur whenever state inputs change (elements may be simple wires or delay elements) ynchronous sequential logic state changes occur in lock step

More information

6.3 Sequential Circuits (plus a few Combinational)

6.3 Sequential Circuits (plus a few Combinational) 6.3 Sequential Circuits (plus a few Combinational) Logic Gates: Fundamental Building Blocks Introduction to Computer Science Robert Sedgewick and Kevin Wayne Copyright 2005 http://www.cs.princeton.edu/introcs

More information

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur

SEQUENTIAL LOGIC. Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur SEQUENTIAL LOGIC Satish Chandra Assistant Professor Department of Physics P P N College, Kanpur www.satish0402.weebly.com OSCILLATORS Oscillators is an amplifier which derives its input from output. Oscillators

More information

CS8803: Advanced Digital Design for Embedded Hardware

CS8803: Advanced Digital Design for Embedded Hardware Copyright 2, 23 M Ciletti 75 STORAGE ELEMENTS: R-S LATCH CS883: Advanced igital esign for Embedded Hardware Storage elements are used to store information in a binary format (e.g. state, data, address,

More information

Sequencing. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall,

Sequencing. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall, Sequencing ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C. Fall, 2013 ldvan@cs.nctu.edu.tw http://www.cs.nctu.edu.tw/~ldvan/ Outlines Introduction Sequencing

More information

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs)

Sequential Circuits. Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs) Sequential Circuits Combinational circuits Output depends only and immediately on the inputs Have no memory (dependence on past values of the inputs) Sequential circuits Combination circuits with memory

More information

Sequential Logic and Clocked Circuits

Sequential Logic and Clocked Circuits Sequential Logic and Clocked Circuits Clock or Timing Device Input Variables State or Memory Element Combinational Logic Elements From combinational logic, we move on to sequential logic. Sequential logic

More information

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1

COSC 243. Sequential Logic. COSC 243 (Computer Architecture) Lecture 5 - Sequential Logic 1 COC 243 equential Logic COC 243 (Computer Architecture) Lecture 5 - equential Logic 1 Overview Last Lecture This Lecture equential logic circuits ource: Chapter 11 (10 th edition) Next Lecture Computer

More information

Chapter 6. Flip-Flops and Simple Flip-Flop Applications

Chapter 6. Flip-Flops and Simple Flip-Flop Applications Chapter 6 Flip-Flops and Simple Flip-Flop Applications Basic bistable element It is a circuit having two stable conditions (states). It can be used to store binary symbols. J. C. Huang, 2004 Digital Logic

More information

ELCT201: DIGITAL LOGIC DESIGN

ELCT201: DIGITAL LOGIC DESIGN ELCT201: DIGITAL LOGIC DESIGN Dr. Eng. Haitham Omran, haitham.omran@guc.edu.eg Dr. Eng. Wassim Alexan, wassim.joseph@guc.edu.eg Lecture 6 Following the slides of Dr. Ahmed H. Madian ذو الحجة 1438 ه Winter

More information

CprE 281: Digital Logic

CprE 281: Digital Logic CprE 281: igital Logic Instructor: Alexander Stoytchev http://www.ece.iastate.edu/~alexs/classes/ Registers CprE 281: igital Logic Iowa State University, Ames, IA Copyright Alexander Stoytchev Administrative

More information

More Digital Circuits

More Digital Circuits More Digital Circuits 1 Signals and Waveforms: Showing Time & Grouping 2 Signals and Waveforms: Circuit Delay 2 3 4 5 3 10 0 1 5 13 4 6 3 Sample Debugging Waveform 4 Type of Circuits Synchronous Digital

More information

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath

Objectives. Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath Objectives Combinational logics Sequential logics Finite state machine Arithmetic circuits Datapath In the previous chapters we have studied how to develop a specification from a given application, and

More information

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Sequential Circuits Computer Science 324 Computer Architecture Mount Holyoke College Fall 2009 opic Notes: Sequential Circuits Let s think about how life can be bad for a circuit. Edge Detection Consider this one: What is

More information

Chapter 5 Flip-Flops and Related Devices

Chapter 5 Flip-Flops and Related Devices Chapter 5 Flip-Flops and Related Devices Chapter 5 Objectives Selected areas covered in this chapter: Constructing/analyzing operation of latch flip-flops made from NAND or NOR gates. Differences of synchronous/asynchronous

More information

Experiment 8 Introduction to Latches and Flip-Flops and registers

Experiment 8 Introduction to Latches and Flip-Flops and registers Experiment 8 Introduction to Latches and Flip-Flops and registers Introduction: The logic circuits that have been used until now were combinational logic circuits since the output of the device depends

More information

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20

Advanced Devices. Registers Counters Multiplexers Decoders Adders. CSC258 Lecture Slides Steve Engels, 2006 Slide 1 of 20 Advanced Devices Using a combination of gates and flip-flops, we can construct more sophisticated logical devices. These devices, while more complex, are still considered fundamental to basic logic design.

More information

CS3350B Computer Architecture Winter 2015

CS3350B Computer Architecture Winter 2015 CS3350B Computer Architecture Winter 2015 Lecture 5.2: State Circuits: Circuits that Remember Marc Moreno Maza www.csd.uwo.ca/courses/cs3350b [Adapted from lectures on Computer Organization and Design,

More information

Switching Circuits & Logic Design

Switching Circuits & Logic Design witching Circuits & Logic esign Jie-Hong oland Jiang 江介宏 epartment of Electrical Engineering National Taiwan University Fall 24 Latches and Flip-Flops http://www3.niaid.nih.gov/topics/malaria/lifecycle.htm

More information

Chapter 5 Synchronous Sequential Logic

Chapter 5 Synchronous Sequential Logic Chapter 5 Synchronous Sequential Logic Chih-Tsun Huang ( 黃稚存 ) http://nthucad.cs.nthu.edu.tw/~cthuang/ Department of Computer Science National Tsing Hua University Outline Introduction Storage Elements:

More information

WEEK 10. Sequential Circuits: Analysis and Design. Page 1

WEEK 10. Sequential Circuits: Analysis and Design. Page 1 WEEK 10 Sequential Circuits: Analysis and Design Page 1 Analysis of Clocked (Synchronous) Sequential Circuits Now that we have flip-flops and the concept of memory in our circuit, we might want to determine

More information

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany

Digital Logic Design Sequential Circuits. Dr. Basem ElHalawany Digital Logic Design Sequential Circuits Dr. Basem ElHalawany Combinational vs Sequential inputs X Combinational Circuits outputs Z A combinational circuit: At any time, outputs depends only on inputs

More information

Chapter 11 Latches and Flip-Flops

Chapter 11 Latches and Flip-Flops Chapter 11 Latches and Flip-Flops SKEE1223 igital Electronics Mun im/arif/izam FKE, Universiti Teknologi Malaysia ecember 8, 2015 Types of Logic Circuits Combinational logic: Output depends solely on the

More information

Chapter 6 Sequential Circuits

Chapter 6 Sequential Circuits Overview Logic and omputer esign Fundamentals hapter 6 equential ircuits Part torage Elements and equential ircuit nalysis pring 4 Part - torage Elements and nalysis Introduction to sequential circuits

More information

Synchronous Sequential Logic

Synchronous Sequential Logic Synchronous Sequential Logic -A Sequential Circuit consists of a combinational circuit to which storage elements are connected to form a feedback path. The storage elements are devices capable of storing

More information