3 ms·
TL;DR: > The reality is that no digital logic design can work “without a clock”. There is always some physical process creating the inputs. These inputs must a
by AceJohnny2 9y ago
TL;DR:
> The reality is that no digital logic design can work “without a clock”. There is always some physical process creating the inputs. These inputs must all be valid at some start time – this time forms the first clock “tick” in their design. Likewise, the outputs are then required from those inputs some time later. The time when all the outputs are valid given for a given set of inputs forms the next “clock” in a “clockless” design. Perhaps the first clock “tick” is when the set the last switch on their board is adjusted and the last clock “tick” is when their eye reads the result. It doesn’t matter: there is a clock.
Put another way, combinatorial systems (the AND/OR/etc[1] logic gates that form the hardware logic of the chip) have a physical propagation delay. The time it takes for the input signals at a given state to propagate through the logic and produce a stable output.
Do not use the output signal before it is stable. That way lies glitches and the death of your design.
Clocks are used to tell your logic: "NOW your inputs are valid".
The deeper your combinatorial logic (the more gates in a given signal path), the longer the propagation delay. And the maximum propagation delay across your entire chip[2] determines your minimum clock period (and thus maximum clock speed)
There exist clockless designs, but they get exponentially more complicated as you add more signals and the logic gets deeper. In a way, clocks let you "compartmentalize" the logic, simplifying the design.
[1] What's the most widespread fundamental gate in the latest fab processes nowadays? Is it NAND?
[2] or at least clock domain
- marcosdumay 9y ago> but they get exponentially more complicated as you add more signals and the logic gets deeper Clockless designs usually use some other mechanism for marking ready signals. Many of those mechanisms compose linearly and can even interconnect better than clocked designs, because they don't need to care about clock domains.
- PhaseLockk 9y ago> What's the most widespread fundamental gate in the latest fab processes nowadays? Is it NAND? Typical standard cell libraries have hundreds of cells, including cells representing logic such as muxes, full adders, and other frequently occurring clusters of gates. Logic is mapped to these in the way the tool finds most optimal. So I don't think it's right to say that there is a fundamental gate in modern processes. Unless you are looking at it from the electrical perspective in which case the fundamental gate is the inverter.
- AceJohnny2 9y agoThanks! I'm probably confusing it with NAND vs NOR flash memory. It's been a while since I last talked about this with my HW Eng friends :)
- fooker 9y agoI finally understand why overclocking leads to an unstable system! Thank you.
- evancox10 9y agoAnd increasing the voltage reduces the propagation delay, letting you shorten the clock period (increase frequency). This only works so far, however, before you run into other problems.