SlideShare a Scribd company logo
1 of 18
A Presentation On topic
‘Arithmetic Micro-operations’
Submitted By:-
Nitesh Bichwani
02224302013
B.C.A 3rd semester
Evening shift
Submitted To:-
Ms. Iti Batra
(Assistant professor)
Ms. Aditi Bhasin
(Assistant professor)
Submitted in the partial fulfilment for the award of degree of
Bachelor’s of Computer Application
SIRIFORT COLLEGE OF COMPUTER TECHNOLOGY AND MANAGEMENT
Plot no-8, Institutional area, Sector 25 Rohini, Delhi-110085
Definitions:-
A micro-operation is an elementary operation performed
with the data stored in registers. Arithmetic Micro-
operations perform arithmetic operation on numeric data
stored in registers.
The basic arithmetic micro operations are:-
 Addition
 Subtraction
 Increment
 Decrement
 The arithmetic add micro operation is given by
the statement.
 R3  R1+ R2
 It states that the contents of register R1 are
added with the contents of register R2 and the
result will be transferred to register R3.
C0C1C2C3
C4
S0S1S2S3
A0B0A1B1A2A3 B2B3
FAFA FA FA
4 - bit Binary Adder
Working
Add Micro operation can be implemented using Full adders.
Each full adder takes 2 inputs from 2 numbers and a third
input as a previous carry.
All the carries are connected in serial fashion to the next full
adder.
Number of full adders depends upon number of bits of data.
When A0 B0 are added and initially C0 is 0 then as a result
S0 gives the sum of A0 and B0 and so on.
 The arithmetic addition / subtract micro operation
is given by the statements,
 R3  R1 + R2+ 1
 R3  R1 + R2
 The addition and subtraction operations are
performed in one common circuit by including an
exclusive-OR gate with each full adder.
C0
C1C2C3
C4
S0S1S2S3
A0B0A1B1A2A3 B2B3
FAFA FA FA
M
4 – bit Adder - Subtractor
Working
The addition and subtraction operations can be
combined into one common circuit by including an XOR
gate with each full-adder.
With the help of a mode bit we can add or subtract.
• M = 0
When M is 0 then Cin will be 0 and 0 B0 gives B0
then S0 will be the sum of A0 and B0. hence by M =
0 will perform addition.
• M = 1
When M is 1 then Cin will be 1 and 1 B0 gives B0
then A0 + B0 + 1 = A0 – B0 hence M = 1 will
perform subtraction.
• The increment micro operation is given by the
statement,
• R1  R1 + 1
• The contents of register R1 are incremented
by one.
C0C1C2
C3 S0S1
S2S3
A0
A1
A2A3
HAHA HA HA
4 - bit Binary Incrementer
1
Working
The increment Micro operation adds 1 to a number in a
register.
This Micro operation easily carried out using half adders
as described in previous slide.
Each half adder needs 1 input and 1 carry. In the very
first half adder the carry is 1.
As this is the increment micro operation hence the carry
is forward to the next half adder if generated and as a
result sum bits S3 , S2 , S1 , S0 are generated along with a
possible carry out.
The basic arithmetic micro operations (addition,
subtraction, increment and decrement) can be performed
in one composite arithmetic circuit.
Select Input Output
Micro operation
S1 S0 Cin Y D = A + Y + Cin
0 0 0 B D = A + B Add
0 0 1 B D = A + B + 1 Add with Carry
0 1 0 B D = A + B Subtract with Borrow
0 1 1 B D = A + B + 1 Subtract
1 0 0 0 D = A Transfer A
1 0 1 0 D = A + 1 Increment A
1 1 0 1 D = A – 1 Decrement A
1 1 1 1 D = A Transfer A
FA
4 1
MUX
FA
FA
FA
S1
S0
0
1
2
3
S1
S0
0
1
2
3
S1
S0
0
1
2
3
S1
S0
0
1
2
3
S1
S0
Cin
A0
A1
A2
A3
4 1
MUX
4 1
MUX
4 1
MUX
B0
B1
B2
B3
0 1
Cout
D3
D0
D1
D2
X3
X0
X1
X2
Y3
Y0
Y1
Y2
C0
C1
C1
C2
C2
C3
C3
C4
Working
This arithmetic circuit can perform 8 operations among
them some are :-
Addition:-
When S1 S0 = 0 0, the value of B is applied to the Y inputs
of the adder. If Cin = 0, the output D = A + B. if Cin =1,
output D = A + B + 1. Both cases perform the add
microoperation with or without adding the input carry.
Subtraction:-
When S1 S0 = 0 1, the value of B is applied to the Y inputs
of the adder. If Cin = 1, then D = A + B + 1. this produces A
plus the 2’s complement of B, which is equivalent to a
subtraction of A – B. when Cin = 0, then D = A + B. this is
equivalent to a subtract with borrow, that is , A – B – 1.
Increment:-
When S1 S0 = 1 0, the inputs from B are neglected , and
instead, all 0’s are inserted into the y inputs. The output
becomes D = A + 0 + Cin. This gives D = A when Cin = 0
and D = A + 1 when Cin = 1. in the first case we have a
direct transfer from the input A to output D. in the second
case, the value of A is incremented by 1.
Decrement:-
When S1 S0 = 1 1, all 1’s are inserted into the Y inputs of
the adder to produce the decrement operation D = A – 1
when Cin = 0. this is because a number with all 1’s is equal
to the 2’s complement of 1 (the 2’s complement of binary
0001 is 1111). Adding number A to the 2’complement of 1
produces F = A + 2’s complement of 1 = A – 1 when Cin =
1, then D = A – 1 + 1 = A, which causes a direct transfer
from input A to output D.
NOTE :-
Microoperation D = A is generated twice , so there are only
7 distinct Microoperations in the arithmetic circuit.
Thank You
Presented by:-
Nitesh Bichwani

More Related Content

What's hot

Basic ops concept of comp
Basic ops  concept of compBasic ops  concept of comp
Basic ops concept of compgaurav jain
 
Chapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSIChapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSIEr. Nawaraj Bhandari
 
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)IIUM
 
Synchronous counters
Synchronous countersSynchronous counters
Synchronous countersLee Diaz
 
Addition and subtraction with signed magnitude data (mano
Addition and subtraction with signed magnitude data (manoAddition and subtraction with signed magnitude data (mano
Addition and subtraction with signed magnitude data (manocs19club
 
bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)Siddhi Viradiya
 
Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Piyush Rochwani
 
Race around and master slave flip flop
Race around and master slave flip flopRace around and master slave flip flop
Race around and master slave flip flopShubham Singh
 
Parallel Adder and Subtractor
Parallel Adder and SubtractorParallel Adder and Subtractor
Parallel Adder and SubtractorSmit Shah
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuitsSARITHA REDDY
 
Register transfer language & its micro operations
Register transfer language & its micro operationsRegister transfer language & its micro operations
Register transfer language & its micro operationsLakshya Sharma
 
carry look ahead adder
carry look ahead addercarry look ahead adder
carry look ahead adderASHISH MANI
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructionsihsanjamil
 
Unit 3-pipelining & vector processing
Unit 3-pipelining & vector processingUnit 3-pipelining & vector processing
Unit 3-pipelining & vector processingvishal choudhary
 
Stack organization
Stack organizationStack organization
Stack organizationchauhankapil
 
Asynchronous data transfer
Asynchronous  data  transferAsynchronous  data  transfer
Asynchronous data transferNancyBeaulah_R
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits DrSonali Vyas
 
Half adder and full adder
Half adder and full adderHalf adder and full adder
Half adder and full adderSanjuktaBanik
 
Multiplication algorithm
Multiplication algorithmMultiplication algorithm
Multiplication algorithmGaurav Subham
 

What's hot (20)

Basic ops concept of comp
Basic ops  concept of compBasic ops  concept of comp
Basic ops concept of comp
 
Chapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSIChapter 5: Cominational Logic with MSI and LSI
Chapter 5: Cominational Logic with MSI and LSI
 
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)Csc1401   lecture03 - computer arithmetic - arithmetic and logic unit (alu)
Csc1401 lecture03 - computer arithmetic - arithmetic and logic unit (alu)
 
Synchronous counters
Synchronous countersSynchronous counters
Synchronous counters
 
Addition and subtraction with signed magnitude data (mano
Addition and subtraction with signed magnitude data (manoAddition and subtraction with signed magnitude data (mano
Addition and subtraction with signed magnitude data (mano
 
bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)bus and memory tranfer (computer organaization)
bus and memory tranfer (computer organaization)
 
Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)Booth’s algorithm.(a014& a015)
Booth’s algorithm.(a014& a015)
 
Race around and master slave flip flop
Race around and master slave flip flopRace around and master slave flip flop
Race around and master slave flip flop
 
Decimal adder
Decimal adderDecimal adder
Decimal adder
 
Parallel Adder and Subtractor
Parallel Adder and SubtractorParallel Adder and Subtractor
Parallel Adder and Subtractor
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Register transfer language & its micro operations
Register transfer language & its micro operationsRegister transfer language & its micro operations
Register transfer language & its micro operations
 
carry look ahead adder
carry look ahead addercarry look ahead adder
carry look ahead adder
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructions
 
Unit 3-pipelining & vector processing
Unit 3-pipelining & vector processingUnit 3-pipelining & vector processing
Unit 3-pipelining & vector processing
 
Stack organization
Stack organizationStack organization
Stack organization
 
Asynchronous data transfer
Asynchronous  data  transferAsynchronous  data  transfer
Asynchronous data transfer
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
Half adder and full adder
Half adder and full adderHalf adder and full adder
Half adder and full adder
 
Multiplication algorithm
Multiplication algorithmMultiplication algorithm
Multiplication algorithm
 

Similar to Arithmetic micro operations

Arithmetic Microoperation.pdf
Arithmetic Microoperation.pdfArithmetic Microoperation.pdf
Arithmetic Microoperation.pdfHarshitJ4
 
DPCO-Unit 2-Combinational Circuit.pdf
DPCO-Unit 2-Combinational Circuit.pdfDPCO-Unit 2-Combinational Circuit.pdf
DPCO-Unit 2-Combinational Circuit.pdfssuser08e250
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual Shankar Gangaju
 
Chapter 04 - ALU Operation.ppt
Chapter 04 - ALU Operation.pptChapter 04 - ALU Operation.ppt
Chapter 04 - ALU Operation.pptMonirJihad1
 
COMPUTER ORGANIZATION NOTES Unit 6
COMPUTER ORGANIZATION NOTES Unit 6COMPUTER ORGANIZATION NOTES Unit 6
COMPUTER ORGANIZATION NOTES Unit 6Dr.MAYA NAYAK
 
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsChapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsSSE_AndyLi
 
105_2_digitalSystem_Chap_3_part_3.ppt
105_2_digitalSystem_Chap_3_part_3.ppt105_2_digitalSystem_Chap_3_part_3.ppt
105_2_digitalSystem_Chap_3_part_3.pptJeanie Delos Arcos
 
LCDF3_Chap_10_P1.ppt
LCDF3_Chap_10_P1.pptLCDF3_Chap_10_P1.ppt
LCDF3_Chap_10_P1.pptbrainxMagic
 
Binary Adder Design(COA).ppt
Binary Adder Design(COA).pptBinary Adder Design(COA).ppt
Binary Adder Design(COA).pptRohitPaul71
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).pptThanmayiKumar
 
Mba admission in india
Mba admission in indiaMba admission in india
Mba admission in indiaEdhole.com
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptxamudhak10
 
Comp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptComp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptskatiarrahaman
 

Similar to Arithmetic micro operations (20)

Arithmetic Microoperation.pdf
Arithmetic Microoperation.pdfArithmetic Microoperation.pdf
Arithmetic Microoperation.pdf
 
CA UNIT II.pptx
CA UNIT II.pptxCA UNIT II.pptx
CA UNIT II.pptx
 
DPCO-Unit 2-Combinational Circuit.pdf
DPCO-Unit 2-Combinational Circuit.pdfDPCO-Unit 2-Combinational Circuit.pdf
DPCO-Unit 2-Combinational Circuit.pdf
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
 
Chapter 04 - ALU Operation.ppt
Chapter 04 - ALU Operation.pptChapter 04 - ALU Operation.ppt
Chapter 04 - ALU Operation.ppt
 
COMPUTER ORGANIZATION NOTES Unit 6
COMPUTER ORGANIZATION NOTES Unit 6COMPUTER ORGANIZATION NOTES Unit 6
COMPUTER ORGANIZATION NOTES Unit 6
 
Chapter10.ppt
Chapter10.pptChapter10.ppt
Chapter10.ppt
 
Chapter10.ppt
Chapter10.pptChapter10.ppt
Chapter10.ppt
 
Chapter10.ppt
Chapter10.pptChapter10.ppt
Chapter10.ppt
 
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic CircuitsChapter 07 Digital Alrithmetic and Arithmetic Circuits
Chapter 07 Digital Alrithmetic and Arithmetic Circuits
 
105_2_digitalSystem_Chap_3_part_3.ppt
105_2_digitalSystem_Chap_3_part_3.ppt105_2_digitalSystem_Chap_3_part_3.ppt
105_2_digitalSystem_Chap_3_part_3.ppt
 
LCDF3_Chap_10_P1.ppt
LCDF3_Chap_10_P1.pptLCDF3_Chap_10_P1.ppt
LCDF3_Chap_10_P1.ppt
 
Binary Adder Design(COA).ppt
Binary Adder Design(COA).pptBinary Adder Design(COA).ppt
Binary Adder Design(COA).ppt
 
combinational-circuit (1).ppt
combinational-circuit (1).pptcombinational-circuit (1).ppt
combinational-circuit (1).ppt
 
Unit 4 dica
Unit 4 dicaUnit 4 dica
Unit 4 dica
 
Mba admission in india
Mba admission in indiaMba admission in india
Mba admission in india
 
Lec20
Lec20Lec20
Lec20
 
UNIT - II.pptx
UNIT - II.pptxUNIT - II.pptx
UNIT - II.pptx
 
Comp Arithmetic Basic.ppt
Comp Arithmetic Basic.pptComp Arithmetic Basic.ppt
Comp Arithmetic Basic.ppt
 

Recently uploaded

CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...henrik385807
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfhenrik385807
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Krijn Poppe
 
George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024eCommerce Institute
 
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...NETWAYS
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...NETWAYS
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxmohammadalnahdi22
 
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Hasting Chen
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024eCommerce Institute
 
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@vikas rana
 
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptxGenesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptxFamilyWorshipCenterD
 
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝soniya singh
 
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...Kayode Fayemi
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...NETWAYS
 
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Pooja Nehwal
 
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Delhi Call girls
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...Sheetaleventcompany
 
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )Pooja Nehwal
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfhenrik385807
 
Philippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.pptPhilippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.pptssuser319dad
 

Recently uploaded (20)

CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
CTAC 2024 Valencia - Sven Zoelle - Most Crucial Invest to Digitalisation_slid...
 
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdfOpen Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
Open Source Strategy in Logistics 2015_Henrik Hankedvz-d-nl-log-conference.pdf
 
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
Presentation for the Strategic Dialogue on the Future of Agriculture, Brussel...
 
George Lever - eCommerce Day Chile 2024
George Lever -  eCommerce Day Chile 2024George Lever -  eCommerce Day Chile 2024
George Lever - eCommerce Day Chile 2024
 
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
Open Source Camp Kubernetes 2024 | Running WebAssembly on Kubernetes by Alex ...
 
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
OSCamp Kubernetes 2024 | A Tester's Guide to CI_CD as an Automated Quality Co...
 
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptxMohammad_Alnahdi_Oral_Presentation_Assignment.pptx
Mohammad_Alnahdi_Oral_Presentation_Assignment.pptx
 
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
Re-membering the Bard: Revisiting The Compleat Wrks of Wllm Shkspr (Abridged)...
 
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
Andrés Ramírez Gossler, Facundo Schinnea - eCommerce Day Chile 2024
 
call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@call girls in delhi malviya nagar @9811711561@
call girls in delhi malviya nagar @9811711561@
 
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptxGenesis part 2 Isaiah Scudder 04-24-2024.pptx
Genesis part 2 Isaiah Scudder 04-24-2024.pptx
 
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
Call Girls in Sarojini Nagar Market Delhi 💯 Call Us 🔝8264348440🔝
 
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
Governance and Nation-Building in Nigeria: Some Reflections on Options for Po...
 
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
OSCamp Kubernetes 2024 | Zero-Touch OS-Infrastruktur für Container und Kubern...
 
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
Navi Mumbai Call Girls Service Pooja 9892124323 Real Russian Girls Looking Mo...
 
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
Night 7k Call Girls Noida Sector 128 Call Me: 8448380779
 
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
No Advance 8868886958 Chandigarh Call Girls , Indian Call Girls For Full Nigh...
 
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
WhatsApp 📞 9892124323 ✅Call Girls In Juhu ( Mumbai )
 
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdfCTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
CTAC 2024 Valencia - Henrik Hanke - Reduce to the max - slideshare.pdf
 
Philippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.pptPhilippine History cavite Mutiny Report.ppt
Philippine History cavite Mutiny Report.ppt
 

Arithmetic micro operations

  • 1. A Presentation On topic ‘Arithmetic Micro-operations’ Submitted By:- Nitesh Bichwani 02224302013 B.C.A 3rd semester Evening shift Submitted To:- Ms. Iti Batra (Assistant professor) Ms. Aditi Bhasin (Assistant professor) Submitted in the partial fulfilment for the award of degree of Bachelor’s of Computer Application SIRIFORT COLLEGE OF COMPUTER TECHNOLOGY AND MANAGEMENT Plot no-8, Institutional area, Sector 25 Rohini, Delhi-110085
  • 2. Definitions:- A micro-operation is an elementary operation performed with the data stored in registers. Arithmetic Micro- operations perform arithmetic operation on numeric data stored in registers. The basic arithmetic micro operations are:-  Addition  Subtraction  Increment  Decrement
  • 3.  The arithmetic add micro operation is given by the statement.  R3  R1+ R2  It states that the contents of register R1 are added with the contents of register R2 and the result will be transferred to register R3.
  • 5. Working Add Micro operation can be implemented using Full adders. Each full adder takes 2 inputs from 2 numbers and a third input as a previous carry. All the carries are connected in serial fashion to the next full adder. Number of full adders depends upon number of bits of data. When A0 B0 are added and initially C0 is 0 then as a result S0 gives the sum of A0 and B0 and so on.
  • 6.  The arithmetic addition / subtract micro operation is given by the statements,  R3  R1 + R2+ 1  R3  R1 + R2  The addition and subtraction operations are performed in one common circuit by including an exclusive-OR gate with each full adder.
  • 7. C0 C1C2C3 C4 S0S1S2S3 A0B0A1B1A2A3 B2B3 FAFA FA FA M 4 – bit Adder - Subtractor
  • 8. Working The addition and subtraction operations can be combined into one common circuit by including an XOR gate with each full-adder. With the help of a mode bit we can add or subtract. • M = 0 When M is 0 then Cin will be 0 and 0 B0 gives B0 then S0 will be the sum of A0 and B0. hence by M = 0 will perform addition. • M = 1 When M is 1 then Cin will be 1 and 1 B0 gives B0 then A0 + B0 + 1 = A0 – B0 hence M = 1 will perform subtraction.
  • 9. • The increment micro operation is given by the statement, • R1  R1 + 1 • The contents of register R1 are incremented by one.
  • 10. C0C1C2 C3 S0S1 S2S3 A0 A1 A2A3 HAHA HA HA 4 - bit Binary Incrementer 1
  • 11. Working The increment Micro operation adds 1 to a number in a register. This Micro operation easily carried out using half adders as described in previous slide. Each half adder needs 1 input and 1 carry. In the very first half adder the carry is 1. As this is the increment micro operation hence the carry is forward to the next half adder if generated and as a result sum bits S3 , S2 , S1 , S0 are generated along with a possible carry out.
  • 12. The basic arithmetic micro operations (addition, subtraction, increment and decrement) can be performed in one composite arithmetic circuit. Select Input Output Micro operation S1 S0 Cin Y D = A + Y + Cin 0 0 0 B D = A + B Add 0 0 1 B D = A + B + 1 Add with Carry 0 1 0 B D = A + B Subtract with Borrow 0 1 1 B D = A + B + 1 Subtract 1 0 0 0 D = A Transfer A 1 0 1 0 D = A + 1 Increment A 1 1 0 1 D = A – 1 Decrement A 1 1 1 1 D = A Transfer A
  • 13. FA 4 1 MUX FA FA FA S1 S0 0 1 2 3 S1 S0 0 1 2 3 S1 S0 0 1 2 3 S1 S0 0 1 2 3 S1 S0 Cin A0 A1 A2 A3 4 1 MUX 4 1 MUX 4 1 MUX B0 B1 B2 B3 0 1 Cout D3 D0 D1 D2 X3 X0 X1 X2 Y3 Y0 Y1 Y2 C0 C1 C1 C2 C2 C3 C3 C4
  • 14. Working This arithmetic circuit can perform 8 operations among them some are :- Addition:- When S1 S0 = 0 0, the value of B is applied to the Y inputs of the adder. If Cin = 0, the output D = A + B. if Cin =1, output D = A + B + 1. Both cases perform the add microoperation with or without adding the input carry.
  • 15. Subtraction:- When S1 S0 = 0 1, the value of B is applied to the Y inputs of the adder. If Cin = 1, then D = A + B + 1. this produces A plus the 2’s complement of B, which is equivalent to a subtraction of A – B. when Cin = 0, then D = A + B. this is equivalent to a subtract with borrow, that is , A – B – 1.
  • 16. Increment:- When S1 S0 = 1 0, the inputs from B are neglected , and instead, all 0’s are inserted into the y inputs. The output becomes D = A + 0 + Cin. This gives D = A when Cin = 0 and D = A + 1 when Cin = 1. in the first case we have a direct transfer from the input A to output D. in the second case, the value of A is incremented by 1.
  • 17. Decrement:- When S1 S0 = 1 1, all 1’s are inserted into the Y inputs of the adder to produce the decrement operation D = A – 1 when Cin = 0. this is because a number with all 1’s is equal to the 2’s complement of 1 (the 2’s complement of binary 0001 is 1111). Adding number A to the 2’complement of 1 produces F = A + 2’s complement of 1 = A – 1 when Cin = 1, then D = A – 1 + 1 = A, which causes a direct transfer from input A to output D. NOTE :- Microoperation D = A is generated twice , so there are only 7 distinct Microoperations in the arithmetic circuit.