Computer Architecture

Explain Logic microoperations.

Logic Microoperations 

Logic microoperations are binary operations performed on corresponding bits of two bit strings

•     Example: P: R1 ← R1 ⊕ R2

•     Special Symbols used for logic operations:

⋀ –  AND ⋁ – OR        ⊕ – XOR

This avoids confusing AND with multiplication, OR with addition, etc.

Logic Applications

 •     Logic Operations allow us to manipulate individual bits in ways that we could not do otherwise.

These applications include:

–   selective set

–   selective complement

–   select clear

–   mask

–   insert

–   clear

Selective-Set

•   Selective-set sets to 1 the bits in register A where there is a corresponding 1 in register B:

1010      Content of A before

1100      Content of B( Logic operand )

1110      Content of A After

•   This is done using the logical-OR operation.

Selective Complement

•   Selective-complement complements the bits

in register A where there is a corresponding 1 in register B:

1010      Content of A before

1100      Content of B( Logic operand )

0110      Content of A After

•   This is done using the exclusive-OR operation

Selective Clear

Selective-clear clears to 0 the bits in registerA where there is a corresponding 1 in register B:

1010      Content of A before

1100      Content of B( Logic operand )

0010      Content of A After

•   This is done using the logical-AND operation and B’.

Mask

•   Mask clears to 0 the bits in register A where there is a corresponding 0 in register B:

1010      Content of A before

1100      Content of B( Logic operand )

1000      Content of A After

•   This is done using the logical-AND operation and B.

Insert

Clear

kuldeepvipdigitalhub@gmail.com

Full stack web developer and SQL programmar.......[html java script css ,php technology] and working on SQL and MySQL development Student at University Institute of Technology, RGPV

Leave a Reply

Your email address will not be published. Required fields are marked *