12 votes 12 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 asked Jul 6, 2016 • edited Jun 20, 2021 by Arjun Arjun 8.3k views answer comment Share Follow See 1 comment See all 1 1 comment reply Devesh Kumar commented Jul 6, 2016 reply Follow Share answer is 100% Gray code because B1 = G1 , B2 = G1 exor G2 , B3 = G2 exor G3 , so y is Gray code 2 votes 2 votes Please log in or register to add a comment.
Best answer 14 votes 14 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 See all 6 6 Comments reply rohini commented Jul 7, 2016 reply Follow Share when we go from 010 to 111. There is a change of two bits in X column. 1 votes 1 votes vandana commented Jul 7, 2016 reply Follow Share Binary Gray 000 000 001 001 010 011 011 010 100 110 101 111 110 101 111 100 1 votes 1 votes vandana commented Jul 7, 2016 reply Follow Share @ Arjun sir, gray code for 100 is 110 but the circuit will give 111 as o/p for the i/p 100. Then how the answer will be gray code? 2 votes 2 votes Arjun commented Jul 7, 2016 reply Follow Share @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 votes 0 votes vandana commented Jul 7, 2016 reply Follow Share Thank you sir. 1 votes 1 votes priyanka gautam-piya commented Feb 19, 2017 reply Follow Share sir it simply a conversion from grey to binary na ? if they mention binary code then is it true ? 0 votes 0 votes Please log in or register to add a comment.
0 votes 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 See all 4 4 Comments reply Arjun commented Jul 8, 2016 reply Follow Share 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 votes 1 votes AdminGateOverFlow commented Jul 8, 2016 reply Follow Share So, the answer is correct? 0 votes 0 votes Arjun commented Jul 8, 2016 reply Follow Share No, the gray code should be produced for the input sequence 000, 001, 010 ... 0 votes 0 votes ARSHAD commented May 3, 2017 reply Follow Share the given circuit is conversion of gray code to binary codes 0 votes 0 votes Please log in or register to add a comment.
–1 votes –1 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 See all 3 3 Comments reply Sudarshan Shimar commented Jul 6, 2016 reply Follow Share In question according to gray code representation y2 is connected to 2nd exor in place of x2 0 votes 0 votes rohini commented Jul 7, 2016 reply Follow Share 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 votes 0 votes Sudarshan Shimar commented Jul 10, 2016 reply Follow Share M etna to nhi jaanta but for gray code In question y2 is connected to 2nd exor in place of x2 0 votes 0 votes Please log in or register to add a comment.