11/16/2004EE 42 fall 2004 lecture 331 Lecture #33: Some example circuits Last lecture: –Edge triggers –Registers This lecture: –Example circuits –shift.

Slides:



Advertisements
Similar presentations
Chapter 4: Combinational Logic
Advertisements

Registers and Counters
Flip-Flops, Registers, Counters, and a Simple Processor
Announcements Assignment 7 posted, due Friday 18 th All project components ordered Dates –Thursday 12/1 review lecture –Tuesday 12/6 project demonstrations.
EE2420 – Digital Logic Summer II 2013
ECE 331 – Digital System Design Flip-Flops and Registers (Lecture #18) The slides included herein were taken from the materials accompanying Fundamentals.
EE42/100 Fall 2005 Prof. Fearing 1 Week 12/ Lecture 22 Nov. 17, Overview of Digital Systems 2.CMOS Inverter 3.CMOS Gates 4.Digital Logic 5.Combinational.
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
11/10/2004EE 42 fall 2004 lecture 301 Lecture #30 Finite State Machines Last lecture: –CMOS fabrication –Clocked and latched circuits This lecture: –Finite.
Logic and Computer Design Fundamentals Registers and Counters
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
11/15/2004EE 42 fall 2004 lecture 321 Lecture #32 Registers, counters etc. Last lecture: –Digital circuits with feedback –Clocks –Flip-Flops This Lecture:
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
Chapter 7 - Part 2 1 CPEN Digital System Design Chapter 7 – Registers and Register Transfers Part 2 – Counters, Register Cells, Buses, & Serial Operations.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
ENGIN112 L26: Shift Registers November 3, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 26 Shift Registers.
KU College of Engineering Elec 204: Digital Systems Design
A.Abhari CPS2131 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:
1 Digital Design: Sequential Logic Blocks Credits : Slides adapted from: J.F. Wakerly, Digital Design, 4/e, Prentice Hall, 2006 C.H. Roth, Fundamentals.
Lecture 21 Overview Counters Sequential logic design.
1 Lecture 15 Registers Counters Finite State Machine (FSM) design.
Registers and Counters
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
Registers and Counters
ETE Digital Electronics
Registers and Counters
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions.
Registers & Counters M. Önder Efe
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Rabie A. Ramadan Lecture 3
Using building blocks to make bigger circuits
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Basic Logic Gates.
Chapter 2Basic Digital Logic1 Chapter 2. Basic Digital Logic2 Outlines  Basic Digital Logic Gates  Two types of digital logic circuits Combinational.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
EE365 Adv. Digital Circuit Design Clarkson University Lecture #12 Registers and Counters.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
1 CSE370, Lecture 15 Lecture 15 u Logistics n HW5 due this Friday n HW6 out today, due Friday Feb 20 n I will be away Friday, so no office hour n Bruce.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
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.
Topic: Sequential Circuit Course: Logic Design Slide no. 1 Chapter #6: Sequential Logic Design.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Chapter 3 Digital Logic Structures. 3-2 Combinational vs. Sequential Combinational Circuit always gives the same output for a given set of inputs  ex:
Registers Page 1. Page 2 What is a Register?  A Register is a collection of flip-flops with some common function or characteristic  Control signals.
Abdullah Said Alkalbani University of Buraimi
Instructor:Po-Yu Kuo 教師:郭柏佑
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Transistor: Building.
Counters.
Instructor : Po-Yu Kuo 教師:郭柏佑 Ch. 3 Digital Logic Structures EL 1009 計算機概論 ( 電子一 B) Introduction to Computer Science.
Introduction to Computing Systems and Programming Digital Logic Structures.
Chapter 3 Digital Logic Structures
Chap 5. Registers and Counters
CS151 Introduction to Digital Design Chapter 5: Sequential Circuits 5-1 : Sequential Circuit Definition 5-2: Latches 1Created by: Ms.Amany AlSaleh.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Dr. Shi Dept. of Electrical and Computer Engineering.
Modular sequential logic Use latches, flip-flops and combinational logic –Flip-flops usually grouped to form a register Shift registers –n bits {x n …x.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
Digital Design: Sequential Logic Blocks
Registers and Counters
Basics of digital systems
Digital System Design Review.
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.
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
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
Presentation transcript:

11/16/2004EE 42 fall 2004 lecture 331 Lecture #33: Some example circuits Last lecture: –Edge triggers –Registers This lecture: –Example circuits –shift registers –Counters –adders

11/16/2004EE 42 fall 2004 lecture 332 Examples of useful combinatorial circuits There are several patterns of combinatorial logic which appear fairly often, here are several examples The examples will be given in terms of gates as well as logic equations, but not in a minimal representation, but just a clear example In most cases, a computer program such as Verilog would be responsible for producing optimal implementations anyway.

11/16/2004EE 42 fall 2004 lecture 333 Pattern recognizer The output of this pattern recognition circuit is 1 only if the input is 10110, and otherwise zero ABCDEABCDE Q

11/16/2004EE 42 fall 2004 lecture 334 Decoder n inputs, 2 n outputs –one output is 1 for each possible input pattern, all other outputs are 0 ABO1O1 O2O2 O3O3 O4O

11/16/2004EE 42 fall 2004 lecture 335 Decoder n inputs, 2 n outputs –one output is 1 for each possible input pattern, all other outputs are 0 ABAB

11/16/2004EE 42 fall 2004 lecture 336 CMOS switch A CMOS switch will allow a logic level to pass if activated, does not allow current through the gate if not activated

11/16/2004EE 42 fall 2004 lecture 337 Multiplexer (MUX) n-bit selector and 2 n inputs, one output –output equals one of the inputs, depending on selector I1I2I3I4I1I2I3I4 2 input decoder ABAB O

11/16/2004EE 42 fall 2004 lecture 338 Buffer A buffer passes a logic level while increasing its drive capability A design like the previous slide would likely be implemented with a buffer at its output Often, wider transistors in the second stage

11/16/2004EE 42 fall 2004 lecture 339 Half Adder A half adder takes two bits and produces their sum, with a carry It is called a half adder because it does not have a carry input ABAB Sum Output Carry out

11/16/2004EE 42 fall 2004 lecture 3310 Half adder ABOC

11/16/2004EE 42 fall 2004 lecture 3311 Full Adder Add two bits and carry-in, produce one-bit sum and carry-out. ABC in SC out

11/16/2004EE 42 fall 2004 lecture 3312 One bit Full adder A single bit full adder can be made from two half adders and an or gate Half adder A B O C Sum out C Carry out Carry in

11/16/2004EE 42 fall 2004 lecture 3313 Full adder as a logic block We can use our full adder as a logic block to make a multi-bit adder by cascading the carry line Full adder (one bit) C in A B C out Sum

11/16/2004EE 42 fall 2004 lecture 3314 Three-bit Adder half adder (one bit) A0A0 B0B0 Sum 0 Carry Full adder (one bit) A1A1 B1B1 Sum 1 Carry Full adder (one bit) A2A2 B2B2 Sum 2 Carry

11/16/2004EE 42 fall 2004 lecture 3315 Adders It is interesting to note that in hardware, it is typical to dedicate an adder for one particular use, as contrasted with software on a CPU, where numbers are moved around to be added by a central adder. This is because the additional selectors and wires to move around numbers takes more area than just putting in separate adders for each purpose.

11/16/2004EE 42 fall 2004 lecture 3316 Some register based digital blocks There are also several common digital blocks which are based around flip-flop registers, such as multi-bit data registers, shift registers, and counters

11/16/2004EE 42 fall 2004 lecture 3317 Definition:Register A register is a collection of flip-flops with similar controls and logic A register stores a multi-bit value. –Stored values somehow related (e.g., form binary value) –Share clock, reset, and set lines –Similar logic at each stage

11/16/2004EE 42 fall 2004 lecture 3318 RSRSRS DQDQDQDQ OUT1OUT2OUT3OUT4 Write enable IN1IN2IN3IN4 RS Reset “0” Registers Example: a collection of D-flip-flops, all controlled by a common write enable (WE). –When WE transitions from 1 to zero (falling edge), a n-bit value D is written to register.

11/16/2004EE 42 fall 2004 lecture 3319 DQDQDQDQ IN OUT shift Shift Register Holds samples of past input values and shifts them in sequence into a string of flip- flops

11/16/2004EE 42 fall 2004 lecture 3320 DQDQDQDQ IN OUT1OUT2OUT3OUT4 CLK Shift Register Holds samples of input –Store input values in sequence –4-bit shift register used as a serial to parallel converter:

11/16/2004EE 42 fall 2004 lecture 3321 RSRSRS DQDQDQDQ Shift IN1 RS Reset “0” Parallel to serial converter MUX “0” literal IN2 MUX IN3IN4 Load/Shift Output

11/16/2004EE 42 fall 2004 lecture 3322 parallel inputs parallel outputs serial transmission Shift Register Application Parallel-to-serial conversion for serial transmission

11/16/2004EE 42 fall 2004 lecture 3323 DQDQDQDQ IN OUT1OUT2OUT3OUT4 CLK OUT Pattern Recognizer Combinational function of input samples –In this case, recognizing the pattern 1001 on the single input signal

11/16/2004EE 42 fall 2004 lecture 3324 Use of counters Counters are often used when something needs to happen a certain number of times. Counters can be designed to be preset to particular values, to count up or down, and/or to trigger some action at a particular count by the use of a pattern recognizer.

11/16/2004EE 42 fall 2004 lecture 3325 Binary Counter Logic between registers (not just multiplexer) –XOR decides when bit should be toggled –Always for low-order bit, only when first bit is true for second bit, and so on

11/16/2004EE 42 fall 2004 lecture 3326 Sequential Logic Summary Fundamental building block of circuits with state –R-S latch, R-S master/slave, D master/slave, edge-triggered D FF –Latch and flip-flop Timing methodologies –Use of clocks –Cascaded FFs work because prop delays exceed hold times –Beware of clock skew Asynchronous inputs and their dangers –Synchronizer failure: what it is and how to minimize its impact Basic registers –Shift registers –Pattern detectors –Counters