The thing about electronics is that ANDs and ORs (of any input width) can be implemented with just diodes (the resulting gate depends on the direction you use said diodes), and a NOT equates to a single transistor, thereby covering your primitive silicon components. NANDs and their kin have no such equivalence and are implemented as compositions of the other three parts.nobody actually does this
Most frequently used bitwise operators.
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Most frequently used bitwise operators.
Re: Most frequently used bitwise operators.
Hi
In software this operator is used for assignment (e.g. "x = y;" relies on "unary is"). In electronics, for every conductor (of non-zero length) there are an infinite number of "unary is" operators involved.
Cheers,
Brendan
I disagree. The single most frequently used bitwise operator is "unary is". Most people aren't aware of this bitwise operator, so here's the truth table:Love4Boobies wrote:No? I don't know where I got that from; I should take one of Coursera's courses on these matters. In that case, I don't know what the most common operation is when working with logic gates or whether one can be singled out.
Code: Select all
in | out
------
1 | 1
0 | 0
Cheers,
Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
Re: Most frequently used bitwise operators.
That makes sense, Brendan.
Programming is 80% Math, 20% Grammar, and 10% Creativity <--- Do not make fun of my joke!
If you're new, check this out.
If you're new, check this out.
Re: Most frequently used bitwise operators.
There are many ways to implement gates in electronics. The most popular method today is CMOS, where it takes two transistors to implement NOT for instance. DTL, while used, is not nearly as relevant.Combuster wrote:The thing about electronics is that ANDs and ORs (of any input width) can be implemented with just diodes (the resulting gate depends on the direction you use said diodes), and a NOT equates to a single transistor, thereby covering your primitive silicon components. NANDs and their kin have no such equivalence and are implemented as compositions of the other three parts.nobody actually does this
Keep the world with all its sin
It's not fit for livin' in
It's not fit for livin' in
Re: Most frequently used bitwise operators.
Hahaha, very nice, Brendan. Some smart donkey had to point it outBrendan wrote:In electronics, for every conductor (of non-zero length) there are an infinite number of "unary is" operators involved.
Speaking of logic gates, my father has one of those Pong games that you plug into the TV. It's got two pots on it - one for each player's paddle. There's no software involved in it at all; it's entirely hard coded in a large series logic gates. Yep, back in the 70s and 80s, you could literally buy a 'Pong Chip' off the shelf at the local D ick Smith (damned profanity detector originally got rid of the d ick part) store (basically Radio Shack if you're in the US).
Maybe I should upgrade to CMOS and raise the clock speed on that baby! Perhaps I could then create another unit to act as the two players and keep the ball in play as long as possible..... hardcoded in logic gates of course
phillid - Newbie-ish operating system developer with a toy OS on the main burner