Digital Circuits. 1. Inputs & Outputs are quantized at two levels. 2. Binary arithmetic, only digits are 0 & 1. Position indicates power of 2.

Similar documents
Lecture 9: Digital Electronics

Gates and Flip-Flops

Digital Electronics. Delay Max. FF Rate Power/Gate High Low (ns) (MHz) (mw) (V) (V) Standard TTL (7400)

Boole Algebra and Logic Series

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Sample Test Paper - I

Digital electronic systems are designed to process voltage signals which change quickly between two levels. Low time.

Digital Electronics Final Examination. Part A

Fundamentals of Digital Design

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Why digital? Overview. Number Systems. Binary to Decimal conversion

Sequential Logic Circuits

LOGIC CIRCUITS. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

3. Complete the following table of equivalent values. Use binary numbers with a sign bit and 7 bits for the value

Intro To Digital Logic

Vidyalankar S.E. Sem. III [ETRX] Digital Circuits and Design Prelim Question Paper Solution

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

of Digital Electronics

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

CMSC 313 Lecture 16 Postulates & Theorems of Boolean Algebra Semiconductors CMOS Logic Gates

Logic Gates and Boolean Algebra

Chapter 4. Sequential Logic Circuits

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Digital Logic Appendix A

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

MM74C90 MM74C93 4-Bit Decade Counter 4-Bit Binary Counter

Prove that if not fat and not triangle necessarily means not green then green must be fat or triangle (or both).

Implementation of Boolean Logic by Digital Circuits

CMPE12 - Notes chapter 2. Digital Logic. (Textbook Chapters and 2.1)"

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

Chapter 2. Review of Digital Systems Design

Experiment 7: Magnitude comparators

Digital Electronics I

Boolean Algebra. Digital Logic Appendix A. Postulates, Identities in Boolean Algebra How can I manipulate expressions?

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques s complement 2 s complement 1 s complement

Show that the dual of the exclusive-or is equal to its compliment. 7

Vidyalankar S.E. Sem. III [EXTC] Digital Electronics Prelim Question Paper Solution ABCD ABCD ABCD ABCD ABCD ABCD ABCD ABCD = B

CHW 261: Logic Design

Chapter 2: Boolean Algebra and Logic Gates

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #2 Nov 22, 2006

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

Appendix A: Digital Logic. CPSC 352- Computer Organization

Boolean Algebra. Digital Logic Appendix A. Boolean Algebra Other operations. Boolean Algebra. Postulates, Identities in Boolean Algebra

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

Synchronous Sequential Logic

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

LOGIC GATES A Y=A+B. Logic symbol of OR gate B The Boolean expression of OR gate is Y = A + B, read as Y equals A 'OR' B.

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) State any two Boolean laws. (Any 2 laws 1 mark each)

Experiment 9 Sequential Circuits

Shift Register Counters

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

Sequential Logic Worksheet

Chapter 5 Synchronous Sequential Logic

Combinational logic. Possible logic functions of two variables. Minimal set of functions. Cost of different logic functions.

Logic. Basic Logic Functions. Switches in series (AND) Truth Tables. Switches in Parallel (OR) Alternative view for OR

ECE 341. Lecture # 3

CSC9R6 Computer Design. Practical Digital Logic

Cs302 Quiz for MID TERM Exam Solved

74LS195 SN74LS195AD LOW POWER SCHOTTKY

2.0 Basic Elements of a Quantum Information Processor. 2.1 Classical information processing The carrier of information

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

Vidyalankar. S.E. Sem. III [EXTC] Digital System Design. Q.1 Solve following : [20] Q.1(a) Explain the following decimals in gray code form

CD4027BC Dual J-K Master/Slave Flip-Flop with Set and Reset

EC-121 Digital Logic Design

Module 2. Basic Digital Building Blocks. Binary Arithmetic & Arithmetic Circuits Comparators, Decoders, Encoders, Multiplexors Flip-Flops

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

S.Y. Diploma : Sem. III [CO/CM/IF/CD/CW] Digital Techniques

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

Section 1A. Introduction & Basic Principles. Engineering Areas

Advanced Information Storage 02

Unit 8A Computer Organization. Boolean Logic and Gates

Lecture A: Logic Design and Gates

CHAPTER 7. Exercises 17/ / /2 2 0

Part 5: Digital Circuits

Binary addition (1-bit) P Q Y = P + Q Comments Carry = Carry = Carry = Carry = 1 P Q

Boolean Algebra. The Building Blocks of Digital Logic Design. Section. Section Overview. Binary Operations and Their Representation.

ENGR4300 Fall 2005 Test 3S. Name solution. Section. Question 1 (25 points) Question 2 (25 points) Question 3 (25 points) Question 4 (25 points)

MM74C93 4-Bit Binary Counter

11.1 As mentioned in Experiment 10, sequential logic circuits are a type of logic circuit where the output of

CD4013BC Dual D-Type Flip-Flop

Computer organization

Possible logic functions of two variables

Digital Signal 2 N Most Significant Bit (MSB) Least. Bit (LSB)

DIGITAL LOGIC CIRCUITS

SUMMER 18 EXAMINATION Subject Name: Principles of Digital Techniques Model Answer Subject Code:

Chapter 2 Boolean Algebra and Logic Gates

Digital Circuits ECS 371

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

Lab #10: Design of Finite State Machines

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

on candidate s understanding. 7) For programming language papers, credit may be given to any other program based on equivalent concept.

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Number Systems 1(Solutions for Vol 1_Classroom Practice Questions)

Introduction EE 224: INTRODUCTION TO DIGITAL CIRCUITS & COMPUTER DESIGN. Lecture 6: Sequential Logic 3 Registers & Counters 5/9/2010

Lecture 17: Designing Sequential Systems Using Flip Flops

CMPE12 - Notes chapter 1. Digital Logic. (Textbook Chapter 3)

Floating Point Representation and Digital Logic. Lecture 11 CS301

Transcription:

Digital Circuits 1. Inputs & Outputs are quantized at two levels. 2. inary arithmetic, only digits are 0 & 1. Position indicates power of 2. 11001 = 2 4 + 2 3 + 0 + 0 +2 0 16 + 8 + 0 + 0 + 1 = 25

Digital Circuits 3. inary Coded Decimal (CD) is an alternative binary representation still used for certain types of calculations where base-10 arithmetic is directly used where the rounding errors of binary cannot be tolerated (e.g. financial calculations, etc.) lso still often used for storing dates. its are used in groups of 4 to represent a decimal (base 10) digit. Decimal Digit CD 8 4 2 1 0 0 0 0 0 1 0 0 0 1 2 0 0 1 0 3 0 0 1 1 4 0 1 0 0 5 0 1 0 1 6 0 1 1 0 7 0 1 1 1 8 1 0 0 0 9 1 0 0 1

From Sept 18 2017 lecture ND LOGIC GTE ( and ) Semiconductors Diode Circuits C offers a Symbolic Logic course from the Philosophy Department (PHIL557701). Q ND Truth Table Q 0 0 0 1 0 0 0 1 0 1 1 1 9/23/2013 PHYS351001 L4 Michael urns

ND LOGIC GTE ( and ) ND Truth Table Looks kind of a fat times dot. ND = Q = Q = Q Q Q 0 0 0 1 0 0 0 1 0 1 1 1 Not limited to two inputs. May have any number of inputs. Notice: I have not shown the grounds nor the power supply connections. This is a schematic symbol set for describing the circuit s logic, not necessarily how to implement it in actual circuitry.

OR LOGIC GTE ( or ) OR Truth Table OR = Q + = Q Q Q 0 0 0 1 0 1 0 1 1 1 1 1 Not limited to two inputs. May have any number of inputs.

INVERT LOGIC GTE () NOT = Q = Q lternate symbol has the circle on the input Q INVERT Truth Table Q 0 1 1 0 Sometimes just the circle inline

With the three above modules, you can build NY digital circuit.

NND LOGIC GTE (NOT ND ) NND Truth Table ND Truth Table NND = Q = Q Q Q 0 0 1 1 0 1 0 1 1 1 1 0 VS Q 0 0 0 1 0 0 0 1 0 1 1 1 Not limited to two inputs. May have any number of inputs. Note the little NOT circle

NOR LOGIC GTE (NOT OR) NOR Truth Table OR Truth Table NOR = Q + = Q Q Q 0 0 1 1 0 0 0 1 0 1 1 0 VS Q 0 0 0 1 0 1 0 1 1 1 1 1 Not limited to two inputs. May have any number of inputs. Note the little NOT circle

EXCLUSIVE OR LOGIC GTE ( XOR) XOR Truth Table XOR = Q = Q Notice what this truth table means: Q Q 0 0 0 1 0 1 0 1 1 1 1 0 Not limited to two inputs. May have any number of inputs. Q = 1 if and only if OR = 1 but not both. = + So how do you make this out of ND, OR & NOT gates?

EXCLUSIVE OR LOGIC GTE ( XOR) Make a + circuit. ND OR Q = + ND

EQULITY ( NOT XOR) NOT XOR Truth Table NOT( XOR ) = Q = Q Q Q 0 0 1 1 0 0 0 1 0 1 1 1 Q = 1 if and only if OR are the same. Not limited to two inputs. May have any number of inputs. Q = = +

Logic Identities C = ( ) C = ( C) = = 1 = 0 = 0 (+C) = + C + = + C = ( + ) ( + C) + + C = ( + ) + C = + ( + C) + = + + = + 1 = 1 + 0 = 1 = 0 0 = 1 + = 1 = 0 = + = + ( + ) = ( ) = + DeMorgan s Theorem NOT ( or ) = NOT and NOT NOT ( and ) = NOT or NOT

DeMorgan s Theorem ( + ) = which means NOT ( or ) = NOT and NOT = ( ) = + which means NOT ( and ) = NOT or NOT =

Example: Suppose we want to turn on one of four lights. We can do that by running 5 wires, one to each light and a common ground. Send the on signal along whichever wire goes to the lamp we want on. 0 P 0 P 1 1 2 3 P 2 P 3

Let s achieve the same function using fewer wires. Two lines (plus ground) can carry binary digits 0-3. D 0 0 0 1 1 0 2 0 1 3 1 1 ut we need a way to decode this 2 wire communication into 4 wires to run the lights.

Two wire decoder + = = P o (=0 ND =0) + = = P 1 (=0 ND =1) + = = P 2 (=1 ND =0) + = = P 3 (=1 ND =1) ( + ) = (DeMorgan s Theorem) & = NOT ( or ) = NOT and NOT

Two wire decoder + = = P o + = = P 1 + = = P 2 P o 0 0 1 0 1 0 1 0 0 1 1 0 P 2 0 0 0 0 1 0 1 0 1 1 1 0 P 1 0 0 0 0 1 1 1 0 0 1 1 0 + = = P 3 P 3 0 0 0 0 1 0 1 0 0 1 1 1

Two wire decoder P 0 P 1 P 2 D P o P 1 P 2 P 3 0 0 0 1 0 0 0 1 0 1 0 1 0 0 2 1 0 0 0 1 0 3 1 1 0 0 0 1 P 3

Flip-Flop oolean Logic Gates Y X X Y ssume & are 1. If X = 1 then Y = 0 State 1 If Y = 1 then X = 0 State 2 Notice both states are consistent with & =1.

Flip-Flop oolean Logic Gates Y X X Y ssume & are 1, X = 1 & Y = 0. (State 1) Now, bring = 0 Y goes to Y = 1. Y = 1 into the top gate throws X = 0. We can bring back to 1 ( = 1) and we are now in State 2. & =1, X = 0, Y = 1

Flip-Flop oolean Logic Gates Y X X Y ssume & are 1, X = 0 & Y = 1. (State 2) Now, bring = 0 X goes to X = 1. X = 1 into the bottom gate throws Y = 0. We can bring back to 1 ( = 1) and we are now back in State 1. & =1, X = 1, Y = 0

Flip-Flop oolean Logic Gates Y X X Y Pulsing =0 (low) forces the X = 1 (high) and Y = 0 (low) state. Pulsing = 0 (low) forces the X = 0 (low) and Y =1 (high) state. Circuits flips into one state, flops into the other.

Clocked Flip-Flops (set) Q (reset) Q clock Same as before, only the two front end NND gates only let the flip-flop see & when clock =1.

Toggled Flip-Flops D Q Q Note: =, = Q reset clock Suppose Q = 1, then Q =0, = 0 & =1 Then suppose clock =1 (high), then = 1 & = 0, which forces Q = 0. Since Q = 0, then Q =1, = 1 & = 0. Then suppose clock =1 (high) again, then = 0 & = 1, which forces Q = 1.

clock oolean Logic Gates Toggled Flip-Flops D Q Q time clock reset Q time clock cts as a divide by 2. reset

inary Counter (using toggled flip-flops) If we take for example, four flip-flops, we can make a binary pulse counter. 2 0 2 1 2 2 2 3 Pulses in Reset counter Each flip-flops acts as a 2 and sends its output to the next flip-flop in the line. This is a 4-bit binary counter. Counts from 0000 to 1111. 0 15 We reset to 0000 by pulsing the reset counter line.

inary Counter (using toggled flip-flops) Easy to extend to however many bits we need. 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 Pulses in Reset counter 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 This is a 16-bit binary counter. Counts from 0000000000000000 to 1111111111111111. 0 65535 If we doubled this again to make a 32-bit counter, we d count from 0 to 4,294,967,295 4 Gb

Digital Signals Most common Transistor Transistor Logic (TTL) Nowadays, also includes TTL compatible such as CMOS (CMOS Complementary Metal Oxide Semiconductor) Modern CPU s cheat on this often ~1 volt logic. 1. Positive Logic (voltage for 1 s, no voltage for 0 s) 2. 5 volt supply 3. Can source relatively large currents if need be (10 s to 100 s of m), which means large fan out. 4. 1 = 5 volts (3.3 5 volts) 0 = 0 volts (0 0.5 volts) Means that a signal rising from 0 needs to get to at least 3.3 volts to be considered a 1. signal dropping from above 3.3 needs to drop below 0.5 volts to be considered a 0. 5. Propagation delay ~ 10-8 seconds. (i.e. Takes ~10nsec for output to reflect inputs.)

Digital Signals - TTL re more complex functions as well. e.g. 7400 Quad 2-input NND 10 9 9 8 10 Most are 14-pin IC s, with pin 7 as ground and pin 14 as +5V

Digital Signals - TTL Standardized chip set across manufacturers (7400 s series): 7402 Quad 2-input NOR 7404 Hex (8) Inverter 7408 Quad 2-input ND 7410 Triple 3-input NND 7420 Dual 4-input NND 7430 8-input NND

Digital Signals - TTL 7474 Dual D Flip-Flop re more complex functions as well. e.g. 7442 Four Line to 10 line decoder 7493 4-bit binary counter 7410 Triple 3-input NND CD digit input, selects 1 of 10 outputs

7493 4-bit binary counter So that 16-bit counter we showed earlier can be made with 4 chips. There are nowadays, as you might expect, chips with more stuff. e.g., SN74LV8154 Dual 16-bit counter. If you connect both counters together, form a 32-bit counter. Only 20-pins: Shares all 32-bits on 8 output pins. 32-bits means counts from 0 to 4,294,967,295