LOGIC CIRCUITS. Basic Experiment and Design of Electronics

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

Reg. No. Question Paper Code : B.E./B.Tech. DEGREE EXAMINATION, NOVEMBER/DECEMBER Second Semester. Computer Science and Engineering

Sample Test Paper - I


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

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

Digital Circuits ECS 371

ELCT201: DIGITAL LOGIC DESIGN

CHW 261: Logic Design

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.

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN

Sequential vs. Combinational

DE58/DC58 LOGIC DESIGN DEC 2014

SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL INTEGRATED CIRCUITS (DIC) LABORATORY MANUAL III / IV B.E. (ECE) : I - SEMESTER

Digital Electronics Circuits 2017

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

ECE 341. Lecture # 3

DIGITAL LOGIC CIRCUITS

Fundamentals of Boolean Algebra

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

PGT104 Digital Electronics. PGT104 Digital Electronics

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

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

CHW 261: Logic Design

Digital Fundamentals

I. Motivation & Examples

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

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

Chapter 7. Sequential Circuits Registers, Counters, RAM

Synchronous Sequential Logic

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

ECE/Comp Sci 352 Digital Systems Fundamentals. Charles R. Kime Section 2 Fall Logic and Computer Design Fundamentals

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

King Fahd University of Petroleum and Minerals College of Computer Science and Engineering Computer Engineering Department

Chapter 7 Sequential Logic

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

ELCT201: DIGITAL LOGIC DESIGN

Digital Fundamentals

Memory, Latches, & Registers

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

Digital Logic Appendix A

3 Logic Function Realization with MSI Circuits

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

Lecture 7: Logic design. Combinational logic circuits

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

L4: Sequential Building Blocks (Flip-flops, Latches and Registers)

Topic 8: Sequential Circuits

EECS150 - Digital Design Lecture 11 - Shifters & Counters. Register Summary

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

DIGITAL LOGIC DESIGN

Shift Register Counters

COEN 312 DIGITAL SYSTEMS DESIGN - LECTURE NOTES Concordia University

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

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

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

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

ELEN Electronique numérique

Digital Electronic Meters

Preparation of Examination Questions and Exercises: Solutions

( c) Give logic symbol, Truth table and circuit diagram for a clocked SR flip-flop. A combinational circuit is defined by the function

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

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

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

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

Introduction to Computer Engineering. CS/ECE 252, Fall 2012 Prof. Guri Sohi Computer Sciences Department University of Wisconsin Madison

EECS150 - Digital Design Lecture 17 - Sequential Circuits 3 (Counters)

Lecture 3 Review on Digital Logic (Part 2)

University of Toronto Faculty of Applied Science and Engineering Edward S. Rogers Sr. Department of Electrical and Computer Engineering

Chapter 14 Sequential logic, Latches and Flip-Flops

ALU A functional unit

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

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) SUMMER 14 EXAMINATION Model Answer

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.

EE 209 Logic Cumulative Exam Name:

COE 202: Digital Logic Design Sequential Circuits Part 4. Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Ch 9. Sequential Logic Technologies. IX - Sequential Logic Technology Contemporary Logic Design 1

Ch 7. Finite State Machines. VII - Finite State Machines Contemporary Logic Design 1

Sequential Logic Circuits

Fundamentals of Digital Design

Design of Sequential Circuits

(Boolean Algebra, combinational circuits) (Binary Codes and -arithmetics)

Chapter 3 Digital Logic Structures

Digital Electronics Sequential Logic

CSE140: Components and Design Techniques for Digital Systems. Midterm Information. Instructor: Mohsen Imani. Sources: TSR, Katz, Boriello & Vahid

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

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

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

Section 3: Combinational Logic Design. Department of Electrical Engineering, University of Waterloo. Combinational Logic

Logic and Computer Design Fundamentals. Chapter 8 Sequencing and Control

Lecture 14: State Tables, Diagrams, Latches, and Flip Flop

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

Menu. 7-Segment LED. Misc. 7-Segment LED MSI Components >MUX >Adders Memory Devices >D-FF, RAM, ROM Computer/Microprocessor >GCPU

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

PAST EXAM PAPER & MEMO N3 ABOUT THE QUESTION PAPERS:

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

EECS150 - Digital Design Lecture 23 - FSMs & Counters

Transcription:

Basic Experiment and Design of Electronics LOGIC CIRCUITS Ho Kyung Kim, Ph.D. hokyung@pusan.ac.kr School of Mechanical Engineering Pusan National University

Outline Combinational logic circuits Output depends on only the present inputs; not on the past inputs Multiplex ROM Decoder RAM PLD Sequential logic circuits Output depends on both the present and past inputs; hence having memory function Flip-flops Counters 2

Combinational logic circuits (modules) Multiplex ROM Decoder RAM PLD 3

Calculator Input Output Decimal 4 bits Encoder CPU Decoder BCD 4 bits BCD 7 bits Key pad 7-sement display 4

Half adder (HA) 2 inputs: and 3 outputs: (sum, LSB) and (carry, MSB) C OUT Y S Y Y Y Y C OUT S Y HA S C OUT Y S C OUT 5

Full adder (FA) 3 inputs:,, and 2 outputs: and C Y Y C C OUT S FA S C OUT Y S YC C ( YC ( Y C YC YC Y C YC ) ( Y C Z Z Z OUT YC YC YC Y C Y C Y C Y ( C Y C YC YC ) ( YC ( ) C YC ( Y ) ) C ( Y ) YC ) YC YC ( Y ( Y YC [ ( Y Y ) Y ( )] Y ) ) YC YC Y ) Y ( C YC C YC HA HA Y S ) C Y C OUT 6

For the output : YC S YC YC Y C For the output : YC YC Y C S YC C OUT C OUT Y C Y C Y C Y ( C Y C ( [ ( Y Y ) Y ( ) C ( YC Y ) Y ) ( Y Y ) )] 7

Multiplexers Selecting one of many inputs (also called data selectors) Consisting of 2 data lines, address lines, output, enable control input Ex) 4-to- MU 8

ROM Read-only memory Holding information in storage ( memory ) that cannot be altered but can be read by a logic circuit Consisting 2 cells = # of address lines = # of bits in each word stored in ROM When an address line is selected, the binary word corresponding to the address selected appears at the output c.f., EPROM (erasable programmable ROM) Ex) 2 4 ROM 9

Ex) 8-word 4-bit (or 2 4)ROM A B C F F F 2 F 3 typical data stored in ROM (2 3 words of 4bits each)

Decoder Identifying, recognizing, and detecting a particular code decoder inputs 2 input codes Representing a binary number Activating only the output that corresponds to that input number outputs Activated (HIGH) with only one of the outputs for each input code LOW for the other outputs Ex) 3 8 decoder, 4 (BCD-to-decimal) decoder, BCD-to-7 segment decoder N inputs 2 Decoder Y Y Y 2 M outputs N- Y M- 2 N input codes Only one output is HIGH for each input code

Ex) 2 4 decoder A B A B 2 4 decoder Y Y Y 2 Y 3 Y Y Y 2 Y 3 2

Ex) 3 8 decoder a b c y y y 2 y 3 y 4 y 5 y 6 y 7 3

Ex) BCD-to-decimal decoder 74LS42, 74HC42 BCD Input Decimal Output A B C D 2 3 4 5 6 7 8 9 active-low outputs 4

Decoder and RAM Commonly used for address decoding or memory expansion Ex) 2-to-4 decoder SRAM (static random access, or read and write, memory) 5

Encoder Opposite to the decoding process Only one of input lines is activated at a given time Producing an -bit output code M inputs only one HIGH at a time 2 Encoder Y Y Y 2 N-bit output code M- Y N- 6

Ex) 8 3 decoder y y y 2 y 3 y 4 y 5 y 6 y 7 a b c d 7

Ex) Decimal-to-BCD encoder +5 V 2 3 4 5 6 7 8 9 Switch on 3: ABCD = Switch on 7: ABCD = A B C D 8

PLD Programmable logic device PROM (programmable read-only memory) PLA (programmable logic array) PAL/GAL (programmable array logic/generic array logic) Arrays of gates (e.g., AND and OR gates) having interconnections that can be programmed to perform a specific logical function Programming language: hardware description languages (HDLs) Used for various digital logic designs 9

Timing diagram 2

Sequential logic circuits Combinational logic circuits provide outputs that are based on a combination of present inputs only Sequential logic circuits depend on present and past input values (it memorizes!) Being able to store information 2

Flip-flops Basic information storage device in a digital circuit Many different varieties of flip-flops RS FF D FF JK FF T FF Common characteristics Bistable device Remaining in one of two stable states ( and ) until appropriate conditions cause FF to change state Memory element Two outputs; complement ( ) and uncomplement ( ) outputs Synchronous operation by a clock signal Asynchronous operation Independent of the clock Level sensitive ( Latch ) 22

RS filp-flop Two inputs ( set and reset ), two outputs ( and, called the state of FF) Requiring the FF to set and reset at the same time! Time delays! 23

24

Ex) Initial state (then, ; apply SET becomes ; still SET Cross-coupled feedback from outputs and to the input of the NAND gates is such that the set condition sustains itself 25

RS FF with enable ( ), preset ( ), and clear ( ) inputs or is effective only when Synchronizing signal Direct inputs and allow the user to preset or clear the FF at any time (asynchronous operation) (preset) when (cleared) when 26

Delay latch (or delay element) An extension of RS FF Always SET whenever Prohibiting ; eliminating input Once, FF is latched to the previous value of the input ( memory ) and delays the output by one clock count w.r.t. the input No change 27

D flip-flop An extension of data latch with two RS FFs Changing state only on the positive edge of the clock (leading or positive edgetriggered) Similarly, trailing or negative edge-triggered D FF indicating leading edge-trigger 28

D Q D C Q CLK D Q Q D CLK Q Q Q CLK Q Q 29

JK flip-flop J Q CLK K Q J K Q No change Reset Set Toggle J Q CLK K Q J K CLK Q 3

indicating trailing edge-trigger (no change) 3

Master/slave FF Master Slave J K Q n+ J Q CLK K Q J Q CLK K Q Q n (no change) Reset Set Q n (toggle) CLK t n master t n+ slave J K Q 32

33

T flip-flop JK FF with its inputs tied together 34

+ V CC Q D Q J Q T T CLK Q T CLK Q K Q T Q EN T J CLK Q EN K Q Q 35

3-bit binary up counter Force a RESET 36

Decade counter Count from to 9 and then RESET Impractical due to propagation delays 37

Ripple counter Consists of a cascade of 3 JK FFs 38

Ripple-up counter Asynchronous counter CLK Q (LSB) Q Q 2 Q Q T Q T Q 2 T 2 Q Q 2 Q Q Q 2 2 3 4 5 6 7 Q T Q T Q 2 T 2 Q Q 39

Ripple-down counter Asynchronous counter CLK Q (LSB) Q Q 2 Q Q T Q T Q 2 T 2 Q Q 2 7 6 5 4 3 2 4

Synchronous counter Q Q Q 2 Q 3 J Q J Q J 2 Q 2 J 3 Q 3 CLK CLK CLK CLK K K K 2 K 3 F F F 2 F 3 + V CC 4

2 3 4 5 6 7 8 9 2 3 4 5 42

Divider circuit 43

Synchronous counter 44

Ring counter 45

Parallel register The load input (clock) simultaneously transfers the parallel input binary word (store!) 46

Shift register 47