OP, I think I see where your confusion comes from. Circuitry doesn't actually "know" anything about the function it's fulfilling. We can understand the output of computers simply because we have designed our output devices to represent that output in a manner our senses can understand.
How the computer can perform seemingly logical operations without understanding logic is simple, really.
Imagine you have a group of 10 people and a list of some number of yes/no questions, and you want to know what those people answer as a group, following some arbitrary criterion you've defined. So this is the setup: you read every question in your list, and each person presses one of two buttons each has in front of them. If the group as a whole answers "yes", a light turns on, otherwise it turns off.
Suppose that your criterion is "the group says 'yes' only if everyone says 'yes'". Then you could connect up the buttons as switches in a serial circuit. Current will only flow through when all the switches are closed.
If your criterion was instead that "the group says 'yes' when anyone says 'yes'", you could connect the switches in parallel.
The circuit doesn't understand anything about what it's doing. It's performing Boolean algebra simply because of how you've built it and how electricity works. It could also be possible without semiconductors, given buttons that could simultaneously change the state of a large number of switches, to construct a circuit that would turn the light on if a majority of the people said "yes". It would have to be a really complex circuit, though.
Semiconductor gates work basically the same, only instead of being built out of fingers that push buttons, you have special materials whose conductivity from terminal A to B changes depending on the current that's applied to terminal C.
They somehow had the idea in the first place and somehow, put little circuits into a small plastic casing, then somehow hooked into a circuit board and somehow tested it's functionality. With a monitor? they run electricity through this thing and by some miracle a 1 or 0 prints on the screen. |
The very earliest transistors (and vacuum tubes before that) were probably tested using oscilloscopes or even just simple light bulbs.
It is not metal and electricity in cased in that really weird hard plastic |
Silicon is technically a metalloid.