Gates and Flip-Flops

Similar documents
Lecture 9: Digital Electronics

Digital Electronics Final Examination. Part A

Synchronous Sequential Logic

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

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Fundamentals of Digital Design

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

ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN. Week 7 Dr. Srinivas Shakkottai Dept. of Electrical and Computer Engineering

Sample Test Paper - I

Sequential Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

Mealy & Moore Machines

Sequential vs. Combinational

ELCT201: DIGITAL LOGIC DESIGN

MOSIS REPORT. Spring MOSIS Report 1. MOSIS Report 2. MOSIS Report 3

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

Schedule. ECEN 301 Discussion #25 Final Review 1. Date Day Class No. 1 Dec Mon 25 Final Review. Title Chapters HW Due date. Lab Due date.

Philadelphia University Student Name: Student Number:

Chapter 7 Logic Circuits

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

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

DIGITAL LOGIC CIRCUITS

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

Digital Logic (2) Boolean Algebra

Cs302 Quiz for MID TERM Exam Solved

Fundamentals of Boolean Algebra

Roger L. Tokheim. Chapter 8 Counters Glencoe/McGraw-Hill

EGC221: Digital Logic Lab

Computers also need devices capable of Storing data and information Performing mathematical operations on such data

Chapter 5 Synchronous Sequential Logic

Chapter 2 Combinational Logic Circuits

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

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

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

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

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

DE58/DC58 LOGIC DESIGN DEC 2014

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

School of Computer Science and Electrical Engineering 28/05/01. Digital Circuits. Lecture 14. ENG1030 Electrical Physics and Electronics

Additional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Chapter 14 Sequential logic, Latches and Flip-Flops

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Implementation of Boolean Logic by Digital Circuits

Philadelphia University Faculty of Engineering

Computer organization

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

Exam for Physics 4051, October 31, 2008

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

NTE74177 Integrated Circuit TTL 35Mhz Presettable Binary Counter/Latch

Experiment 9 Sequential Circuits

. T SHREE MAHAPRABHU PUBLIC SCHOOL & COLLEGE NOTES FOR BOARD EXAMINATION SUBJECT COMPUTER SCIENCE (Code: 083) Boolean Algebra

BER KELEY D AV IS IR VINE LOS AN GELES RIVERS IDE SAN D IEGO S AN FRANCISCO

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

Sequential Circuits Sequential circuits combinational circuits state gate delay

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

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

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.

Experiment 7: Magnitude comparators

Digital Electronics. Part A

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

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Digital Circuits ECS 371

CSC9R6 Computer Design. Practical Digital Logic

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Philadelphia University Student Name: Student Number:

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

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

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

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

NTE74176 Integrated Circuit TTL 35Mhz Presettable Decade Counter/Latch

Digital Electronics I

CHW 261: Logic Design

Up/down binary counter with separate up/down clocks

Boolean Logic Prof. James L. Frankel Harvard University. Version of 3:20 PM 29-Aug-2017 Copyright 2017, 2016 James L. Frankel. All rights reserved.

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

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

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

CHAPTER 7. Exercises 17/ / /2 2 0

電子回路論第 12 回 Electric Circuits for Physicists


Boole Algebra and Logic Series

Written reexam with solutions for IE1204/5 Digital Design Monday 14/

Digital Design. Sequential Logic

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

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

Lecture 17: Designing Sequential Systems Using Flip Flops

Sequential Logic Circuits

Chapter 2 Combinational Logic Circuits

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

Counters. We ll look at different kinds of counters and discuss how to build them

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package. *MR for LS160A and LS161A *SR for LS162A and LS163A

Synchronous 4 Bit Counters; Binary, Direct Reset

UNIVERSITY OF BOLTON SCHOOL OF ENGINEERING BENG (HONS) ELECTRICAL & ELECTRONICS ENGINEERING EXAMINATION SEMESTER /2017

Time Allowed 3:00 hrs. April, pages

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

Layout of 7400-series Chips Commonly Used in. CDA 3101: Introduction to Computer Hardware and Organization

ELEC Digital Logic Circuits Fall 2014 Sequential Circuits (Chapter 6) Finite State Machines (Ch. 7-10)

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

The Design Procedure. Output Equation Determination - Derive output equations from the state table

Transcription:

Gates and Flip-Flops Chris Kervick (11355511) With Evan Sheridan and Tom Power December 2012 On a scale of 1 to 10, how likely is it that this question is using binary?...4? What s a 4? Abstract The operation of various logic gate circuits were investigated using combinations of simple logic gates. In particular, the truth tables for AND, NAND, OR, NOR, XOR and XNOR gates were recorded, and agreed with the theoretical prediction. The operation of a JK Master- Slave flip-flop was examined. Counters of 16 and 10 were successfully produced. Aims To record the truth tables for the basic logic gates using, where reasonable, only NAND gates. To examine the operation of flip-flops, and their use as counters. Introduction and Theory Logic gates A logic gate is device which takes one or more inputs, performs an operation on them, and outputs a signal. In transistor-transistor logic (TTL), these signals are all voltages of 5 Volts. When such a signal is present, we refer to it as being at logical 1; with no signal present, we refer to it as being at logical 0. 1

Boolean Algebra Figure 1: Some basic logic gate symbols The operation of gates can be described mathematically using Boolean Algebra. Boolean Algebra consists of three basic operations, A.B (AND), A + B (OR) and A (NOT). One well known result in Boolean Algebra is de Morgan s Law: A.B = A + B This can be proved simply by listing all the logical possibilities. Experimental Method NAND and AND gates Using the 7410N circuit, we checked the NAND logic. We then added an inverter to the output in order to check the AND logic. OR and NOR Circuits We constructed an OR gate using only NAND gates, and checked its logic. We then added an inverter to its output to check the NOR logic. XOR and XNOR Circuits We set up separately the three circuits in fig. 2, each of which is overall a XOR circuit, and then checked the XOR logic. By adding an inverter to the first and third circuits, and by removing the final inverter from the second circuit, we checked the XNOR logic. 2

Flip-Flops Figure 2: Three XOR circuits Using a flip-flop from a 7476N I.C. we checked the action of the flip-flop for various values of J and K. We also recorded the action of the Clear and Preset inputs. Counters (Scalers) Using the combination of flip-flops shown in fig. 3, we constructed counters with scales of 16 and 10. We then constructed the circuit in fig. 4 to create a synchronous scale of 16. Figure 3: An asynchronous scale of 16 (with an adjustment for 10) 3

Results and Analysis NAND and AND gates Figure 4: A synchronous scale of 16 For a NAND gate with three inputs, the following data was obtained: Input A Input B Input C Output 1 1 1 0 1 1 0 1 1 0 1 1 0 1 1 1 0 0 1 1 1 0 0 1 0 1 0 1 0 0 0 1 For a NAND gate with three possible inputs, but with one removed, the following data was obtained: 1 1 0 1 0 1 0 1 1 0 0 1 4

This is equivalent to the truth table of a NAND gate with only two inputs. We then placed an inverter on the output of the three-input NAND gate and obtained the following results: Input A Input B Input C Output 1 1 1 0 1 1 0 0 1 0 1 0 0 1 1 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 This is equivalent to the truth table for an AND gate, demonstrating that NOT NAND = AND We then inverted one of the inputs to the 3-input AND gate above, and obtained the following data: Input A Input B Input C (Inverted) Output 1 1 1 0 1 1 0 1 1 0 1 0 0 1 1 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 OR and NOR Circuits We constructed the circuit shown in fig. 1 and obtained the following results: 1 1 1 1 0 1 0 1 1 0 0 0 5

This is equivalent to the truth table for an OR gate, showing that one can construct an OR gate out of NANDs and NOTs (technically, a NOT gate can in turn be constructed using only NAND gates, but we did not do this). We then added an inverter to the output of the above circuit, obtaining a NOR gate: 1 1 0 1 0 0 0 1 0 0 0 1 XOR and XNOR gates We constructed separately the three circuits in figure 2, for each of them obtaining the same set of data: 1 1 0 1 0 1 0 1 1 0 0 0 This is the truth table for an XOR gate. Then by adding an inverter to the output of the 1st and 3rd configurations, and by removing the final inverter of the 2nd configuration, we created three separate XNOR gates, for each of them obtaining the following data: 1 1 1 1 0 0 0 1 0 0 0 1 Flip-Flops We observed the following for various versions of J and K. When J = K = 0, there was no change in the outputs. 6

When J = 0, K = 1, Q was reset to its default value, 0. When J = 1, K = 0, Q was set to 1. When J = K = 1, Q and Q would toggle upon each pulse of the clock. We found that the clear function would return the flip-flop to the state of Q = 1, Q = 0, regardless of the state of J or K. Similarly, the preset function set Q = 0, Q = 1. Counters Below is a table of results for both the asynchronous and synchronous scales of 16: Pulse no. 2 0 2 1 2 2 2 3 0 0 0 0 0 1 1 0 0 0 2 0 1 0 0 3 1 1 0 0 4 0 0 1 0 5 1 0 1 0 6 0 1 1 0 7 1 1 1 0 8 0 0 0 1 9 1 0 0 1 10 0 1 0 1 11 1 1 0 1 12 0 0 1 1 13 1 0 1 1 14 0 1 1 1 15 1 1 1 1 16 0 0 0 0 7

Below is a table of results for the asynchronous scale of 10: Pulse no. 2 0 2 1 2 2 2 3 0 0 0 0 0 1 1 0 0 0 2 0 1 0 0 3 1 1 0 0 4 0 0 1 0 5 1 0 1 0 6 0 1 1 0 7 1 1 1 0 8 0 0 0 1 9 1 0 0 1 10 0 0 0 0 Discussion and Conclusions We found that all of the truth tables we recorded coincided with the expected results. It was also found that any logic gate could be created only from NANDs (we did not do this, for simplicity s sake; instead we used premade inverters which could technically themselves be made exclusively from NANDs) We also examined the operation of flip-flops, and showed that they can be used to create counters of various scales. This is a clear example of one of the many applications of flip-flops. 8