DE Assignment Solution
DE Assignment Solution
= 1x25 + 0x24 + 1x23 + 1x22 + 0x21 + 1x20 + 0x2-1 + 1x2-2 + 0x2-3 + 1x2-4+ 0x2-5
= 32 + 0 + 8 + 4 + 0 + 1 + 0 + 0.25 + 0 + 0. 0625 + 0
= (45.3125)10
Therefore (101101 ⋅ 01010)2 = ( 45.3125 )10
• It is a fast and efficient system that converts the decimal numbers into binary numbers as
compared to the existing binary system.
➢ The BCD equivalent of a decimal number is written by replacing each decimal digit in the integer
and fractional parts with its four-bit binary equivalent.
➢ The BCD code is more precisely known as 8421 BCD code, with 8,4,2 and 1 representing the
weights of different bits in the four-bit groups, Starting from MSB and proceeding towards LSB.
➢ This feature makes it a weighted code, which means that each bit in the four-bit group representing
a given decimal digit has an assigned weight.
0 0000 0011
1 0001 0100
2 0010 0101
3 0011 0110
4 0100 0111
5 0101 1000
6 0110 1001
7 0111 1010
8 1000 1011
9 1001 1100
So, according to excess-3 code we need to add 3 to both digit in the decimal number then convert
into 4-bit binary number for result of each digit. Therefore,
= 23+33=56
According to excess-3 code we need to add 3 to both digit in the decimal number then convert into
4-bit binary number for result of each digit. Therefore,
The reflected binary code or Gray code is an ordering of the binary numeral system such that two
successive values differ in only one bit (binary digit). Gray codes are very useful in the normal
sequence of binary numbers generated by the hardware that may cause an error or ambiguity
Gray code is not weighted that means it does not depend on positional value of digit. This cyclic
variable code that means every transition from one value to the next value involves only one bit
change.
+6 0110
-6 1110
+0 0000
-0 1000
+7 0111
-7 1111
Range
From the above table, it is obvious that if the word size is n bits, the range of numbers that can be
represented is from -(2n-1 -1) to +(2n-1 -1). A table of word size and the range of sign magnitude
(SM) numbers that can be represented as shown in the following.
4 -7 to +7
8 -127 to +127
16 -32767 to +32767
NOT Gate
OR Gate
AND Gate
B) Basic gates realization using NOR Gate
NOT Gate
OR Gate
AND Gate
=> LHS = A + ( A B)
= (A + A ) . (A + B)
= 1 . (A + B)
=. (A + B) => RHS
iii) A ⋅ ( A + B) = A
=> LHS = A ⋅ ( A + B)
=A⋅A +A⋅B
=A+A⋅B
= A (1 + B)
= A => RHS
iv) 𝐴 𝐵 + 𝐴 𝐵̅ ∙ ̅̅̅̅̅
𝐴̅ 𝐶̅ = 𝐴
= 𝐴 𝐵 + 𝐴 𝐵̅ ∙ (𝐴̅ + 𝐶̅ )
= 𝐴 𝐵 + 𝐴 𝐵̅ ∙ (𝐴 + 𝐶)
= 𝐴 𝐵 + 𝐴 𝐵̅ ∙ 𝐴 + 𝐴 𝐵̅ ∙ 𝐶
= 𝐴 𝐵 + 𝐴 𝐵̅ + 𝐴 𝐵̅ 𝐶
= 𝐴 (𝐵 + 𝐵̅) + 𝐴 𝐵̅ 𝐶
= 𝐴 ∙ 1 + 𝐴 𝐵̅ 𝐶
= 𝐴 (1 + 𝐵̅ 𝐶)
=𝐴 ∙1
= A => RHS