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

Top 5 take aways from "Linux 101 Hacks" - The Bloggers League 2022

  Author: Rama Subrahmanyam Hello, how are you doing..?         We all know that Windows is a super cute-looking OS, but software people will connect to Linux; It offers much flexibility with file management, and plus, it's open-source too..!         So, the book - Linux 101 Hacks, is a nice intro for beginners, by Ramesh Natarajan . Having said that, we look at the top 5 hacks from the book. It is a free e-book, and you can download it here . 1. 'alias' for most used commands:-     There will be commands that are used repeatedly, for which we can have a shortcut using an alias. For example, for cd commands, we can have            alias cd1="cd .."           alias cd2="cd ../.."           alias cd3="cd ../../.."           alias cd4="cd ../../../.."           alias cd5="cd ../../.....

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,    ...

How can we become narrow-minded people without realising it?

In science, whenever we observe a novel event, we start sharpening our brains to decode it. We make a couple more observations related to that event, and try to get a reason for it. It was also the same with the previous generation of scientists. They observed various new phenomena and they gathered as much information as possible to get the accurate reason behind them. But there was a problem with the human mind. In the past days, when there was limited information at hand and more time was required for getting new information, scientists had to make the best possible theories (i.e., explanations) with whatever data was available. It was like a competition, where the scientist with the best theory would win. This "winner" scientist, should be able to explain the data from future experiments with the theory. Consider that, a new experiment happened later, but the results were not explained by the theory of our scientist, then the theory was to be changed, and again the compet...