741
Anon thinks about CPUs (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] Kolanaki@yiffit.net 11 points 2 months ago

I'm lost on how a transistor can just stay 0 or 1 when it's just a super teeny tiny circle of wire, basically. Like, I know the typical explanation, but it doesn't really make it any clearer. Electricity moves in a magic shape, and stuff happens. 🤷🏻‍♂️

[-] Opisek@lemmy.world 11 points 2 months ago* (last edited 2 months ago)

The thing is, it never stays in a constant state! It's more like a water dam with a steady water flow that you can open and close. You said you know the typical explanation already, so I won't cry to explain it again.

[-] bstix@feddit.dk 11 points 2 months ago

I'm not sure what the typical explanation is, but a transistor is not a wire.

A wire is a conductor. It conducts electricity from end to the other.

A transistor is a semi-conductor device made from semi-conducting materials, so it conducts electricity between 2 ends with a variable electrical resistance. This variable can be controlled by putting voltage on the third leg. This way a transistor is basically a resistor with a variable resistance, which unlike a resistor is also controllable by a third input.

This ability is a property of the material. It cannot be constructed by a regular wire.

[-] Phoenix3875@lemmy.world 4 points 2 months ago

I think OP is referring to a typical SRAM bit.

[-] Aceticon@lemmy.world 4 points 2 months ago* (last edited 2 months ago)

The memory is generally done by something called a capacitor (though there are more techniques) which just can hold a little electrical charge - roughly having an electrical charge means it's a 1, otherwise it's a 0.

Get 8 of those things and you have a byte.

It's generally easier to think of it as water: electrical lines are tubes moving water, capacitors are little containers that can have water (meaning bit = 1) or be empty (bit = 0), transistors are one-way water valves which are controlled by water (imagine they have a pressure button that opens the gate if there is water running in the tube passimg by that button, putting pressure on it).

From this simple basis you can actually create a lot of complexity by having a LOT of these things combined in weird ways.

Further, there's also a lot of complexity due to the Physics of the real world being less than perfect (for example, the "capacitors" leak water, so not only do you have to say that bit=1 is "water above a certain level" rathe than "full" - since as soon as it's filled it starts losing water - but you even have to check them once in a while and top up the ones which are supposed to be full before so kuch water leaks that the level has fallen below that treated as a "1" - this is actually how DRAM memory works, though with electric charge rather than water).

this post was submitted on 07 Jun 2024
741 points (97.2% liked)

Greentext

3714 readers
1430 users here now

This is a place to share greentexts and witness the confounding life of Anon. If you're new to the Greentext community, think of it as a sort of zoo with Anon as the main attraction.

Be warned:

If you find yourself getting angry (or god forbid, agreeing) with something Anon has said, you might be doing it wrong.

founded 10 months ago
MODERATORS