Parity is a function in which the output depends on the number of 1s in in the input. For an even parity function, the output is 1 if the input has an even number of ones. Suppose a ROM is used to implement an even parity function with a 4-bit input. Then the contents of the ROM is $$text{Address} 0 : 0 text{Address} 1: 1 text{Address} 2 : 0 text{Address} 3 : 1 vdots text{Address} 13 : 1 text{Address} 14 : 0 text{Address} 15 : 1$$
As per my understanding, ROM which implements the even parity function should store 0 at both the Address 1 and the Address 2, 1 at the Address 3, … 0 at both the Address 13 and 14, then 1 at the Address 15, for the Address $k$ to represent the map-value of $(k)_{text{base}2}$. According to this the concept defined above is not clear enough, Can someone clarify the doubt?
Asked By : giuscri
Answered By : David Richerby
Best Answer from StackOverflow
Question Source : http://cs.stackexchange.com/questions/16599 3.2K people like this