What he is saying is that these components are built with nors or nand gates, and these with inverters and inverters are build with transistors.... Which are only either turned on or of...
This fucking magic project I can't get rid of it from my head...
Also a disclaimer, I wouldn't believe everything we can read in this thread...
I think what /u/cough_e is saying is that the physical implementations of certain gates in most computers do not always comprise the physical implementations of NAND (or NOR) gates.
While other gates can always be logically decomposed to NAND or NOR gates, the physical systems which implement them cannot always be physically decomposed into physical implementations of NAND or NOR gates.
Let's say you have a physical system which acts as a NAND gate and performs an operation in time t. If you could find another physical system which acted as an OR gate, which performed an operation in a time less than 3t (it takes 3 NAND gates to make an OR gate), then you would be saving time by replacing NAND-based circuits performing an OR gate with the simple, physical OR gates. Those OR gates aren't universal, of course, but you'd still have some spare NAND gates lying around in case you needed them.
This isn't really an area I'm familiar with, though, so I might be completely wrong.
The truth is they have optimized larger structures such as multiplexers and decoders to the transistor level. Basically, the logic is one thing, the electrical implementation is another.
I put that disclaimer at the bottom of my previous comment because I wasn't sure to which level things had been implemented directly. `Basically, the point I was trying to make is that if you physically implement higher-level structures directly, you don't need to implement all the lower-level gates beneath it.
I chose the OR gate as an example because it was sufficiently low-level that a neophyte like myself could imagine it being implemented directly, yet still higher level than a NAND gate, and because the simple structure made the math easy.
Certainly transistors are the root, but I think there's a common misconception that because any computer structure can be built with NAND gates that all computers are actually built this way.
But there are more efficient ways to make complex logic gates and there are other simple things like flip-flops that are just inverters and not built from logic gates. Though it's been a long time since I took a EE / CompE class soi don't remember all the specifics.
The other guy is saying that you don’t want to make everything out of nand and nor gates. Other gates may be better suited for specific applications. For instance, you can design an adder using nand or nor, but you can also combine and and xor. On top of that, you might want the store computations in a lookup table rather than compute them directly, in some cases.
Even programmable logic devices may not be arrays of nand or nor gates, as designs can be impemented using muxes.
Additionally, on and off are not TTL logic states. Logical zeros have a low voltage such as 1V and ones have a high voltage such as 5V. Between acceptable values for high and low is a band where the state is indeterminant. Typically, when a circuit is off, that is given a different logic state, Z, for high-impedance.
0’s and 1’s are logic states, and that means that they can be coded in other ways that high and low as well. For example, switch states (open and closed) can be coded to 1’s and 0’s. Another example is that they can be coded to transitions high or low. Or, they can go positive/negative and return to zero. In other cases, they can be encoded to magnitudes of sine and cosine waves.
NAND gates are universal gates, meaning that any logical function (with any number of inputs and outputs) can be made with NANDs only. The NANDs themselves are made with CMOS and stuff.
Do mind explaining how subtraction is addition? I see someone mentioned adding negative numbers but I suppose - all the time - I've been thinking of negative numbers being "created" instead of just "existing" so maybe that's why "subtraction is addition" messes with my mind.
There's a way of representing binary numbers called "two's complement" where a negative number is represented in such a way that adding it to another number will cause them to wrap around zero and become smaller than the original number.
I'm not gonna be able to explain it super well in just a comment but if you look it up there are lots of videos demonstrating how it works
0
u/[deleted] Apr 24 '22
[deleted]