Electricity is electrons, and circuits (made up of logic gates) essentially guide electrons from one place to another using components such as transistors and capacitors to carry out logical operations.
A simple example of a logic gate is the AND operation which equates to true (ON) only when both inputs are true. This can easily be simulated using a component that only can hold a charge up to but no more than one of the signals. So say you have two signals that are connected to the component and each is 5V. If the component they are attached to can only hold 5V then the other 5V “goes through” such that we only see the output of 5V if and only if both signals are ON (true AND true = true).
A simple OR operation can effectively be two 10V signals and a component that still only holds 5V. If either signal is on then the extra will always go through and we see it as ON when either signal is one (true OR false = true, false OR true = true).
These are just examples of how the simplest logic gates work and there is more than one way to implement them, not just the way I described. Combining a bunch of logic gates can give you circuits, some of which can be designed in a way that allows flexible meaning to the operations and ultimately is programmable logic arrays and on to full blown processors (which are millions/billions of logic gates chained together for more complex calculations all using simple logic operations).
Latest Answers