14 14 votes The logic circuit given below converts a binary code $Y_1Y_2Y_3$ into Excess-$3$ code Gray code $\text{BCD}$ code Hamming code Digital Logic digital-logic binary-codes isro2016 + – Arjun 11.7k views answer comment Share Follow Print See 1 comment 1 1 comment reply Devesh Kumar commented Jul 6, 2016 reply Follow flag answer is 100% Gray code because B1 = G1 , B2 = G1 exor G2 , B3 = G2 exor G3 , so y is Gray code 2 2 replyShare Please log in or register to add a comment.
Best answer 15 15 votes Y X 000 000 001 001 010 011 011 010 100 111 101 110 110 100 111 101 $X$ is a GRAY code as for consecutive numbers the change in bit position is only 1. From Wikipedia, More formally, a Gray code is a code assigning to each of a contiguous set of integers, or to each member of a circular list, a word of symbols such that each two adjacent code words differ by one symbol. These codes are also known as single-distance codes, reflecting the Hamming distance of 1 between adjacent codes. There can be more than one Gray code for a given word length, but the term was first applied to a particular binary code for the non-negative integers, the binary-reflected Gray code, or BRGC, the three-bit version of which is shown above. So, the given code is not GRAY code as the codes for 3-4, as well as 7-0 differs by 2 bits and not 1. It is also neither BCD (same as binary for 3 bits) nor Excess-3. So, answer should be none of these. Arjun answered Jul 6, 2016 • selected Aug 11, 2016 by Prashant. Arjun comment Share Follow See all 6 Comments 6 6 Comments reply Show 3 previous comments Arjun commented Jul 7, 2016 reply Follow flag @vandana There can be more than one GRAY code for a given word length. But as rohini pointed out, this is not Gray code. I have corrected.. 0 0 replyShare vandana commented Jul 7, 2016 reply Follow flag Thank you sir. 1 1 replyShare priyanka gautam-piya commented Feb 19, 2017 reply Follow flag sir it simply a conversion from grey to binary na ? if they mention binary code then is it true ? 0 0 replyShare Please log in or register to add a comment.
1 1 vote well when we have Gray code,and we convert from gray to binary code then this circuit will work perfectly taking any example u can ascertain the statement ,since no option says something like this ,question become wrong jacknroll answered Nov 30, 2024 jacknroll comment Share Follow 0 reply Please log in or register to add a comment.
0 0 votes Ans is c but in isro key answer is b. Because for gray code no output take as a input but her it is given so it is not gray code In bcd code we take output as a input for next gate other then most significant bit Sudarshan Shimar answered Jul 6, 2016 Sudarshan Shimar comment Share Follow See all 3 Comments 3 3 Comments reply Sudarshan Shimar commented Jul 6, 2016 reply Follow flag In question according to gray code representation y2 is connected to 2nd exor in place of x2 0 0 replyShare rohini commented Jul 7, 2016 reply Follow flag In BCD , each digit is represented by its binary equivalent. So BCD for 100 (4) should be 100. But circuit represents 111 for 100. 0 0 replyShare Sudarshan Shimar commented Jul 10, 2016 reply Follow flag M etna to nhi jaanta but for gray code In question y2 is connected to 2nd exor in place of x2 0 0 replyShare Please log in or register to add a comment.
0 0 votes Y X 110 100 000 000 001 001 111 101 100 111 010 011 011 010 101 110 X is gray Code. Hence, Answer is B. Gray code AdminGateOverFlow answered Jul 8, 2016 AdminGateOverFlow comment Share Follow See all 4 Comments 4 4 Comments reply Arjun commented Jul 8, 2016 reply Follow flag Then simply make a circuit which does nothing but takes the same output and input a GRAY code to it and say the circuit produces a GRAY code :) 1 1 replyShare AdminGateOverFlow commented Jul 8, 2016 reply Follow flag So, the answer is correct? 0 0 replyShare Arjun commented Jul 8, 2016 reply Follow flag No, the gray code should be produced for the input sequence 000, 001, 010 ... 0 0 replyShare ARSHAD commented May 3, 2017 reply Follow flag the given circuit is conversion of gray code to binary codes 1 1 replyShare Please log in or register to add a comment.