Skip to main content

About the XAND..

tilt-shift photography of green computer motherboard

 We have different kind of basic digital gates, such as NOT, AND, OR and the Universal gates. Besides those we knew about the XOR ( Exclusive-OR ) logic. But why are we not informed about XAND ( Exclusive-AND )..?

To know about XAND possibility, let us see about the genesis of XOR..

The idea behind XOR gate:

Consider we have two inputs and an output. The OR gives output logic '1' if at least one input is logic '1', and the truth table, as we know, looks like:

ABY = A OR B
000
011
101
111

To recognize the case of only one input getting '1', we are "excluding" the case of both events getting '1', creating the Exclusive-OR (So, the XOR truth table output is '0' if both inputs are '1').

ABY = A XOR B
000
011
101
110

What about the XAND then..?

If we adapt same explanation for the AND gate as well, we have to remove the case of getting A and B as '1' at the same time. In that case, we do not have any output..! We just get zero as for all inputs, which will look like:

ABY = A XAND B
000
010
100
110


But wait..
Consider the definition of AND gate as this - "the output will be zero if at least one input is zero"..
Now, the procedure of obtaining the exclusive would be roughly:
  1. The actual case - Output will be zero if either one or both are '0'
  2. Now, exclude the case of both inputs being '0', and replace the actual output '0' with '1'
  3. Form the resultant truth table.
Then the proposed table looks like this:
ABY = A XAND B
001
010
100
111
Came across this table previously..? Of course, you're right. It's the truth table for the logic popularly referred to as XNOR..!

So, in that way, our journey of finding a new logic ended up in merging with XNOR..

Thanks for reading..

How was the post..? Do express your views in the comments section..

If you also know/came across any cool and exciting things, then don't forget to share them and help us reach the 'Eternal Thing'..

Comments

Popular posts from this blog

25 and Disappointed: Can’t we choose simple life?

 There’s something strange about the way we live now. It’s not enough to do your job. You have to grow. Climb. Upskill. Network. Earn more. Spend more. Repeat. People areound you - even the ones who seem tired - still say, “Keep pushing.” The ones ahead keep reaching higher. The ones behind are told to catch up. And if you stand still for even a moment, they say you’re wasting time. But no one explains why. Why is a peace a problem? Why is being satisfied with what you have seen as a failure? This idea of “simple life” - it used to be normal. Work. Come home. Cook. Be with the people you love. Rest. Now it’s rare. Or romanticized. Or quietly looked down on. We’re told that success means constant movement. That we need to hustle, or we’ll be left behind.  But behind what, really? We’ve normalized the rat race, without asking who started it. And the truth is - only a few can actuallly win it. Most people burn out trying.  Others fake their way through it, smiling through st...

Bye-bye strict timetables...! - The Bloggers League 2022

     Author: Rama Subrahmanyam (ramasubrahmanyam.m@gmail.com) When we are planning for multi-tasking, we divide our time and allocate it for each task. That is a great thing, as it gives a chance for incremental growth, eventually getting compounded...      Scheduling makes us punctual; sometimes forces us to be punctual if someone is counting on us, say an examination, office meeting, so on...      Besides strict things, some activities should happen at planned times, like sports, gym, etc. But, we still have things, that can be done in our free time - say reading books, solving puzzles, or learning something of our passion. Should we also maintain the timetable in those cases...? Well, may not be that necessary... We get used to a task at the same time if we have a strict timetable; In a way, can also affect our peace... Suppose due to urgent work, we missed a task      -  We may develop a bad feeling,    ...

25 and Disappointed: Survival should not mean Struggling

There are days I wish I could just leave my job. But I don’t do it. Because I need to pay my rent. I need to eat. I don’t have any other income. I am afraid that I am not alone in this. I see people who are smart and talented - doing things they don’t love. They settle. Not out of choice, but out of fear. The fear of being homeless, being hungry. They live in a world that demands payment of bills more than anything. That brings a simple, maybe naive thought: What if food and shelter were guaranteed for everyone? What if one need not be working just to survive? Is it wild to wish for these? Are these not the basic human rights… If the basic needs were covered, what could we become? Artists, teachers, thinkers, healers - they are made out of passion. People can volunteer more, care for the elderly, innovate better, or take time and get a chance to do things slower… The working class would not have to burn themselves to keep the lights on. The poor wouldn’t have to beg.  What if peopl...