Computer Architecture: Part III. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

Similar documents
Ripple Counters. Lecture 30 1

Computer Architecture: Part V. First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

Code No: R Set No. 1

University of Technology

Scheme G. Sample Test Paper-I

SIR C.R.REDDY COLLEGE OF ENGINEERING, ELURU DEPARTMENT OF INFORMATION TECHNOLOGY LESSON PLAN

Code No: R Set No. 1

3. The high voltage level of a digital signal in positive logic is : a) 1 b) 0 c) either 1 or 0

Injntu.com Injntu.com Injntu.com R16

Model EXAM Question Bank

CONTENTS CHAPTER 1: NUMBER SYSTEM. Foreword...(vii) Preface... (ix) Acknowledgement... (xi) About the Author...(xxiii)

B.Tech II Year I Semester (R13) Regular Examinations December 2014 DIGITAL LOGIC DESIGN

Hours / 100 Marks Seat No.

II/IV B.Tech (Regular/Supplementary) DEGREE EXAMINATION. Answer ONE question from each unit.

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

DIRECTORATE OF TECHNICAL EDUCATION DIPLOMA IN ELECTRICAL AND ELECTRONICS ENGINEERING II YEAR M SCHEME IV SEMESTER.

Principles of Digital Techniques PDT (17320) Assignment No State advantages of digital system over analog system.

R a) Simplify the logic functions from binary to seven segment display code converter (8M) b) Simplify the following using Tabular method

END-TERM EXAMINATION

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING EC6302 DIGITAL ELECTRONICS

COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK SUBJECT CODE & NAME: EC 1312 DIGITAL LOGIC CIRCUITS UNIT I

UPY14602-DIGITAL ELECTRONICS AND MICROPROCESSORS Lesson Plan

Philadelphia University Department of Computer Science. By Dareen Hamoudeh

Code No: 07A3EC03 Set No. 1

SHRI ANGALAMMAN COLLEGE OF ENGINEERING. (An ISO 9001:2008 Certified Institution) SIRUGANOOR, TIRUCHIRAPPALLI

UNIT-III REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT

(ii) Simplify and implement the following SOP function using NOR gates:

MULTIMEDIA COLLEGE JALAN GURNEY KIRI KUALA LUMPUR

R07. Code No: V0423. II B. Tech II Semester, Supplementary Examinations, April


SUBJECT CODE: IT T35 DIGITAL SYSTEM DESIGN YEAR / SEM : 2 / 3

Written exam for IE1204/5 Digital Design Thursday 29/

Storage Elements & Sequential Circuits

Logic design Ibn Al Haitham collage /Computer science Eng. Sameer

SIDDHARTH GROUP OF INSTITUTIONS :: PUTTUR Siddharth Nagar, Narayanavanam Road QUESTION BANK (DESCRIPTIVE) UNIT-I

Philadelphia University Student Name: Student Number:

PART B. 3. Minimize the following function using K-map and also verify through tabulation method. F (A, B, C, D) = +d (0, 3, 6, 10).

(Refer Slide Time: 00:01:53)

Written Re-exam with solutions for IE1204/5 Digital Design Friday 10/

ECE 574: Modeling and Synthesis of Digital Systems using Verilog and VHDL. Fall 2017 Final Exam (6.00 to 8.30pm) Verilog SOLUTIONS

COPYRIGHTED MATERIAL INDEX

ECE 341 Midterm Exam

Code No: R Set No. 1

SECTION-A

Computer Architecture Programming the Basic Computer

DIGITAL ELECTRONICS. P41l 3 HOURS

NADAR SARASWATHI COLLEGE OF ENGINEERING AND TECHNOLOGY Vadapudupatti, Theni

Chapter 4. Combinational Logic

Hours / 100 Marks Seat No.

DIGITAL CIRCUIT LOGIC UNIT 9: MULTIPLEXERS, DECODERS, AND PROGRAMMABLE LOGIC DEVICES

R07

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital

HANSABA COLLEGE OF ENGINEERING & TECHNOLOGY (098) SUBJECT: DIGITAL ELECTRONICS ( ) Assignment

REGISTER TRANSFER LANGUAGE

Digital System Design with SystemVerilog

1. Prove that if you have tri-state buffers and inverters, you can build any combinational logic circuit. [4]

Digital logic fundamentals. Question Bank. Unit I

IA Digital Electronics - Supervision I

Computer Architecture and Organization:

R10. II B. Tech I Semester, Supplementary Examinations, May

University of California at Berkeley College of Engineering Department of Electrical Engineering and Computer Sciences. Spring 2010 May 10, 2010

COMPSCI 210 S Computer Systems 1. 6 Sequential Logic Circuit

CHAPTER - 2 : DESIGN OF ARITHMETIC CIRCUITS

Topics. Midterm Finish Chapter 7

Reference Sheet for C112 Hardware

ECE 2020B Fundamentals of Digital Design Spring problems, 6 pages Exam Two Solutions 26 February 2014

Note: Closed book no notes or other material allowed, no calculators or other electronic devices.

/90 TOTAL. 1(a) 8pts. fiv(a,b) is called the function.

CS/IT DIGITAL LOGIC DESIGN

ECE 341 Midterm Exam

UNCA CSCI 255 Exam 1 Spring February, This is a closed book and closed notes exam. It is to be turned in by 1:45 PM.

The Memory Component

KING FAHD UNIVERSITY OF PETROLEUM & MINERALS COMPUTER ENGINEERING DEPARTMENT

VALLIAMMAI ENGINEERING COLLEGE

EECS 3201: Digital Logic Design Lecture 7. Ihab Amer, PhD, SMIEEE, P.Eng.

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Introduction to Computing Module No: CS/ES/1 Quadrant 1 e-text

ACS College of Engineering. Department of Biomedical Engineering. Logic Design Lab pre lab questions ( ) Cycle-1

Register Transfer Level in Verilog: Part I

VALLIAMMAI ENGINEERING COLLEGE

Mark Redekopp, All rights reserved. EE 352 Unit 8. HW Constructs

Continuing with whatever we saw in the previous lectures, we are going to discuss or continue to discuss the hardwired logic design.

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK NAME OF THE SUBJECT: EE 2255 DIGITAL LOGIC CIRCUITS

Chapter 2 Logic Gates and Introduction to Computer Architecture

Question Total Possible Test Score Total 100

SCHEME OF EXAMINATION FOR B.Sc.(COMPUTER SCIENCE) SEMESTER SYSTEM (Regular Course) w.e.f Scheme for B.Sc.-I. Semester-I. Internal Assessment

ELCT 501: Digital System Design

ECE 331: N0. Professor Andrew Mason Michigan State University. Opening Remarks

DIGITAL SYSTEM DESIGN

EECS150 - Digital Design Lecture 20 - Finite State Machines Revisited

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

CS6201-DIGITAL PRINCIPLE AND SYSTEM DESIGN I YEAR/II SEM PART-B UNIT-I BOOLEAN ALGEBRA AND LOGIC GATES.

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

EECS 270 Midterm Exam

1. Mark the correct statement(s)

Lecture 3. Behavioral Modeling Sequential Circuits. Registers Counters Finite State Machines

Federal Urdu University of Arts, Science and Technology, Islamabad VLSI SYSTEM DESIGN. Prepared By: Engr. Yousaf Hameed.

Music. Numbers correspond to course weeks EULA ESE150 Spring click OK Based on slides DeHon 1. !

Digital Design Using Digilent FPGA Boards -- Verilog / Active-HDL Edition

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

10EC33: DIGITAL ELECTRONICS QUESTION BANK

Transcription:

Computer Architecture: Part III First Semester 2013 Department of Computer Science Faculty of Science Chiang Mai University

Outline Decoders Multiplexers Registers Shift Registers Binary Counters Memory Unit 204231: Computer Organization and Architecture 2

Decoders A decoder is a combinational circuit that converts binary information from the n coded inputs to a maximum of 2 n unique outputs. The decoders presented in this sections are called n to m line decoders, where e m <= 2 n. Their purpose is to generate the 2 n (or fewer) binary combinations of the n input variables. A decoder has n inputs and m outputs and is also referred dto as an n x m decoder. d 204231: Computer Organization and Architecture 3

3 to 8 line decoder 204231: Computer Organization and Architecture 4

3 to 8 line decoder The three data inputs, A 0, A 1, and A 2, are decoded into eight outputs, each output represent one of the combinations of the three binary input variables. A particular a application of this sdecoder is a binary to octal conversion. Commercial decoders include one or more enable inputs to control the operation of the circuit. The decoder d is enabled when E is equal to 1 and disabled when E is equal to 0. 204231: Computer Organization and Architecture 5

Truth Table for 3 to 8 Line Decoder When the enable input E is equal to 0, all the outputs are equal to 0 regardless of the values of the other there data inputs. The there x s in the table designate don t care conditions. When the enable input is equal to 1, the decoder operates in a normal fashion. For each possible input combination, there are seven outputs that are equal to 0 and only one that is equal to 1. The output variable whose value is equal to 1 represents the octal number equivalent of the binary number that is available in the input data lines. 204231: Computer Organization and Architecture 6

Truth Table for 3 to 8 Line Decoder 204231: Computer Organization and Architecture 7

NAND Gate Decoder Some decoders are constructed with NAND instead of AND gates. The decoder is enabled when E is equal to 0. As indicated by the truth table, only one output is equal to 0 at any give time; the other three outputs are equal to 1. The output twhose value is equal to 0 represents the equivalent binary number in inputs A 1 and A 0. The circuit is disabled when E is equal to 1, regardless of the values of the other two inputs. 204231: Computer Organization and Architecture 8

2 to 4 line decoder with NAND gates 204231: Computer Organization and Architecture 9

Decoder Expansion Two 2 to 4 linedecodersarecombined combined to achieve a 3 to 8 line decoder. The two least significant bits of the input are connected to both decoders. The most significant bit is connected to the enableinputof onedecoderandthrough an inverter to the enable input of the other decoder. It is assumed that each decoder is enabled when its E input is equal to 1. 204231: Computer Organization and Architecture 10

Decoder Expansion When E is equal to 0, the decoder is disabled and all its outputs t are in the 0 level. l When A 2 = 0, the upper decoder is enabled and the lower is disabled. The outputs of the upper decoder generate outputs D 0 through D 3, depending on the values of A 1 and A 0. When A 2 = 1, the lower decoder d is enabled and the upper is disabled. The lower decoder output generates the binary equivalent D 4 through D 7. q 4 g 7 204231: Computer Organization and Architecture 11

A 3 8 decoder constructed with two 2 4 decoders 204231: Computer Organization and Architecture 12

Encoder An encoder is a digital circuit that performs the inverse operation of a decoder. d An encoder has 2 n (or less) input lines and n output lines. The output lines generate the binary code corresponding to the input value. An example of and encoderis the octal to binary to encoder. It has eight inputs, one for each of the octal digits, and three outputs the generate the corresponding binary number. 204231: Computer Organization and Architecture 13

Truth Table for Octal to Binary Encoder 204231: Computer Organization and Architecture 14

Encoders It is assumed that only one input has a value of 1 at any given time; otherwise., the circuit has no meaning. The encoder can be implemented with OR gates whose inputs are determined directly from the truth table. Output A 0 = 1 if the input octal digit is 1 or 3 or 5 or 7. Similar conditions apply for the other two outputs. A 0 = D 1 + D 3 + D 5 + D 7 A 1 = D 2 + D 3 + D 6 + D 7 A 2 = D 4 + D 5 + D 6 + D 7 204231: Computer Organization and Architecture 15

Multiplexers A multiplexer is a combinational circuit that receives binary information from one of 2 n input data lines and directs it to a single output line. The selection of a particular input data line for the output is determined by a set of selection inputs. A 2 n to 1 multiplexer has 2 n input data lines and n input selection lines whose bit combinations determine which input data are selected for the output. 204231: Computer Organization and Architecture 16

A 4 to 1 line multiplexer Each of the four data inputs I 0 through I 3 is applied to one input of and AND gate. The two selection inputs S 1 and S 0 are decoded to select a particular AND gate. The outputs of the AND gates are applied to a single OR gate to provide the single output. A more convenient way to describe the operation of multiplexers li l is by means of a function table. 204231: Computer Organization and Architecture 17

4 to 1 line multiplexer 204231: Computer Organization and Architecture 18

Function Table for 4 to 1 Line Multiplexer 204231: Computer Organization and Architecture 19

Registers In its broadest definition, a register consists of a group of flip flops p and gates that effect their transition. The flip flops flops hold the binary information and the gates control when and how new information is transferred dinto the register. it 204231: Computer Organization and Architecture 20

4 bit Register Slide number 23 shows such a register constructed with four D flip flops. The common clock input triggers all flip flops on the rising edge of each pulse, and the binary data available at the four inputs are transferred into the 4 bit register. The four outputs can be sampled at any time to obtain the binary information stored in the register. 204231: Computer Organization and Architecture 21

4 bit Register The clear input goes to a special terminal in each flip flop. p When this input goes to 0, all flip flops are reset asynchronously. The clear input is useful for clearing the register to all 0 s prior to its clocked operation. 204231: Computer Organization and Architecture 22

4 bit register 204231: Computer Organization and Architecture 23

Shift Registers A register capable of shifting i its binary information in one or both directions is called a shift register. The logical configuration of a shift register consists of a chain of flip flops in cascade, with the output of one flip flop p connected to the input of the next flip flop. All flip flop receive common clock pulses that initiate the shift from one stage to the next. 204231: Computer Organization and Architecture 24

4 bit shift register 204231: Computer Organization and Architecture 25

Binary Counters A counter that follows the binary number sequence is called a binary counter. An n bit binary counter is a register of n flip flops and associated gates that follows a sequence of stated according to the binary count of n bits, from 0 to 2 n 1. 204231: Computer Organization and Architecture 26

Binary Counter Going through a sequence of binary numbers such as 0000, 0001, 0010, 0011, and so on, we note that the lower order bit is complemented after every count and every other bit is complemented from one count to the next if and only if all its lower order order bits are equal to 1. 204231: Computer Organization and Architecture 27

Binary Counter Remember that a JK flip flop is complemented if both its J and K inputs are 1 and the clock goes through a positive transition. The output of the flip flop p does not change if J = K = 0. In addition, thecounter may be controlled with an enable input that turns the counter on or off without removing the clock signal from the flip flops. 204231: Computer Organization and Architecture 28

4 bit synchronous binary counter 204231: Computer Organization and Architecture 29

Random Access Memory The n data input lines provide the information i to be stored in memory, and the n data output lines supply the information coming out of memory. The k address lines provide a binary number of k bits that specify a particular word chosen among the 2 k available inside the memory. Thetwocontrol inputs specify thedirection of transfer desired. 204231: Computer Organization and Architecture 30

Block diagram of random access memory (RAM) 204231: Computer Organization and Architecture 31

Transferring a new word to be stored into memory 1. Apply the binary address of the desired word into the address lines. 2. Apply the data bits that must be stored in memoryinto thedata input lines. 3. Activate the write input. 204231: Computer Organization and Architecture 32

Transferring a stored word out of memory 1. Apply the binary address of the desired word into the address lines. 2. Activate the read input. 204231: Computer Organization and Architecture 33

Read Only Memory An m x n ROM is an array of binary cells organized into m words of n bits each. A ROM has k address input lines to select one of 2 k = m words of memory, and n output lines, one for each bit of the word. The ROM does not need a read control line since at any given time, the output lines automatically provide the n bits of the word selected by the address value. 204231: Computer Organization and Architecture 34

Block diagram of read only memory (ROM) 204231: Computer Organization and Architecture 35

Reference M. Moris Mano, Computer System Architecture, 3 rd ed. NJ: Prentice Hall, 1992. 204231: Computer Organization and Architecture 36