Logic Microoperations



Rating - 4/5
547 views

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 R 1 and R2 is symbolized by the statement.

                         P: R1 +- R1 Ell R2

It specifies a logic microoperation to be executed on the individual bits of the registers provided that the control variable P = 1. As a numerical example, assume that each register has four bits. Let the content of R1 be 1010 and the content of R2 be 1 100. The exclusive-OR microoperation stated above symbolizes the following logic computation:

                1010 Content of R 1 1 100

                 Content of R2 0110

These Topics Are Also In Your Syllabus
1 Binary lncrementer link
2 Logic Microoperations link
You May Find Something Very Interesting Here. link
3 List of Logic Microoperations link
4 Hardware Implementation link
5 Some Applications Hardware Implemntation link

                Content of R 1 after P = 1

The content of R1, after the execution of the microoperation, is equal to the bit-by-bit exclusive-OR operation on pairs of bits in R2 and previous values of Rl. The logic microoperations are seldom used in scientific computations, but they are very useful for bit manipulation of binary data and for making logical decisions.

special symbols:

Special symbols will be adopted for the logic microoperations OR, AND, and complement, to distinguish them from the corresponding symbols used to express Boolean functions. The symbol V will be used to denote an OR microoperation and the symbol 1\ to denote an AND microoperation. The complement microoperation is the same as the 1's complement and uses a bar on top of the symbol that denotes the register name. By using different symbols, it will be possible to differentiate between a logic microoperation and a control (or Boolean) function. Another reason for adopting two sets of symbols is to be able to distinguish the symbol + , when used to symbolize an arithmetic plus, from a logic OR operation. Although the + symbol has two meanings, it will be possible to distinguish between them by noting where the symbol occurs. When the symbol + occurs in a microoperation, it will denote an arithmetic plus. When it occurs in a control (or Boolean) function, it will denote an OR operation. We will never use it to symbolize an OR microoperation. For example, in the statement.

                P + Q: R1 +- R2 + R3, R4 <- R5 V R6

These Topics Are Also In Your Syllabus
1 Complements link
2 Complements -2 link
You May Find Something Very Interesting Here. link
3 Subtraction of Unsigned Numbers link
4 Subtraction of Unsigned Numbers-2 link
5 Fixed-Point Representation link

the + between P and Q is an OR operation between two binary variables of a control function. The + between R2 and R3 specifies an add microoperation. The OR microoperation is designated by the symbol V between registers R5 and R6.

 


Rating - 4/5
523 views

Advertisements
Rating - 4/5