SlideShare a Scribd company logo
1 of 19
Logic Microoperations
Logic Microoperations
• Logic microoperations specify binary operations
for strings of bits stored in registers.
• These operations consider each bit of the
register separately and treat them as binary
variables.
• For example, the exclusive-OR microoperation
with the contents of two registers RI and R2 is
symbolized by the statement
• The exclusive-OR microoperation symbolizes
the logic computation
Special symbols
• For logic microoperations some special symbols
are adopted.
• The reason for adopting the special symbols is
to be able to distinguish the symbols used in
arithmetic microoperations.
Four basic microoperations
OR Microoperation
• Symbol: 
• Gate:
• Example: 100110  010110 = 110110
AND Microoperation
• Symbol: 
• Gate:
• Example: 100110  010110 = 000110
Four basic microoperations
Complement (NOT) Microoperation
• Symbol:

• Gate:
• Example: 1010110 = 0101001
Four basic microoperations
XOR (Exclusive-OR) Microoperation
• Symbol: 
• Gate:
• Example: 100110  010110 = 110000
Four basic microoperations
• The + between R2 and R3 specifies an add
microoperation.
• The OR microoperation is designated by the symbol
V between registers R5
• and R6.
Four basic microoperations
List of Logic Microoperations
• There are 16 different logic operations that can be
performed with two binary variables.
• The Boolean functions
listed in the first column
represents a
relationship between
two binary variables x
and y.
• The logic micro-
operations listed in the
second column
represent a relationship
between the binary
content of two registers
A and B.
List of Logic Microoperations
• The 16 different logic operations can be
determined from all possible truth tables
obtained with two binary variables.
• Each of the 16 columns F0 through F15
represents a truth table of one possible Boolean
function for the two variables x and y.
List of Logic Microoperations
• Most computers use
only four:- AND, OR,
XOR, and complement
operations to derive 16
logic microoperations.
Logic Circuit
• It consists of four gates and a multiplexer. Each of the
four logic operations is generated through a gate that
performs the required logic.
• The two selection inputs S1 and S0 choose one of the
data inputs of the multiplexer and direct its value to the
output.
Some Applications
• Logic micro-operations are very useful for
manipulating individual bits or a portion of a
word stored in a register.
• They can be used to change bit values, delete a
group of bits or insert new bits values into a
register.
Selective-set operation
• The selective-set operation sets to 1 the bits in
register A where there are corresponding l's in
register B. It does not affect bit positions that
have 0's in B.
• The OR microoperation can be used to
selectively set bits of a register.
Selective-complement operation
• The selective-complement operation
complements bits in A where there are
corresponding 1's in B. It does not affect bit
positions that have 0's in B. For example:
• The exclusive-OR microoperation can be used
to selectively complement bits of a register.
Selective-clear operation
• The selective-clear operation clears to 0 the bits
in A only where there are corresponding l's in B.
For example:
• The corresponding logic microoperation is
Mask operation
• The mask operation is similar to the selective-
clear operation except that the bits of A are
cleared only where there are corresponding O's
in B. The mask operation is an AND micro
operation as seen from the following numerical
example:
Insert operation
• 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.
• For example, suppose that an A register
contains eight bits, 0110 1010. To replace the
four leftmost bits by the value 1001 we first mask
the four unwanted bits:
Clear operation
• The clear operation compares the words in A
and B and produces an all 0's result if the two
numbers are equal.
• This operation is achieved by an exclusive-OR
microoperation as shown by the following
example

More Related Content

Similar to 12 Logic Microoperations.pptertryrtytrgrtgtrgtrgtrgtr

arithmeticmicrooperations-180130061637.pptx
arithmeticmicrooperations-180130061637.pptxarithmeticmicrooperations-180130061637.pptx
arithmeticmicrooperations-180130061637.pptx
AshokRachapalli1
 

Similar to 12 Logic Microoperations.pptertryrtytrgrtgtrgtrgtrgtr (20)

Microoperations
MicrooperationsMicrooperations
Microoperations
 
Co ppt
Co pptCo ppt
Co ppt
 
arithmeticmicrooperations-180130061637.pptx
arithmeticmicrooperations-180130061637.pptxarithmeticmicrooperations-180130061637.pptx
arithmeticmicrooperations-180130061637.pptx
 
Arithmetic micro operations
Arithmetic micro operationsArithmetic micro operations
Arithmetic micro operations
 
Register transfer language & its micro operations
Register transfer language & its micro operationsRegister transfer language & its micro operations
Register transfer language & its micro operations
 
UNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptxUNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptx
 
Cse lecture-4.2-c bit wise operators and expression
Cse lecture-4.2-c bit wise operators and expressionCse lecture-4.2-c bit wise operators and expression
Cse lecture-4.2-c bit wise operators and expression
 
logic gates functions.pptx
logic gates functions.pptxlogic gates functions.pptx
logic gates functions.pptx
 
COA (Unit_1.pptx)
COA (Unit_1.pptx)COA (Unit_1.pptx)
COA (Unit_1.pptx)
 
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational CircuitsCOMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
COMPUTER ORGANIZATION - Logic gates, Boolean Algebra, Combinational Circuits
 
Logic Gates.pptx
Logic Gates.pptxLogic Gates.pptx
Logic Gates.pptx
 
B.sc cs-ii-u-1.4 digital logic circuits, digital component
B.sc cs-ii-u-1.4 digital logic circuits, digital componentB.sc cs-ii-u-1.4 digital logic circuits, digital component
B.sc cs-ii-u-1.4 digital logic circuits, digital component
 
Dpsd lecture-notes
Dpsd lecture-notesDpsd lecture-notes
Dpsd lecture-notes
 
Uc 2(vii)
Uc 2(vii)Uc 2(vii)
Uc 2(vii)
 
Bca 2nd sem-u-1.4 digital logic circuits, digital component
Bca 2nd sem-u-1.4 digital logic circuits, digital componentBca 2nd sem-u-1.4 digital logic circuits, digital component
Bca 2nd sem-u-1.4 digital logic circuits, digital component
 
Boolean Algebra part 2.ppt
Boolean Algebra part 2.pptBoolean Algebra part 2.ppt
Boolean Algebra part 2.ppt
 
Computer organization prashant odhavani- 160920107003
Computer organization   prashant odhavani- 160920107003Computer organization   prashant odhavani- 160920107003
Computer organization prashant odhavani- 160920107003
 
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptx
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptxCS304PC:Computer Organization and Architecture Session 3 micro operations.pptx
CS304PC:Computer Organization and Architecture Session 3 micro operations.pptx
 
Chapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 InstructionsChapter 6 - Introduction to 8085 Instructions
Chapter 6 - Introduction to 8085 Instructions
 
5th unit Microprocessor 8085
5th unit Microprocessor 80855th unit Microprocessor 8085
5th unit Microprocessor 8085
 

Recently uploaded

Obat Aborsi Surabaya 0851\7696\3835 Jual Obat Cytotec Di Surabaya
Obat Aborsi Surabaya 0851\7696\3835 Jual Obat Cytotec Di SurabayaObat Aborsi Surabaya 0851\7696\3835 Jual Obat Cytotec Di Surabaya
Obat Aborsi Surabaya 0851\7696\3835 Jual Obat Cytotec Di Surabaya
Obat Aborsi Jakarta Wa 085176963835 Apotek Jual Obat Cytotec Di Jakarta
 
A BUSINESS PROPOSAL FOR SLAUGHTER HOUSE WASTE MANAGEMENT IN MYSORE MUNICIPAL ...
A BUSINESS PROPOSAL FOR SLAUGHTER HOUSE WASTE MANAGEMENT IN MYSORE MUNICIPAL ...A BUSINESS PROPOSAL FOR SLAUGHTER HOUSE WASTE MANAGEMENT IN MYSORE MUNICIPAL ...
A BUSINESS PROPOSAL FOR SLAUGHTER HOUSE WASTE MANAGEMENT IN MYSORE MUNICIPAL ...
prakheeshc
 
Obat Aborsi Malang 0851\7696\3835 Jual Obat Cytotec Di Malang
Obat Aborsi Malang 0851\7696\3835 Jual Obat Cytotec Di MalangObat Aborsi Malang 0851\7696\3835 Jual Obat Cytotec Di Malang
Obat Aborsi Malang 0851\7696\3835 Jual Obat Cytotec Di Malang
Obat Aborsi Jakarta Wa 085176963835 Apotek Jual Obat Cytotec Di Jakarta
 
Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.
Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.
Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.
daisycvs
 
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
nafizanafzal
 
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
ogawka
 
Presentation4 (2) survey responses clearly labelled
Presentation4 (2) survey responses clearly labelledPresentation4 (2) survey responses clearly labelled
Presentation4 (2) survey responses clearly labelled
CaitlinCummins3
 
Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312
LR1709MUSIC
 
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di PasuruanObat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
Obat Aborsi Jakarta Wa 085176963835 Apotek Jual Obat Cytotec Di Jakarta
 
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg PfizerJual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Pusat Herbal Resmi BPOM
 

Recently uploaded (20)

Navigating Tax Season with Confidence Streamlines CPA Firms
Navigating Tax Season with Confidence Streamlines CPA FirmsNavigating Tax Season with Confidence Streamlines CPA Firms
Navigating Tax Season with Confidence Streamlines CPA Firms
 
wagamamaLab presentation @MIT 20240509 IRODORI
wagamamaLab presentation @MIT 20240509 IRODORIwagamamaLab presentation @MIT 20240509 IRODORI
wagamamaLab presentation @MIT 20240509 IRODORI
 
Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...
Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...
Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...
 
Obat Aborsi Surabaya 0851\7696\3835 Jual Obat Cytotec Di Surabaya
Obat Aborsi Surabaya 0851\7696\3835 Jual Obat Cytotec Di SurabayaObat Aborsi Surabaya 0851\7696\3835 Jual Obat Cytotec Di Surabaya
Obat Aborsi Surabaya 0851\7696\3835 Jual Obat Cytotec Di Surabaya
 
A BUSINESS PROPOSAL FOR SLAUGHTER HOUSE WASTE MANAGEMENT IN MYSORE MUNICIPAL ...
A BUSINESS PROPOSAL FOR SLAUGHTER HOUSE WASTE MANAGEMENT IN MYSORE MUNICIPAL ...A BUSINESS PROPOSAL FOR SLAUGHTER HOUSE WASTE MANAGEMENT IN MYSORE MUNICIPAL ...
A BUSINESS PROPOSAL FOR SLAUGHTER HOUSE WASTE MANAGEMENT IN MYSORE MUNICIPAL ...
 
Pitch Deck Teardown: Goodcarbon's $5.5m Seed deck
Pitch Deck Teardown: Goodcarbon's $5.5m Seed deckPitch Deck Teardown: Goodcarbon's $5.5m Seed deck
Pitch Deck Teardown: Goodcarbon's $5.5m Seed deck
 
WAM Corporate Presentation May 2024_w.pdf
WAM Corporate Presentation May 2024_w.pdfWAM Corporate Presentation May 2024_w.pdf
WAM Corporate Presentation May 2024_w.pdf
 
Obat Aborsi Malang 0851\7696\3835 Jual Obat Cytotec Di Malang
Obat Aborsi Malang 0851\7696\3835 Jual Obat Cytotec Di MalangObat Aborsi Malang 0851\7696\3835 Jual Obat Cytotec Di Malang
Obat Aborsi Malang 0851\7696\3835 Jual Obat Cytotec Di Malang
 
Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.
Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.
Abortion pills in Muscut<Oman(+27737758557) Cytotec available.inn Kuwait City.
 
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![©  ر
00971508021841 حبوب الإجهاض في دبي | أبوظبي | الشارقة | السطوة |❇ ❈ ((![© ر
 
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
 
Toyota Kata Coaching for Agile Teams & Transformations
Toyota Kata Coaching for Agile Teams & TransformationsToyota Kata Coaching for Agile Teams & Transformations
Toyota Kata Coaching for Agile Teams & Transformations
 
SCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjw
SCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjwSCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjw
SCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjw
 
Presentation4 (2) survey responses clearly labelled
Presentation4 (2) survey responses clearly labelledPresentation4 (2) survey responses clearly labelled
Presentation4 (2) survey responses clearly labelled
 
Space Tech Expo Exhibitor List 2024 - Exhibitors Data
Space Tech Expo Exhibitor List 2024 - Exhibitors DataSpace Tech Expo Exhibitor List 2024 - Exhibitors Data
Space Tech Expo Exhibitor List 2024 - Exhibitors Data
 
Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312
 
HAL Financial Performance Analysis and Future Prospects
HAL Financial Performance Analysis and Future ProspectsHAL Financial Performance Analysis and Future Prospects
HAL Financial Performance Analysis and Future Prospects
 
Beyond Numbers A Holistic Approach to Forensic Accounting
Beyond Numbers A Holistic Approach to Forensic AccountingBeyond Numbers A Holistic Approach to Forensic Accounting
Beyond Numbers A Holistic Approach to Forensic Accounting
 
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di PasuruanObat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
 
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg PfizerJual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
 

12 Logic Microoperations.pptertryrtytrgrtgtrgtrgtrgtr

  • 2. Logic Microoperations • Logic microoperations specify binary operations for strings of bits stored in registers. • These operations consider each bit of the register separately and treat them as binary variables. • For example, the exclusive-OR microoperation with the contents of two registers RI and R2 is symbolized by the statement • The exclusive-OR microoperation symbolizes the logic computation
  • 3. Special symbols • For logic microoperations some special symbols are adopted. • The reason for adopting the special symbols is to be able to distinguish the symbols used in arithmetic microoperations.
  • 4. Four basic microoperations OR Microoperation • Symbol:  • Gate: • Example: 100110  010110 = 110110
  • 5. AND Microoperation • Symbol:  • Gate: • Example: 100110  010110 = 000110 Four basic microoperations
  • 6. Complement (NOT) Microoperation • Symbol:  • Gate: • Example: 1010110 = 0101001 Four basic microoperations
  • 7. XOR (Exclusive-OR) Microoperation • Symbol:  • Gate: • Example: 100110  010110 = 110000 Four basic microoperations
  • 8. • The + between R2 and R3 specifies an add microoperation. • The OR microoperation is designated by the symbol V between registers R5 • and R6. Four basic microoperations
  • 9. List of Logic Microoperations • There are 16 different logic operations that can be performed with two binary variables. • The Boolean functions listed in the first column represents a relationship between two binary variables x and y. • The logic micro- operations listed in the second column represent a relationship between the binary content of two registers A and B.
  • 10. List of Logic Microoperations • The 16 different logic operations can be determined from all possible truth tables obtained with two binary variables. • Each of the 16 columns F0 through F15 represents a truth table of one possible Boolean function for the two variables x and y.
  • 11. List of Logic Microoperations • Most computers use only four:- AND, OR, XOR, and complement operations to derive 16 logic microoperations.
  • 12. Logic Circuit • It consists of four gates and a multiplexer. Each of the four logic operations is generated through a gate that performs the required logic. • The two selection inputs S1 and S0 choose one of the data inputs of the multiplexer and direct its value to the output.
  • 13. Some Applications • Logic micro-operations are very useful for manipulating individual bits or a portion of a word stored in a register. • They can be used to change bit values, delete a group of bits or insert new bits values into a register.
  • 14. Selective-set operation • The selective-set operation sets to 1 the bits in register A where there are corresponding l's in register B. It does not affect bit positions that have 0's in B. • The OR microoperation can be used to selectively set bits of a register.
  • 15. Selective-complement operation • The selective-complement operation complements bits in A where there are corresponding 1's in B. It does not affect bit positions that have 0's in B. For example: • The exclusive-OR microoperation can be used to selectively complement bits of a register.
  • 16. Selective-clear operation • The selective-clear operation clears to 0 the bits in A only where there are corresponding l's in B. For example: • The corresponding logic microoperation is
  • 17. Mask operation • The mask operation is similar to the selective- clear operation except that the bits of A are cleared only where there are corresponding O's in B. The mask operation is an AND micro operation as seen from the following numerical example:
  • 18. Insert operation • 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. • For example, suppose that an A register contains eight bits, 0110 1010. To replace the four leftmost bits by the value 1001 we first mask the four unwanted bits:
  • 19. Clear operation • The clear operation compares the words in A and B and produces an all 0's result if the two numbers are equal. • This operation is achieved by an exclusive-OR microoperation as shown by the following example