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

Similar documents
LOGIC CIRCUITS. Basic Experiment and Design of Electronics

Sample Test Paper - I


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

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

DIGITAL LOGIC CIRCUITS

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

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 Electronics Circuits 2017

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

CHW 261: Logic Design

Digital Circuits ECS 371

ELCT201: DIGITAL LOGIC DESIGN

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

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

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

CHW 261: Logic Design

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

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

Sequential vs. Combinational

ECE 341. Lecture # 3

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

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

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

PGT104 Digital Electronics. PGT104 Digital Electronics

Chapter 7. Sequential Circuits Registers, Counters, RAM

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

KUMARAGURU COLLEGE OF TECHNOLOGY COIMBATORE

Digital Fundamentals

Fundamentals of Boolean Algebra

3 Logic Function Realization with MSI Circuits

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

I. Motivation & Examples

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

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

Digital Fundamentals

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

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

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

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

Unit 7 Sequential Circuits (Flip Flop, Registers)

Memory, Latches, & Registers

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

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

Lecture 7: Logic design. Combinational logic circuits

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

Synchronous Sequential Logic

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

SAU1A FUNDAMENTALS OF DIGITAL COMPUTERS

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

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

ELCT201: DIGITAL LOGIC DESIGN

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

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

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

EECS150 - Digital Design Lecture 18 - Counters

EECS150 - Digital Design Lecture 18 - Counters

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

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

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

ESE 570: Digital Integrated Circuits and VLSI Fundamentals

Topics. Dynamic CMOS Sequential Design Memory and Control. John A. Chandy Dept. of Electrical and Computer Engineering University of Connecticut

Dept. of ECE, CIT, Gubbi Page 1

Digital Logic Appendix A

Shift Register Counters

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

Introduction to Computer Engineering. CS/ECE 252, Spring 2017 Rahul Nayar Computer Sciences Department University of Wisconsin Madison

Lecture 9: Digital Electronics

Chapter 7 Sequential Logic

ALU A functional unit

Gates and Flip-Flops

NTE74176 Integrated Circuit TTL 35Mhz Presettable Decade Counter/Latch

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

Sequential Logic Circuits

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Fundamentals of Digital Design

Experiment 9 Sequential Circuits

Digital Electronics Final Examination. Part A

Design of Sequential Circuits

Lecture Outline. ESE 570: Digital Integrated Circuits and VLSI Fundamentals. Total Power. Energy and Power Optimization. Worksheet Problem 1

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Principles of Digital Techniques

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

NTE74177 Integrated Circuit TTL 35Mhz Presettable Binary Counter/Latch

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

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

Digital Electronic Meters

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

ELECTRONICS & COMMUNICATION ENGINEERING PROFESSIONAL ETHICS AND HUMAN VALUES

ELEN Electronique numérique

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

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

Topic 8: Sequential Circuits

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

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

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

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

Lecture 3 Review on Digital Logic (Part 2)

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

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

Digital IC packages TTL (transistor-transistor logic) High-power consumption, fast 74 series CMOS (complementary metal-oxide-semiconductor) Low-power consumption, slow Weak to static 4 series 74 Vcc 4B 4A 4Y 3B 3A 4 3 2 9 3Y 8 2 3 4 5 6 7 A B Y 2A 2B 2Y GND DIP (dual-in-line) package Flat-type Surface-mount package 2

3

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 4

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

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

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

Full adder (FA) 3 inputs:, Y, and C 2 outputs: S and C OUT 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 YC [ ( Y Y ) Y ( )] ( Y Y ) ) YC YC ( Y Y ) Y ( C YC C YC HA HA Y S ) C Y C OUT 8

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

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

ROM Read-only memory Holding information in storage ( memory ) that cannot be altered but can be read by a logic circuit Consisting 2 m n cells m = # of address lines n = # 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 2 4 ROM

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

Decoder Identifying, recognizing, and detecting a particular code N M decoder N inputs 2 N input codes Representing a binary number Activating only the output that corresponds to that input number M outputs Activated (HIGH) with only one of the M 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 3

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

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

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 6

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) 7

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

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

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 2

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 2

Timing diagram 22

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 23

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 ( Q) and uncomplement (Q) outputs Synchronous operation by a clock signal Asynchronous operation Independent of the clock Level sensitive ( Latch ) 24

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

R S Q 26

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

RS FF with enable (E), preset (P), and clear (C) inputs R or S is effective only when E = Synchronizing signal Direct inputs P and C allow the user to preset or clear the FF at any time (asynchronous operation) S = (preset) when P = Q = (cleared) when C = 28

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

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 D CLK Q D CLK Q indicating leading edge-trigger 3

Note that C implies the control signal D Q D C Q CLK D Q Q CLK Q Q D Q CLK Q Q 3

JK flip-flop Same as RS FF except that J = K = states J Q CLK K Q J K Q No change Reset Set Toggle J Q CLK K Q J K CLK Q 32

indicating trailing edge-triggerc (no change) 33

J K Q 34

Master/slave FF Delayed output by the width of clock pulse 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 J t n master t n+ slave K Q 35

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

클럭이들어올때마다상태가바뀌는회로 출력신호가정확히 T 입력신호주파수의절반 + V CC Q D Q J Q T T CLK Q T CLK Q K Q D FF JK FF T Q EN J Q EN T CLK K Q Q 37

3-bit binary up counter Force a RESET 38

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

Ripple counter Consists of a cascade of 3 JK FFs 4

Ripple-up counter Asynchronous counter T FF n serial cascades = (2 n ) counter Slow CLK Q (LSB) Q Q 2 Q Q T Q T Q 2 T 2 Q Q 2 2 3 4 5 6 7 Q Q Q 2 Q T Q T Q 2 T 2 Q Q 4

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 42

Synchronous counter Parallel counter Fast Complex 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 43

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

Divider circuit 45

Synchronous counter 46

Ring counter 47

Parallel register The load input (clock) simultaneously transfers the parallel input binary word b 3 b 2 b b (store!) 48

Shift register 49