SlideShare a Scribd company logo
10/26/2014
1
Computer Organization
Instructors :
Dr. Abdul Raouf Khan
Mr.Marwan El-Haj
Logic Microoperations
Logic Microoperations specify binary
operations for strings of bits stored in
registers. Each bit is considered separately .
For example EX-OR operation is symbolized
by P : R1 R1 R2
it means, if P=1, EXOR operation of
individual bits of R1 and R2 are executed
and the result is placed in R1
10/26/2014
2
List of Logic Microoperations
Hardware implementation of
Logic Microoperations
10/26/2014
3
Applications
Logic Microoperations are very useful for
manipulating individual bits or portions of
word stored in a register.
1) Selective Set
The selective set operation sets to 1 the bits
in register A, where there are corresponding
1’s in register B
1 0 1 0 A (before)
1 1 0 0 B (logic operand)
-------------------
1 1 1 0 A ( after )
( Logic OR)
10/26/2014
4
2) Selective Complement
The selective Complement operation
complements bits in register A, where there
are corresponding 1’s in register B
1 0 1 0 A (before)
1 1 0 0 B (logic operand)
-------------------
0 1 1 0 A ( after )
( Logic XOR)
3) Selective Clear
The selective Clear operation clears to 0 the
bits in register A, only where there are
corresponding 1’s in register B
1 0 1 0 A (before)
1 1 0 0 B (logic operand)
-------------------
0 0 1 0 A ( after )
( Logic AB”)
10/26/2014
5
4) Mask operation
The bits in register A are cleared only
where there are corresponding 0’s in register
B
1 0 1 0 A (before)
1 1 0 0 B (logic operand)
-------------------
1 0 0 0 A ( after )
( Logic AND)
5) Insert operation
Inserts a new value into a group of bits
This is done by first masking the bits then
ORing them with the required value
0 1 1 0 1 0 1 0 A (before)
0 0 0 0 1 1 1 1 B (mask unwanted bits)
-------------------
0 0 0 0 1 0 1 0 A ( after masking)
10/26/2014
6
5) Insert operation (contd )
And Insert a new value
0 0 0 0 1 0 1 0 A ( after masking)
1 0 0 1 0 0 0 0 B (insert bits)
-------------------
1 0 0 1 1 0 1 0 A ( after insertion)
The clear operation compares the results
1 0 1 0 A
1 0 1 0 B
-------------------
0 0 0 0 A A B
Assignment
1. Design a digital circuit that performs the four logic
operations of EXOR, EXNOR, NOR and NAND. Use
two selection lines. Show the logic diagram of two
stages. ( for two bit word)
2. Register A holds the 8 – bit binary 11011001.
Determine the B operand and logic microoperation to
be performed in order to change the value in A to
a) 01101101
b) 11111101

More Related Content

PPT
Fpga 13-task-and-functions
PPT
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
PPTX
Arithmetic micro operations
PDF
FPGA FIR filter implementation (Audio signal processing)
PPTX
Arithmetic micro operations
PPT
Fpga 11-sequence-detector-fir-iir-filter
PPTX
Logical, Shift, and Rotate Instruction
PPT
Maps&hash tables
Fpga 13-task-and-functions
ANALYSIS & DESIGN OF COMBINATIONAL LOGIC
Arithmetic micro operations
FPGA FIR filter implementation (Audio signal processing)
Arithmetic micro operations
Fpga 11-sequence-detector-fir-iir-filter
Logical, Shift, and Rotate Instruction
Maps&hash tables

What's hot (11)

PPTX
PDF
FPGA Implementation of Pipelined CORDIC Sine Cosine Digital Wave Generator
PDF
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
PDF
Logic gates verification
PDF
VLSI Design Final Project - 32 bit ALU
PPT
Lec15 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Re...
PDF
FPGA Implementation of FIR Filter using Various Algorithms: A Retrospective
DOCX
Dsd lab internal q.paper
PPT
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
PDF
C046051216
PPT
Digital logic design DLD Logic gates
FPGA Implementation of Pipelined CORDIC Sine Cosine Digital Wave Generator
EC202 SIGNALS & SYSTEMS PREVIOUS QUESTION PAPER
Logic gates verification
VLSI Design Final Project - 32 bit ALU
Lec15 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Re...
FPGA Implementation of FIR Filter using Various Algorithms: A Retrospective
Dsd lab internal q.paper
Lec7 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Kar...
C046051216
Digital logic design DLD Logic gates
Ad

Viewers also liked (20)

PDF
Lect2 organization 2
PDF
Lect4 organization
PDF
Lect1 organization 2
PDF
Cis cvs risc
PPTX
PPTX
Chain matrix multiplication
PPTX
PPTX
Activity selection 2
PDF
Lect9 organization
PDF
Lect14 organization
PDF
Lect8 organization
PDF
Lect5 organization
PPTX
Strongly connected components
PPTX
Graph theory
PPTX
Complexity theory 2
PDF
Lect13 organization
PDF
Lect11 organization
PPTX
Topological sort
PPTX
Bfs and dfs
PPTX
Complexity theory 3
Lect2 organization 2
Lect4 organization
Lect1 organization 2
Cis cvs risc
Chain matrix multiplication
Activity selection 2
Lect9 organization
Lect14 organization
Lect8 organization
Lect5 organization
Strongly connected components
Graph theory
Complexity theory 2
Lect13 organization
Lect11 organization
Topological sort
Bfs and dfs
Complexity theory 3
Ad

Similar to Lect3 organization 2 (20)

PPTX
Logicmicrooperations in design and analysis.pptx
PPT
12 Logic Microoperations.pptertryrtytrgrtgtrgtrgtrgtr
PDF
Logic microoperations
PPTX
Logical micro-operations
PPTX
Register transfer and microoperations part 2
PPTX
Microoperations
PDF
Arthimatic_logical like the subtraction and additional.pdf
PPTX
Unit-3 PPT_Updated COA.pptx (1).pptx coa
PPTX
Logical Instructions used in 8086 microprocessor
PPT
Chapter10-ALU.ppt
PPT
Chap1.ppt
PPT
dld.ppt
PDF
COMPUTER ORGANIZATION NOTES Unit 6
PPTX
Logical instructions (and, or, xor, not, test)
PPTX
CS304PC:Computer Organization and Architecture Session 4 Arithmetic shift log...
PPT
Chapter10-ALU.ppt ghuytresdfghuytresdfghuytre
PPTX
Arithmetic and logic operations in c
PDF
Computer Organization and Architecture.pdf
PPTX
Copy of 8086inst logical
PPT
Copy of 8086inst logical
Logicmicrooperations in design and analysis.pptx
12 Logic Microoperations.pptertryrtytrgrtgtrgtrgtrgtr
Logic microoperations
Logical micro-operations
Register transfer and microoperations part 2
Microoperations
Arthimatic_logical like the subtraction and additional.pdf
Unit-3 PPT_Updated COA.pptx (1).pptx coa
Logical Instructions used in 8086 microprocessor
Chapter10-ALU.ppt
Chap1.ppt
dld.ppt
COMPUTER ORGANIZATION NOTES Unit 6
Logical instructions (and, or, xor, not, test)
CS304PC:Computer Organization and Architecture Session 4 Arithmetic shift log...
Chapter10-ALU.ppt ghuytresdfghuytresdfghuytre
Arithmetic and logic operations in c
Computer Organization and Architecture.pdf
Copy of 8086inst logical
Copy of 8086inst logical

More from Maher Alshammari (16)

PDF
Lect10 organization
PDF
Lect12 organization
PDF
Lect7 organization
PDF
Lect15 organization
PDF
Lect6 organization
PPTX
Greedy algorithm
PPTX
Minimum spanning trees
PPTX
Matrix chain multiplication 2
PPTX
Edit distance problem
PPTX
Merge sort
PPT
Lecture01
PPTX
Matrix chain multiplication
PPTX
Bellman ford and floyd warshal
PPTX
Dijekstra algorithm
PPTX
Greedy algorithm huffman encoding
PPTX
Lecture02
Lect10 organization
Lect12 organization
Lect7 organization
Lect15 organization
Lect6 organization
Greedy algorithm
Minimum spanning trees
Matrix chain multiplication 2
Edit distance problem
Merge sort
Lecture01
Matrix chain multiplication
Bellman ford and floyd warshal
Dijekstra algorithm
Greedy algorithm huffman encoding
Lecture02

Recently uploaded (20)

PDF
TUTI FRUTI RECETA RÁPIDA Y DIVERTIDA PARA TODOS
PPTX
Socio ch 1 characteristics characteristics
PPTX
Lesson 1-Principles of Indigenous Creative Crafts.pptx
PPTX
MUSIC-W1-Q1-1.pptxL;ML;MLNL;NL;NL;N;LNL;NL;N
PPTX
slide head and neck muscel for medical students
PPTX
unit5-servicesrelatedtogeneticsinnursing-241221084421-d77c4adb.pptx
PPTX
Presentation on tradtional textiles of kutch
PPTX
Certificados y Diplomas para Educación de Colores Candy by Slidesgo.pptx
PPTX
65bc3704-6ed1-4724-977d-a70f145d40da.pptx
PDF
Ricardo Salinas Pliego Accused of Acting as A Narcotics Kingpin
PPTX
400kV_Switchyard_Training_with_Diagrams.pptx
PPTX
Callie Slide Show Slide Show Slide Show S
PPTX
CPAR7 ARTS GRADE 112 LITERARY ARTS OR LI
PPT
Jaipur Sculpture Tradition: Crafting Marble Statues
PDF
Close Enough S3 E7 "Bridgette the Brain"
PDF
the saint and devil who dominated the outcasts
PPTX
CPAR-ELEMENTS AND PRINCIPLE OF ARTS.pptx
PPTX
CMU-PPT-LACHICA-DEFENSE FOR RESEARCH PRESENTATION
PDF
DPSR MUN'25 (U).pdf hhhhhhhhhhhhhbbnhhhh
PDF
Slide_BIS 2020 v2.pdf....................................
TUTI FRUTI RECETA RÁPIDA Y DIVERTIDA PARA TODOS
Socio ch 1 characteristics characteristics
Lesson 1-Principles of Indigenous Creative Crafts.pptx
MUSIC-W1-Q1-1.pptxL;ML;MLNL;NL;NL;N;LNL;NL;N
slide head and neck muscel for medical students
unit5-servicesrelatedtogeneticsinnursing-241221084421-d77c4adb.pptx
Presentation on tradtional textiles of kutch
Certificados y Diplomas para Educación de Colores Candy by Slidesgo.pptx
65bc3704-6ed1-4724-977d-a70f145d40da.pptx
Ricardo Salinas Pliego Accused of Acting as A Narcotics Kingpin
400kV_Switchyard_Training_with_Diagrams.pptx
Callie Slide Show Slide Show Slide Show S
CPAR7 ARTS GRADE 112 LITERARY ARTS OR LI
Jaipur Sculpture Tradition: Crafting Marble Statues
Close Enough S3 E7 "Bridgette the Brain"
the saint and devil who dominated the outcasts
CPAR-ELEMENTS AND PRINCIPLE OF ARTS.pptx
CMU-PPT-LACHICA-DEFENSE FOR RESEARCH PRESENTATION
DPSR MUN'25 (U).pdf hhhhhhhhhhhhhbbnhhhh
Slide_BIS 2020 v2.pdf....................................

Lect3 organization 2

  • 1. 10/26/2014 1 Computer Organization Instructors : Dr. Abdul Raouf Khan Mr.Marwan El-Haj Logic Microoperations Logic Microoperations specify binary operations for strings of bits stored in registers. Each bit is considered separately . For example EX-OR operation is symbolized by P : R1 R1 R2 it means, if P=1, EXOR operation of individual bits of R1 and R2 are executed and the result is placed in R1
  • 2. 10/26/2014 2 List of Logic Microoperations Hardware implementation of Logic Microoperations
  • 3. 10/26/2014 3 Applications Logic Microoperations are very useful for manipulating individual bits or portions of word stored in a register. 1) Selective Set The selective set operation sets to 1 the bits in register A, where there are corresponding 1’s in register B 1 0 1 0 A (before) 1 1 0 0 B (logic operand) ------------------- 1 1 1 0 A ( after ) ( Logic OR)
  • 4. 10/26/2014 4 2) Selective Complement The selective Complement operation complements bits in register A, where there are corresponding 1’s in register B 1 0 1 0 A (before) 1 1 0 0 B (logic operand) ------------------- 0 1 1 0 A ( after ) ( Logic XOR) 3) Selective Clear The selective Clear operation clears to 0 the bits in register A, only where there are corresponding 1’s in register B 1 0 1 0 A (before) 1 1 0 0 B (logic operand) ------------------- 0 0 1 0 A ( after ) ( Logic AB”)
  • 5. 10/26/2014 5 4) Mask operation The bits in register A are cleared only where there are corresponding 0’s in register B 1 0 1 0 A (before) 1 1 0 0 B (logic operand) ------------------- 1 0 0 0 A ( after ) ( Logic AND) 5) Insert operation Inserts a new value into a group of bits This is done by first masking the bits then ORing them with the required value 0 1 1 0 1 0 1 0 A (before) 0 0 0 0 1 1 1 1 B (mask unwanted bits) ------------------- 0 0 0 0 1 0 1 0 A ( after masking)
  • 6. 10/26/2014 6 5) Insert operation (contd ) And Insert a new value 0 0 0 0 1 0 1 0 A ( after masking) 1 0 0 1 0 0 0 0 B (insert bits) ------------------- 1 0 0 1 1 0 1 0 A ( after insertion) The clear operation compares the results 1 0 1 0 A 1 0 1 0 B ------------------- 0 0 0 0 A A B Assignment 1. Design a digital circuit that performs the four logic operations of EXOR, EXNOR, NOR and NAND. Use two selection lines. Show the logic diagram of two stages. ( for two bit word) 2. Register A holds the 8 – bit binary 11011001. Determine the B operand and logic microoperation to be performed in order to change the value in A to a) 01101101 b) 11111101