Escolar Documentos
Profissional Documentos
Cultura Documentos
ANS:
(a) Application of Encoder:
1.The radio frequency spectrum is filled with noise and other signals,
especially those frequencies where unlicensed transmitter operation. When
using a wireless remote control system it is desirable to have a way of
filtering out or ignoring those unwanted signals to prevent false data from
being received. A simple way to accomplish this is to use an encoder IC at
the transmitter and a decoder IC at the receiver. The encoder generates
serial codes that are automatically sent three times and must be received
at least twice before data is accepted as valid by the decoder circuit.
Application of Decoder:
Application of Demultiplexer:
Q2: Discuss the basic logic behind counters i.e. how will you obtain
1000(8) from 0111(7)?
How will you implement the same?
Ans :-
The counters discussed are all synchronous counter. This means the
operation of the flip-flops is synchronized by a common clock pulse so that
when several flip-flops must change state, the state changes occur
simultaneously. Binary counter constructed using three T flip-flops to count
clock pulses.
A binary 0 is zero or ‘off’ and a binary 1 is one or ‘on’. Binary numbers, as
the name suggests, have a value in decimal of two because the binary
number can either be on or off. Binary is calculated from the place value
that the 1 holds. An example of this is the binary number: 00000001.
Starting from the left we record the position of the 1 as the decimal number
one.
The lower-order bit is completed from one count to the next if and only if
all its lower order bits are equal to 1.for example binary count from 0111(7)
to 1000(8) is obtained by
1 Complimenting the lower order bit.
2 Compliment the second-order bit because the first bit of 0111 is 1.
3 Complimenting the third-order bit because the first two bits of 0111 are
1’s.
4 Complimenting the forth-order bit because the first three bits of 0111 are
1’s.
5 Three flip-flop be complimented to reach the next count after
1001100111
Proof of DeMorgan's :
For any theorem X=Y, if we can show that X’ Y = 0, and that X’ + Y = 1,
then
by the complement postulates, A’ A = 0 and A’ + A = 1,
X’ = Y’. By the uniqueness of the complement, X = Y.
Thus the proof consists of showing that (A*B)*( A’ + B’) = 0; and also that
(A*B) + ( A’ + B’)=1.
ANS:-
Booch’s algorithm:- Booch’s algorithm is used to multiply to signed or
unsigned numbers. It is invented by Andrew D. booch.
STEPS OF BOOCH’S MULTIFICTION:-
1) Change the number into binary coded form. If number is negative
then find out its 2’s compliment.
2) Initialized the values to the QR and AC registers.
3) AC initialized the zero. Sets the value Q1 = zero.
4) Initialized the SC register’s equal to the number of bits in QR.
5) If Q0Q1 are 00 or 11 then apply the arithmetic right shift operation
(ARSH). If Q0Q1 is the values 01then add the contents BR into
register AC and if the contents of Q0Q1 are 10 then subtract the
contents of BR from AC.
6) Detriment the SC by 1.
7) This step is continuing until the value of sc become 00.
8) Then at the end combine the result of BR and AC. Then the result
is the binary number of the multiplicand’s mortification number.
---------
1110
ARSH 1111 0001 1 011
1 1 ARSH 1111 1000 1 010
0 1 add BR 0010
---------
0001
ARSH 0000 1100 0 001
0 0 ARSH 0000 0110 0 000
Now multiply the AC and QR. The result is 00000110 which is the binary
number of 6 (2*3).
BCD ADDITION
Carry bit 1 1 11
1254 0001 10 0101 0100
00
+456 0000 00 0101 0110
01
1710 0001 111 0 1011(>9) 1010(>9)
0110 0110
0001 0000
sum 1 7 1 0
BCD SUBTRACTION
1254 0001 0010 0101 0100
-456 0000 0100 0101 0110
798 1101 1111 1110(>9)
0110 0110 0110
0000 0111 1001 1000
sub 0 7 9 8
E A Q SC
Dividend in AQ 0 1010 0011
100
Shl EAQ 1 0100 0110
Add BC+1, Suppress Carry +0101
E=1 1 1001
E=1,Set Qn=1 1 1001 0111
011
Shl EAQ 1 0010 1110
Add BC+1, Suppress Carry +0101
E=1 1 0111
E=1, Set Qn=1 1 0111 1111
010
Shl EAQ 0 1111 1110
Add BC+1, Carry To E 0 +0101
E=1 1 0100 1110
E=1, Set Qn=1 1 0100 1111
001
Shl EAQ 0 1001 1110
Add BC+1, Carry To E 0 +0101
E=0 0 1110 1110
E=0, Leave Qn=0 0 1110 1110
Add B, Carry To E 0 +1011
E=1 1 1001
Restore Remainder 1 1001 1110
100
Neglect E
Remainder in A: 1001
Quotient in Q: 1110