Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
doubts in xor gate in decoder circuit

Subject: doubts in xor gate in decoder circuit

From: Shobana

Date: 27 Dec, 2012 06:02:10

Message: 1 of 2

hai.....
   n1 = xor(m3,m2);
  n2 = xor(m4,m3);
  n3 = xor(m5,m4);
  n4 = xor(xor(m5,m4),xor(m3,m1)), where [m5 m4 m3 m2 m1] = [0 1 0 1 0] then we get [n1 n2 n3 n4] = [0 0 0 1]
After i have to compare this value with another vector as d =[0000] here the 4th bit get differs.So in this case we need to change the value of (m1,m2,m3,m4,m5) in such a manner to get [ n1 n2 n3 n4 ]is equal to 0000.

    I tried this with xnor but it is not working
     If anybody knows please reply me.
Thanks in advance
 

Subject: doubts in xor gate in decoder circuit

From: Roger Stafford

Date: 27 Dec, 2012 14:35:08

Message: 2 of 2

"Shobana " <manoharanshobana@ymail.com> wrote in message <kbgo92$qga$1@newscl01ah.mathworks.com>...
> hai.....
> n1 = xor(m3,m2);
> n2 = xor(m4,m3);
> n3 = xor(m5,m4);
> n4 = xor(xor(m5,m4),xor(m3,m1)), where [m5 m4 m3 m2 m1] = [0 1 0 1 0] then we get [n1 n2 n3 n4] = [0 0 0 1]
> After i have to compare this value with another vector as d =[0000] here the 4th bit get differs.So in this case we need to change the value of (m1,m2,m3,m4,m5) in such a manner to get [ n1 n2 n3 n4 ]is equal to 0000.
>
> I tried this with xnor but it is not working
> If anybody knows please reply me.
> Thanks in advance
- - - - - - - - - - -
  I don't understand what it is you are trying to do, but your statement that "where [m5 m4 m3 m2 m1] = [0 1 0 1 0] then we get [n1 n2 n3 n4] = [0 0 0 1]" is incorrect, given your definitions of n1, n2, n3, and n4. With these values of [m5 m4 m3 m2 m1] you would get [n1 n2 n3 n4] = [1 1 1 1].

  With your current definition of the n's all m's must be the same to get [n1 n2 n3 n4] = [0 0 0 0], either all 0's or all 1's. Please explain with greater clarity what it is you are attempting to do - what is it you wish to change, the definition of the n's or the values of the m's?

Roger Stafford

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us