8 votes 8 votes If $ABCD$ is a $4$-bit binary number, then what is the code generated by the following circuit? BCD code Gray code $8421$ code Excess-$3$ code Digital Logic isro-2020 digital-logic combinational-circuit circuit-output normal + – Satbir asked Jan 13, 2020 retagged Dec 7, 2022 by Lakshman Bhaiya Satbir 3.1k views answer comment Share Follow See 1 comment See all 1 1 comment reply JashanArora commented Feb 21, 2020 reply Follow Share BCD and 8421 Code are the same. So, they're eliminated. 0000 gives 0000, so not Excess 3. Option B 2 votes 2 votes Please log in or register to add a comment.
9 votes 9 votes $\textbf{Output:}\:W = A,\:X=A\oplus B,\:Y=B\oplus C,Z=C\oplus D$ $\text{Decimal Numbers}$ $\text{Binary Code}$ $\text{Gray Code}$ $0$ $0000$ $0000$ $1$ $0001$ $0001$ $2$ $0010$ $0011$ $3$ $0011$ $0010$ $4$ $0100$ $0110$ $5$ $0101$ $0111$ $6$ $0110$ $0101$ $7$ $0111$ $0100$ $8$ $1000$ $1100$ $9$ $1001$ $1101$ $10$ $1010$ $1111$ $11$ $1011$ $1110$ $12$ $1100$ $1010$ $13$ $1101$ $1011$ $14$ $1110$ $1001$ $15$ $1111$ $1000$ $\text{Convert Binary to Gray Code}:$ The MSB (Most Significant Bit) of the gray code will be exactly equal to the first bit of the given binary number. The second bit of the code will be exclusive-or (XOR) of the first and second bit of the given binary number, i.e if both the bits are same the result will be $0$ and if they are different the result will be $1.$ The third bit of gray code will be equal to the exclusive-or (XOR) of the second and third bit of the given binary number. Thus the binary to gray code conversion goes on. An example is given below to illustrate these steps. Reference: https://www.electrical4u.com/binary-to-gray-code-converter-and-grey-to-binary-code-converter/ So, the correct answer is $(b).$ Lakshman Bhaiya answered Jan 13, 2020 edited Feb 9, 2020 by Satbir Lakshman Bhaiya comment Share Follow See all 0 reply Please log in or register to add a comment.
2 votes 2 votes Option C Gray code is written like this: $\ A\ \ \ \ A\oplus B \ \ \ \ B\oplus C \ \ \ \ C\oplus D$ $\ \downarrow\ \ \ \ \ \ \downarrow \ \ \ \ \ \ \ \ \ \ \ \downarrow \ \ \ \ \ \ \ \ \ \ \ \downarrow$ $\ W\ \ \ \ \ \ X\ \ \ \ \ \ \ \ \ \ \ \ \ Y\ \ \ \ \ \ \ \ \ \ \ \ Z$ habedo007 answered Jan 13, 2020 habedo007 comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes In a Gray code, two successive values differ in only one bit. The given circuit takes ABCD as input and produce WXYZ as its corresponding gray code. W = A, X = A ⊕ B, Y = B ⊕ C, Z = C ⊕ D. topper98 answered Mar 21, 2020 topper98 comment Share Follow See all 0 reply Please log in or register to add a comment.