Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-1 Chap. 4 Register Transfer.

Slides:



Advertisements
Similar presentations
Combinational Circuits
Advertisements

Chapter 4 Register Transfer and Microoperations
Princess Sumaya Univ. Computer Engineering Dept. د. بســام كحـالــه Dr. Bassam Kahhaleh.
Chapter 7 Henry Hexmoor Registers and RTL
Princess Sumaya University
1 Register Transfer &  -operations Computer Organization Computer Architectures Lab REGISTER TRANSFER AND MICROOPERATIONS Register Transfer Language Register.
8085 processor. Bus system in microprocessor.
Charles Kime & Thomas Kaminski © 2004 Pearson Education, Inc. Terms of Use (Hyperlinks are active in View Show mode) Terms of Use Chapter 7 – Registers.
Chapter 7. Register Transfer and Computer Operations
Cpe 252: Computer Organization1 Lo’ai Tawalbeh Lecture #4 Register Transfer and Microoperations 23/2/2006 Chapter 4:
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
Logic and Computer Design Dr. Sanjay P. Ahuja, Ph.D. FIS Distinguished Professor of CIS ( ) School of Computing, UNF.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Registers and Counters
Chapter 4 Register Transfer and Microoperations
CS 105 Digital Logic Design
Digital Systems © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 6 Digital Arithmetic 6-1 Chap. 6 Digital Arithmetic: Operations & Circuits n.
Computer System Configuration and Function Computer Architecture and Design Lecture 6.
Outline Analysis of Combinational Circuits Signed Number Arithmetic
MICRO OPERATIONS Department of Computer Engineering, M.S.P.V.L. Polytechnic College, Pavoorchatram.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Unit I Digital computer: functional units and their interconnections Mr. Mukul Varshney.
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
CSC321 Where We’ve Been Binary representations Boolean logic Logic gates – combinational circuits Flip-flops – sequential circuits Complex gates – modules.
Chapter 4 Register Transfer and Micro -operations
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
REGISTER TRANSFER AND MICROOPERATIONS
Lecture 9 Topics: –Combinational circuits Basic concepts Examples of typical combinational circuits –Half-adder –Full-adder –Ripple-Carry adder –Decoder.
EKT 221/4 DIGITAL ELECTRONICS II  Registers, Micro-operations and Implementations - Part3.
EKT221 ELECTRONICS DIGITAL II CHAPTER 4: Computer Design Basics
Chap 7. Register Transfers and Datapaths. 7.1 Datapaths and Operations Two types of modules of digital systems –Datapath perform data-processing operations.
Chapter 4 Computer Design Basics. Chapter Overview Part 1 – Datapaths  Introduction  Datapath Example  Arithmetic Logic Unit (ALU)  Shifter  Datapath.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
REGISTER TRANSFER LANGUAGE MICROOPERATIONS. TODAY OUTLINES Logic Microoperations Shift Microoperations.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
1 Chapter Four Register Transfer and Micro operations.
Micro Operation. MICROOPERATIONS Computer system microoperations are of four types: - Register transfer microoperations - Arithmetic microoperations -
Charles Kime & Thomas Kaminski © 2008 Pearson Education, Inc. (Hyperlinks are active in View Show mode) Chapter 7 – Registers and Register Transfers Part.
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
EKT 221 : Chapter 4 Computer Design Basics
1 Outline Bus Transfer Memory Transfer Microoperations.
1 Chapter 7 Henry Hexmoor Registers and RTL. REGISTER TRANSFER AND MICROOPERATIONS Register Transfer Language Register Transfer Bus and Memory Transfers.
Register Transfer Languages (RTL)
CSC321 Homework Due Due Tuesday after spring break Turn in –Design information State diagram State table K-map simplifications and expressions for flip-flop.
Chapter 4 Register Transfer and Microoperations Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2010.
Exam1 Review Dr. Bernard Chen Ph.D. University of Central Arkansas.
Chapter 1_0 Registers & Register Transfer. Chapter 1- Registers & Register Transfer  Chapter 7 in textbook.
REGISTER TRANSFER & MICROOPERATIONS By Sohaib. Digital System Overview  Each module is built from digital components  Registers  Decoders  Arithmetic.
ECEG-3202: Computer Architecture and Organization, Dept of ECE, AAU 1 Register Transfer & Microoperations.
1 Register Transfer and Microoperations Acknowledgment: Most of the slides are adapted from Prof. Hyunsoo Yoon’s slides.
1 REGISTER TRANSFER & MICROOPERATIONS. 2 OUTLINES Register Transfer Language Register Transfer Bus and Memory Transfers Arithmetic Microoperations Logic.
REGISTER TRANSFER AND MICROOPERATIONS
Combinational Circuits
REGISTER TRANSFER AND MICROOPERATIONS
Chapter 4 Register Transfer and Microoperations
Chap 7. Register Transfers and Datapaths
Overview Register Transfer Language Register Transfer
Register Transfer and Microoperations
REGISTER TRANSFER LANGUAGE AND DESIGN OF CONTROL UNIT
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
به نام یگانه مهندس هستی معماری کامپیوتر مهدی قدیری
REGISTER TRANSFER LANGUAGE
Computer Architecture and Design Lecture 6
Computer Organization and Design
By: A. H. Abdul Hafez CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU
Overview Part 1 - Registers, Microoperations and Implementations
Combinational Circuits
CHAPTER-3 REGISTER TRANSFER LANGUAGE AND MICROOPERATIONS
Instruction execution and ALU
Computer Architecture
Presentation transcript:

Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-1 Chap. 4 Register Transfer and Microoperations n 4-1 Register Transfer Language  Microoperation l The operations executed on data stored in registers(shift, clear, load, count)  Internal H/W Organization (best defined by specifying) 1. The set of registers(register 의 개수, 종류, 기능 ) 2. The sequence of microoperations 3. The sequence control of microoperations  Register Transfer Language l The symbolic notation used to describe the microoperation transfer among registers »The use of symbols instead of a narrative explanation provides an organized and concise manner l A convenient tool for describing the internal organization of digital computers in concise and precise manner n 4-2 Register Transfer  Registers : Fig. 4-1 l Designated by Capital Letter(sometimes followed by numerals) : MAR(Memory Address Register), PC(Program Counter), IR(Instruction Register), R1(Processor Register)

Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-2 l The individual F/Fs in an n-bit register : numbered in sequence from 0(rightmost position) through n-1 l The numbering of bits in a 16-bit register : marked on top of the box l A 16-bit register partitioned into two parts : bit 0-7(symbol “L” Low byte), bit 8- 15(symbol “H” High byte)  Register Transfer : Information transfer from one register to another l (transfer of the content of register R1 into register R2) »The content of the source register R1 does not change after the transfer  Control Function : The transfer occurs only under a predetermined control condition l The transfer operation is executed by the hardware only if P=1 : Fig. 4-2 l A comma is used to separate two or more operations(Executed at the same time)  Basic Symbols for Register Transfer : Tab. 4-1 =

Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-3 n 4-3 Bus and Memory Transfers  Common Bus l A more efficient scheme for transferring information between registers in a multiple-register configuration l A bus structure = a set of common lines l Control signals determine which register is selected »One way of constructing a common bus system is with multiplexers »The multiplexers select the source register whose binary information is place on the bus l The construction of a bus system for four registers : Fig. 4-3 »4 bit register X 4 »Four 4 X 1 Multiplexers »Bus Selection : S0, S1 l 8 Registers with 16 bit »16 X 1 mux 8 개 필요 S1 S0 4-line common bus Register D Register CRegister BRegister A

Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-4  Bus Transfer l The content of register C is placed on the bus, and the content of the bus is loaded into register R1 by activating its load control input  Three-State Bus Buffers l A bus system can be constructed with three-state gates instead of multiplexers l Tri-State : 0, 1, High-impedance(Open circuit) l Buffer »A device designed to be inserted between other devices to match impedance, to prevent mixed interactions, and to supply additional drive or relay capability »Buffer types are classified as inverting or noninverting l Tri-state buffer gate : Fig. 4-4 »When control input =1 : The output is enabled(output Y = input A) »When control input =0 : The output is disabled(output Y = high-impedance) = R1 RegisterC Register n Bus Normal input A Control input C If C=1, Output Y = A If C=0, Output = High-impedance

Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-5  The construction of a bus system with tri-state buffer : Fig. 4-5 l The outputs of four buffer are connected together to form a single bus line(Tri- state buffer 이기 때문에 가능 ) l No more than one buffer may be in the active state at any given time(2 X 4 Decoder 사용으로 해결 ) l To construct a common bus for 4 register with 4 bit : Fig. 4.5 와 같은 회로 4 개 필요 (register 개수가 늘어나면 decoder 의 입력 증가 및 buffer 개수 증가 )  Memory Transfer l Memory read : A transfer information into DR from the memory word M selected by the address in AR l Memory Write : A transfer information from R1 into the memory word M selected by the address in AR A0 B0 C0 D0 Select input Enable input Bus line for bit 0 AR: Address Reg. DR: Data Reg. M : Memory Word(Data)

Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-6 n The 4 types of microoperation in digital computers  Register transfer microoperation : Sec 2-4 와 Sec 4-2 에서 이미 학습  Arithmetic microoperation  Logic microoperation  Shift microoperation n 4-4 Arithmetic Microoperation  Arithmetic Microoperation : Tab. 4-3 l Negate : 2’s complement l Subtraction : R1 + 2’s complement of R2 l Multiplication(shift left), Division(shift right)  4-bit Binary Adder : Fig. 4-6 l Full adder = 2-bits sum + previous carry l c 0 (input carry), c 4 (output carry) Sec 4-4, 4-5, 4-6 에서 학습 Sec 4-7 에서 3 개를 모두 통합 B3 A3 B2 A2 B1 A1 B0 A0 S3 S2 S1 S0 C0 C4

Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-7  4-bit Binary Adder-Subtractor : Fig. 4-7 l M =0 : Adder B  M + C = B  = B,  A + B l M =1 : Subtractor B  M + C = B  = B’ + 1= -B(2’s comp),  A - B  4-bit Binary Incrementer l Sequential circuit implementation by using binary counter : Fig l Combinational circuit implementation by using Half Adder : Fig. 4-8 B3 A3 B2 A2 B1 A1 B0 A0 S3 S2 S1 S0 C4 C0 M C4 S3 S2 S1 S0 B3 B2 B1 B0 1 Always added to 1

Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-8  Arithmetic Circuit l One composite arithmetic circuit in Tab. 4-3 : Fig. 4-9 l D= A 0 (X 0 ) + B 0 (Y 0 ) + C in »B 0 : S 0, S 1 에 따라 B, B, 0, 1 »Tab. 4-4 의 Input Y = B A+B’=A+B’+1-1 = A-B-1 A+1111=A-1 A-1+1=A S0 S1 Cin D0 D1 D2 D3 Cout A0 B0 A1 B1 A2 B2 A3 B3 0

Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-9 n 4-5 Logic Microoperation  Logic microoperation l Logic microoperations consider each bit of the register separately and treat them as binary variables »exam) l Special Symbols »Special symbols will be adopted for the logic microoperations OR(  /), AND(  ), and complement(a bar on top), to distinguish them from the corresponding symbols used to express Boolean functions »exam)  List of Logic Microoperation l Truth Table for 16 functions for 2 variables : Tab. 4-5 l 16 Logic Microoperation : Tab. 4-6  Hardware Implementation l 16 microoperation Use only 4(AND, OR, XOR, Complement) l One stage of logic circuit : Fig Content of R Content of R Content of R1 after P=1 Arithmetic 에서 1’s Complement 와 동일 Logic ORArithmetic ADD  All other Operation can be derived S0 S1 Ai Bi

Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-10  Some Applications l Logic microoperations are very useful for manipulating individual bits or a portion of a word stored in a register l Used to change bit values, delete a group of bits, or insert new bit values l Selective-set »The selective-set operation sets to 1 the bits in register A where there are corresponding 1’s in register B. It does not effect bit positions that have 0’s in B l Selective-complement »The selective-complement operation complements bits in A where there are corresponding 1’s in B. It does not effect bit positions that have 0’s in B l Selective-clear »The selective-clear operation clears to 0 the bits in A only where there are corresponding 1’s in B l Selective-mask »The mask operation is similar to the selective-clear operation except that the bits of A are cleared only where there are corresponding 0’s in B A before 1100 B(Logic Operand) 1110 A After 1010 A before 1100 B(Logic Operand) 0110 A After 1010 A before 1100 B(Logic Operand) 0010 A After 1010 A before 1100 B(Logic Operand) 0010 A After Selective-setSelective-complementSelective-clearSelective-mask

Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-11 l Insert »The insert operation inserts a new value into a group of bits »This is done by first masking the bits and then ORing them with the required value l Clear »The clear operation compares the words in A and B and produces an all 0’s result if the two numbers are equal n 4-6 Shift Microoperations  Shift Microoperations : Tab. 4-7 l Shift microoperations are used for serial transfer of data l Three types of shift microoperation : Logical, Circular, and Arithmetic  Logical Shift l A logical shift transfers 0 through the serial input l The bit transferred to the end position through the serial input is assumed to be 0 during a logical shift(Zero inserted) 1) Mask 2) OR A before A before B mask B insert A after mask A after insert Clear 0110 A 0110 B 0000 A after clear 00 =

Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-12  Circular Shift(Rotate) l The circular shift circulates the bits of the register around the two ends without loss of information  Arithmetic Shift l An arithmetic shift shifts a signed binary number to the left or right l An arithmetic shift-left multiplies a signed binary number by 2 l An arithmetic shift-right divides the number by 2 l Arithmetic shifts must leave the sign bit unchanged because the sign of the number remains the same l Shift right : l Sign reversal occur : Overflow F/F V s =1 l Shift left : LSB lost MSB LSB R n-1 R n R 1 R 0 MSB LSB 0 insert Carry out Sign bit

Computer System Architecture © Korea Univ. of Tech. & Edu. Dept. of Info. & Comm. Chap. 4 Register Transfer and Microoperations 4-13  Hardware Implementation(Shifter) : Fig n 4-7 Arithmetic Logic Shift Unit  One stage of arithmetic logic shift unit : Fig A0 A1 A2 A3 Serial input(IR) Serial input(IL) H0 H1 H2 H3 Select(S) S3 S2 S1 S0 Bi Ai Ai-1 Ai+1 Fi Ci Ci+1