SlideShare a Scribd company logo
1 of 16
CS307PC:Computer Organization
and Architecture (R18 II(I sem))
Department of computer science and engineering
(AI/ML)
Session 3
by
Asst.Prof.M.Gokilavani
VITS
11/22/2022 Department of CSE (AI/ML) 1
TEXT BOOK:
• 1. Computer System Architecture – M. Moris Mano, Third Edition,
Pearson/PHI.
REFERENCES:
• Computer Organization – Car Hamacher, Zvonks Vranesic, Safea
Zaky, Vth Edition, McGraw Hill.
• Computer Organization and Architecture – William Stallings Sixth
Edition, Pearson/PHI.
• Structured Computer Organization – Andrew S. Tanenbaum, 4th
Edition, PHI/Pearson.
11/22/2022 Department of CSE (AI/ML) 2
UNIT - I
11/22/2022 Department of CSE (AI/ML) 3
Digital Computers: Introduction, Block diagram of Digital Computer,
Definition of Computer Organization, Computer Design and Computer
Architecture.
Register Transfer Language and Micro operations: Register Transfer
language, Register Transfer, Bus and memory transfers, Arithmetic
Micro operations, logic micro operations, shift micro operations,
Arithmetic logic shift unit.
Basic Computer Organization and Design: Instruction codes,
Computer Registers Computer instructions, Timing and Control,
Instruction cycle, Memory Reference Instructions, Input – Output and
Interrupt.
Topics covered in session 3
• Register Transfer Language and Micro operations
• Register Transfer language
• Register Transfer
• Bus and memory transfers
• Arithmetic Micro operations
• logic micro operations
• shift micro operations
• Arithmetic logic shift unit
11/22/2022 Department of CSE (AI/ML) 4
Micro operations
• The operations performed on the data stored in registers are called micro
operations.
• A micro operation is an elementary operation performed on the data stored in one
or more registers.
• Computer system micro operations are of four types:
1.Register transfer micro-operations transfer binary information from one register to
another.
2.Arithmetic micro-operations perform arithmetic operations on numeric data stored
in registers.
3.Logic micro-operations perform bit manipulation operation on non-numeric data
stored in registers.
4.Shift micro-operations perform shift micro-operations performed on data.
11/22/2022 Department of CSE (AI/ML) 5
Arithmetic Micro-operation
• Arithmetic micro operations perform arithmetic operations on numeric
data stored in registers.
• The basic arithmetic micro operations are
• Addition, Addition with carry
• Subtraction, subtraction with borrow
• Increment/Decrement
• Shift.
Example:
Assume that th input data are in register R1, 𝑅2 is th symbol for 1’s
complement of R2. Adding 1 to th 1’s complement produces the 2’s
complement. Adding th contents of R1 to the 2’s complement of R2 is
equivalent to R1-R2.
11/22/2022 Department of CSE (AI/ML) 6
Arithmetic Micro-operation
11/22/2022 Department of CSE (AI/ML) 7
• Arithmetic shift are explained later in conjunction with the shift micro operations.
The arithmetic micro operation defined by the statement:
Binary Adder
• The Add micro-operation requires registers that can hold the data and the
digital components that can perform the arithmetic addition.
• A Binary Adder is a digital circuit that performs the arithmetic sum of two
binary numbers provided with any length.
• A Binary Adder is constructed using full-adder circuits connected in series,
with the output carry from one full-adder connected to the input carry of the
next full-adder.
• The augend bits (A) and the addend bits (B) are designated by subscript
numbers from right to left, with subscript '0' denoting the low-order bit.
• The carry inputs starts from C0 to C3 connected in a chain through the full-
adders. C4 is the resultant output carry generated by the last full-adder
circuit.
• The output carry from each full-adder is connected to the input carry of the
next-high-order full-adder.
11/22/2022 Department of CSE (AI/ML) 8
Binary Adder
• The following block diagram shows the interconnections of four full-adder circuits to provide a 4-bit
binary adder.
• The sum outputs (S0 to S3) generates the required arithmetic sum of augend and addend bits.
• The n data bits for the A and B inputs come from different source registers. For instance, data bits
for A input comes from source register R1 and data bits for B input comes from source register R2.
• The arithmetic sum of the data inputs of A and B can be transferred to a third register or to one of the
source registers (R1 or R2).
11/22/2022 Department of CSE (AI/ML) 9
Binary Adder - Subtractor
• The Subtraction micro-operation can be done easily by taking the 2's compliment of
addend bits and adding it to the augend bits.
• The Arithmetic micro-operations like addition and subtraction can be combined into one
common circuit by including an exclusive-OR gate with each full adder.
• The block diagram for a 4-bit adder- Subtractor circuit can be represented as:
11/22/2022 Department of CSE (AI/ML) 10
Binary Adder - Subtractor
• When the mode input (M) is at a low logic, i.e. '0', the circuit act as an adder and
when the mode input is at a high logic, i.e. '1', the circuit act as a subtractor.
• The exclusive-OR gate connected in series receives input M and one of the inputs
B.
• When M is at a low logic, we have B⊕ 0 = B. The full-adders receive the value of
B, the input carry is 0, and the circuit performs A plus B.
• When M is at a high logic, we have B⊕ 1 = B' and C0 = 1. The B inputs are
complemented, and a 1 is added through the input carry. The circuit performs the
operation A plus the 2's complement of B.
11/22/2022 Department of CSE (AI/ML) 11
Binary Incrementer
• The increment micro-operation adds one binary value to the value of binary
variables stored in a register. For instance, a 4-bit register has a binary value 0110,
when incremented by one the value becomes 0111.
11/22/2022 Department of CSE (AI/ML) 12
Binary Incrementer
• The increment micro-operation is best implemented by a 4-bit combinational
circuit Incrementer. A 4-bit combinational circuit Incrementer can be represented
by the following block diagram.
• A logic-1 is applied to one of the inputs of least significant half-adder, and the
other input is connected to the least significant bit of the number to be
incremented.
• The output carry from one half-adder is connected to one of the inputs of the next-
higher-order half-adder.
• The binary Incrementer circuit receives the four bits from A0 through A3, adds
one to it, and generates the incremented output in S0 through S3.
• The output carry C4 will be 1 only after incrementing binary 1111.
11/22/2022 Department of CSE (AI/ML) 13
Arithmetic Circuit
• Arithmetic circuits:
• Perform seven different arithmetic operations using a single composite circuit. It
uses a full adder (FA) to perform these operations. A multiplexer (MUX) is used
to provide different inputs to the circuit in order to obtain different arithmetic
operations as outputs.
• 4-bit Arithmetic circuit:
• Consider the following 4-bit Arithmetic circuit with inputs A and B. It can
perform seven different arithmetic operations by varying the inputs of the
multiplexer and the carry (C0).
11/22/2022 Department of CSE (AI/ML) 14
11/22/2022 Department of CSE (AI/ML) 15
Topics to be covered in next session 4
• Logic micro operations, Shift micro operations, Arithmetic shift
logic unit
11/22/2022 Department of CSE (AI/ML) 16
Thank you!!!

More Related Content

What's hot

Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)
Mahesh Kumar Attri
 
Digital Alarm Clock 446 project report
Digital Alarm Clock 446 project reportDigital Alarm Clock 446 project report
Digital Alarm Clock 446 project report
Akash Mhankale
 

What's hot (20)

Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)
 
Memory interleaving
Memory interleavingMemory interleaving
Memory interleaving
 
Pin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 MicroprocessorPin Description and Register Organization of 8086 Microprocessor
Pin Description and Register Organization of 8086 Microprocessor
 
Serial Communication Part-16
Serial Communication Part-16Serial Communication Part-16
Serial Communication Part-16
 
Adder
Adder Adder
Adder
 
Verilog tutorial
Verilog tutorialVerilog tutorial
Verilog tutorial
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Programmable peripheral interface 8255
Programmable peripheral interface 8255Programmable peripheral interface 8255
Programmable peripheral interface 8255
 
BCD.
BCD.BCD.
BCD.
 
Nand and nor as a universal gates
Nand and nor as a universal gatesNand and nor as a universal gates
Nand and nor as a universal gates
 
Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)Arithmetic Logic Unit (ALU)
Arithmetic Logic Unit (ALU)
 
Digital Alarm Clock 446 project report
Digital Alarm Clock 446 project reportDigital Alarm Clock 446 project report
Digital Alarm Clock 446 project report
 
Binary adder
Binary adderBinary adder
Binary adder
 
BASIC COMPUTER ORGANIZATION AND DESIGN
BASIC  COMPUTER  ORGANIZATION  AND  DESIGNBASIC  COMPUTER  ORGANIZATION  AND  DESIGN
BASIC COMPUTER ORGANIZATION AND DESIGN
 
Number System
Number SystemNumber System
Number System
 
The BCD to excess-3 converter
The BCD to excess-3 converterThe BCD to excess-3 converter
The BCD to excess-3 converter
 
Shift micro operations & 4 bit combinational circuit shifter
Shift micro operations &  4 bit combinational circuit shifterShift micro operations &  4 bit combinational circuit shifter
Shift micro operations & 4 bit combinational circuit shifter
 
8085 instruction set
8085 instruction set8085 instruction set
8085 instruction set
 
Computer arithmetic
Computer arithmeticComputer arithmetic
Computer arithmetic
 

Similar to CS304PC:Computer Organization and Architecture Session 3 micro operations.pptx

Arithmetic Micro Operations.pptx
Arithmetic Micro Operations.pptxArithmetic Micro Operations.pptx
Arithmetic Micro Operations.pptx
AshokRachapalli1
 
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptx
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptxUnit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptx
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptx
tusharkumarsinha1985
 

Similar to CS304PC:Computer Organization and Architecture Session 3 micro operations.pptx (20)

CS304PC:Computer Organization and Architecture Session 2 Registers .pptx
CS304PC:Computer Organization and Architecture Session 2 Registers .pptxCS304PC:Computer Organization and Architecture Session 2 Registers .pptx
CS304PC:Computer Organization and Architecture Session 2 Registers .pptx
 
CS304PC:Computer Organization and Architecture Session 4 Arithmetic shift log...
CS304PC:Computer Organization and Architecture Session 4 Arithmetic shift log...CS304PC:Computer Organization and Architecture Session 4 Arithmetic shift log...
CS304PC:Computer Organization and Architecture Session 4 Arithmetic shift log...
 
Chapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdfChapter 5_combinational logic (EEEg4302).pdf
Chapter 5_combinational logic (EEEg4302).pdf
 
Register transfer and microoperations
Register transfer and microoperationsRegister transfer and microoperations
Register transfer and microoperations
 
Arithmetic Microoperation.pdf
Arithmetic Microoperation.pdfArithmetic Microoperation.pdf
Arithmetic Microoperation.pdf
 
Computer organization prashant odhavani- 160920107003
Computer organization   prashant odhavani- 160920107003Computer organization   prashant odhavani- 160920107003
Computer organization prashant odhavani- 160920107003
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
DCF-Combinational circuit
DCF-Combinational circuitDCF-Combinational circuit
DCF-Combinational circuit
 
Chapter4.ppt
Chapter4.pptChapter4.ppt
Chapter4.ppt
 
Arithmetic Micro Operations.pptx
Arithmetic Micro Operations.pptxArithmetic Micro Operations.pptx
Arithmetic Micro Operations.pptx
 
Lect 1 unit 2.pdf
Lect 1 unit 2.pdfLect 1 unit 2.pdf
Lect 1 unit 2.pdf
 
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptx
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptxUnit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptx
Unit 2 DLDUnit 2 DLDUnit 2 DLDUnit 2 DLD.pptx
 
18CSC203J_COA_Unit 2 final.pptx
18CSC203J_COA_Unit 2 final.pptx18CSC203J_COA_Unit 2 final.pptx
18CSC203J_COA_Unit 2 final.pptx
 
Design and Implementation of 8 Bit Multiplier Using M.G.D.I. Technique
Design and Implementation of 8 Bit Multiplier Using M.G.D.I. TechniqueDesign and Implementation of 8 Bit Multiplier Using M.G.D.I. Technique
Design and Implementation of 8 Bit Multiplier Using M.G.D.I. Technique
 
Computer arithmetics (computer organisation & arithmetics) ppt
Computer arithmetics (computer organisation & arithmetics) pptComputer arithmetics (computer organisation & arithmetics) ppt
Computer arithmetics (computer organisation & arithmetics) ppt
 
Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)Computer Organisation and Architecture (COA)
Computer Organisation and Architecture (COA)
 
Unit 2 module-2
Unit 2 module-2Unit 2 module-2
Unit 2 module-2
 
Chapter4.ppt
Chapter4.pptChapter4.ppt
Chapter4.ppt
 
CS304PC:Computer Organization and Architecture Session 6 Instruction cycle.pptx
CS304PC:Computer Organization and Architecture  Session 6 Instruction cycle.pptxCS304PC:Computer Organization and Architecture  Session 6 Instruction cycle.pptx
CS304PC:Computer Organization and Architecture Session 6 Instruction cycle.pptx
 
C0421013019
C0421013019C0421013019
C0421013019
 

More from Asst.prof M.Gokilavani

More from Asst.prof M.Gokilavani (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
IT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdfIT8073_Information Security_UNIT I _.pdf
IT8073_Information Security_UNIT I _.pdf
 
IT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notesIT8073 _Information Security _UNIT I Full notes
IT8073 _Information Security _UNIT I Full notes
 
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdfGE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
GE3151 PSPP UNIT IV QUESTION BANK.docx.pdf
 
GE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdfGE3151 PSPP UNIT III QUESTION BANK.docx.pdf
GE3151 PSPP UNIT III QUESTION BANK.docx.pdf
 
GE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdfGE3151 UNIT II Study material .pdf
GE3151 UNIT II Study material .pdf
 
GE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdfGE3151 PSPP All unit question bank.pdf
GE3151 PSPP All unit question bank.pdf
 
GE3151_PSPP_All unit _Notes
GE3151_PSPP_All unit _NotesGE3151_PSPP_All unit _Notes
GE3151_PSPP_All unit _Notes
 
GE3151_PSPP_UNIT_5_Notes
GE3151_PSPP_UNIT_5_NotesGE3151_PSPP_UNIT_5_Notes
GE3151_PSPP_UNIT_5_Notes
 
GE3151_PSPP_UNIT_4_Notes
GE3151_PSPP_UNIT_4_NotesGE3151_PSPP_UNIT_4_Notes
GE3151_PSPP_UNIT_4_Notes
 
GE3151_PSPP_UNIT_3_Notes
GE3151_PSPP_UNIT_3_NotesGE3151_PSPP_UNIT_3_Notes
GE3151_PSPP_UNIT_3_Notes
 
GE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_NotesGE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_Notes
 
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdfAI3391 Artificial intelligence Unit IV Notes _ merged.pdf
AI3391 Artificial intelligence Unit IV Notes _ merged.pdf
 
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdfAI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
AI3391 Artificial intelligence Session 29 Forward and backward chaining.pdf
 
AI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptxAI3391 Artificial intelligence Session 28 Resolution.pptx
AI3391 Artificial intelligence Session 28 Resolution.pptx
 
AI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptxAI3391 Artificial intelligence session 27 inference and unification.pptx
AI3391 Artificial intelligence session 27 inference and unification.pptx
 
AI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptxAI3391 Artificial Intelligence Session 26 First order logic.pptx
AI3391 Artificial Intelligence Session 26 First order logic.pptx
 

Recently uploaded

Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 

Recently uploaded (20)

💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
💚Trustworthy Call Girls Pune Call Girls Service Just Call 🍑👄6378878445 🍑👄 Top...
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Introduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdfIntroduction to Data Visualization,Matplotlib.pdf
Introduction to Data Visualization,Matplotlib.pdf
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
Unit 4_Part 1 CSE2001 Exception Handling and Function Template and Class Temp...
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 

CS304PC:Computer Organization and Architecture Session 3 micro operations.pptx

  • 1. CS307PC:Computer Organization and Architecture (R18 II(I sem)) Department of computer science and engineering (AI/ML) Session 3 by Asst.Prof.M.Gokilavani VITS 11/22/2022 Department of CSE (AI/ML) 1
  • 2. TEXT BOOK: • 1. Computer System Architecture – M. Moris Mano, Third Edition, Pearson/PHI. REFERENCES: • Computer Organization – Car Hamacher, Zvonks Vranesic, Safea Zaky, Vth Edition, McGraw Hill. • Computer Organization and Architecture – William Stallings Sixth Edition, Pearson/PHI. • Structured Computer Organization – Andrew S. Tanenbaum, 4th Edition, PHI/Pearson. 11/22/2022 Department of CSE (AI/ML) 2
  • 3. UNIT - I 11/22/2022 Department of CSE (AI/ML) 3 Digital Computers: Introduction, Block diagram of Digital Computer, Definition of Computer Organization, Computer Design and Computer Architecture. Register Transfer Language and Micro operations: Register Transfer language, Register Transfer, Bus and memory transfers, Arithmetic Micro operations, logic micro operations, shift micro operations, Arithmetic logic shift unit. Basic Computer Organization and Design: Instruction codes, Computer Registers Computer instructions, Timing and Control, Instruction cycle, Memory Reference Instructions, Input – Output and Interrupt.
  • 4. Topics covered in session 3 • Register Transfer Language and Micro operations • Register Transfer language • Register Transfer • Bus and memory transfers • Arithmetic Micro operations • logic micro operations • shift micro operations • Arithmetic logic shift unit 11/22/2022 Department of CSE (AI/ML) 4
  • 5. Micro operations • The operations performed on the data stored in registers are called micro operations. • A micro operation is an elementary operation performed on the data stored in one or more registers. • Computer system micro operations are of four types: 1.Register transfer micro-operations transfer binary information from one register to another. 2.Arithmetic micro-operations perform arithmetic operations on numeric data stored in registers. 3.Logic micro-operations perform bit manipulation operation on non-numeric data stored in registers. 4.Shift micro-operations perform shift micro-operations performed on data. 11/22/2022 Department of CSE (AI/ML) 5
  • 6. Arithmetic Micro-operation • Arithmetic micro operations perform arithmetic operations on numeric data stored in registers. • The basic arithmetic micro operations are • Addition, Addition with carry • Subtraction, subtraction with borrow • Increment/Decrement • Shift. Example: Assume that th input data are in register R1, 𝑅2 is th symbol for 1’s complement of R2. Adding 1 to th 1’s complement produces the 2’s complement. Adding th contents of R1 to the 2’s complement of R2 is equivalent to R1-R2. 11/22/2022 Department of CSE (AI/ML) 6
  • 7. Arithmetic Micro-operation 11/22/2022 Department of CSE (AI/ML) 7 • Arithmetic shift are explained later in conjunction with the shift micro operations. The arithmetic micro operation defined by the statement:
  • 8. Binary Adder • The Add micro-operation requires registers that can hold the data and the digital components that can perform the arithmetic addition. • A Binary Adder is a digital circuit that performs the arithmetic sum of two binary numbers provided with any length. • A Binary Adder is constructed using full-adder circuits connected in series, with the output carry from one full-adder connected to the input carry of the next full-adder. • The augend bits (A) and the addend bits (B) are designated by subscript numbers from right to left, with subscript '0' denoting the low-order bit. • The carry inputs starts from C0 to C3 connected in a chain through the full- adders. C4 is the resultant output carry generated by the last full-adder circuit. • The output carry from each full-adder is connected to the input carry of the next-high-order full-adder. 11/22/2022 Department of CSE (AI/ML) 8
  • 9. Binary Adder • The following block diagram shows the interconnections of four full-adder circuits to provide a 4-bit binary adder. • The sum outputs (S0 to S3) generates the required arithmetic sum of augend and addend bits. • The n data bits for the A and B inputs come from different source registers. For instance, data bits for A input comes from source register R1 and data bits for B input comes from source register R2. • The arithmetic sum of the data inputs of A and B can be transferred to a third register or to one of the source registers (R1 or R2). 11/22/2022 Department of CSE (AI/ML) 9
  • 10. Binary Adder - Subtractor • The Subtraction micro-operation can be done easily by taking the 2's compliment of addend bits and adding it to the augend bits. • The Arithmetic micro-operations like addition and subtraction can be combined into one common circuit by including an exclusive-OR gate with each full adder. • The block diagram for a 4-bit adder- Subtractor circuit can be represented as: 11/22/2022 Department of CSE (AI/ML) 10
  • 11. Binary Adder - Subtractor • When the mode input (M) is at a low logic, i.e. '0', the circuit act as an adder and when the mode input is at a high logic, i.e. '1', the circuit act as a subtractor. • The exclusive-OR gate connected in series receives input M and one of the inputs B. • When M is at a low logic, we have B⊕ 0 = B. The full-adders receive the value of B, the input carry is 0, and the circuit performs A plus B. • When M is at a high logic, we have B⊕ 1 = B' and C0 = 1. The B inputs are complemented, and a 1 is added through the input carry. The circuit performs the operation A plus the 2's complement of B. 11/22/2022 Department of CSE (AI/ML) 11
  • 12. Binary Incrementer • The increment micro-operation adds one binary value to the value of binary variables stored in a register. For instance, a 4-bit register has a binary value 0110, when incremented by one the value becomes 0111. 11/22/2022 Department of CSE (AI/ML) 12
  • 13. Binary Incrementer • The increment micro-operation is best implemented by a 4-bit combinational circuit Incrementer. A 4-bit combinational circuit Incrementer can be represented by the following block diagram. • A logic-1 is applied to one of the inputs of least significant half-adder, and the other input is connected to the least significant bit of the number to be incremented. • The output carry from one half-adder is connected to one of the inputs of the next- higher-order half-adder. • The binary Incrementer circuit receives the four bits from A0 through A3, adds one to it, and generates the incremented output in S0 through S3. • The output carry C4 will be 1 only after incrementing binary 1111. 11/22/2022 Department of CSE (AI/ML) 13
  • 14. Arithmetic Circuit • Arithmetic circuits: • Perform seven different arithmetic operations using a single composite circuit. It uses a full adder (FA) to perform these operations. A multiplexer (MUX) is used to provide different inputs to the circuit in order to obtain different arithmetic operations as outputs. • 4-bit Arithmetic circuit: • Consider the following 4-bit Arithmetic circuit with inputs A and B. It can perform seven different arithmetic operations by varying the inputs of the multiplexer and the carry (C0). 11/22/2022 Department of CSE (AI/ML) 14
  • 15. 11/22/2022 Department of CSE (AI/ML) 15
  • 16. Topics to be covered in next session 4 • Logic micro operations, Shift micro operations, Arithmetic shift logic unit 11/22/2022 Department of CSE (AI/ML) 16 Thank you!!!