COA Notes (Notepad)
COA Notes (Notepad)
>Memory Tranfer-------
1} Memory read-
The transfer of information from a memory word to the outside
environment is called a read operation.
Read: DR <----- M[AR]
2}Memory write-
The write operation transfers the content of a data register to a memory
word M selected by the address.
Write: M[AR] <----- R1
>Binary Adder------
The digital circuit that generates the arithmetic sum of two binary numbers
of any length is called a binary adder.
The binary adder is constructed with full-adder circuits connected in cascade,
with the output carry from one full-adder connected to the input carry of the
next full-adder.
Process-- An n-bit binary adder requires n full-adders. The output carry from
each
full-adder is connected to the input carry of the next-high-order full-adder. The
n data bits for the A inputs come from one register (such as R1), and the n data
bits for the B inputs come from another register (such as R2). The sum can be
transferred to a third register or to one of the source registers (R 1 or R2),
replacing its previous content.
>Binary Adder-Subtractor------
Addition and subtraction operations can be combined into one common circuit by
including an exclusive-OR gate with each full-adder. The mode input K controls the
operations. When k=1, the circuit is subtractractor and when K=0, The circuit is
adder.
1010 A before
1100 B (logic operand)
1110 A after
5} Insert :- 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.
1} Logical Shift :- A logical shift is one that transfers 0 through the serial
input. We will adopt the symbols "shl" and "shr" for logical shift-left and shift-
right microoperations.
R1 <-- shl R1
R2 <-- shr R2
2} Circular Shift :- The circular shift (rotate operation) circulates the bits of
the register around the two ends without loss of information. This is accomplished
by connecting the serial output of the shift register to its serial input.
R <-- cil R
R <-- cir R
3} Arithmatic shift :-
{B} Arithmatic Shift Left : An arithmetic shift left operation moves each bit in a
register one place to the left. The most significant bit (MSB) is moved outside the
register. The empty least significant bit (LSB) is filled with zero.