3 ms·
> Don't want the CPU waiting around for slow I/O? Simples - just add an interrupt line so the I/O peripheral can asynchronously tell the CPU when it's done. Wh
by bsder 7y ago
> Don't want the CPU waiting around for slow I/O? Simples - just add an interrupt line so the I/O peripheral can asynchronously tell the CPU when it's done.
Which we run through a synchronizer to bring back into the primary clock domain.
> Chop up the instruction stream into little pieces, the throw the bits at a set of ALU's execute them as fast as they can, doing it asynchronously, tracking the interdependencies on the fly.
Which are all so strongly wired to the primary clock that you can count the cycles.
> Oh, that causes cache conflicts - then just have all the CPU's snoop each other caches, asynchronously, and try to keep everything sane with the occasional bus lock.
Memory systems generally operate in a clock-forwarded manner, which has a fixed phase and frequency relative to the primary clock of the chip controlling the access. We are not willing to pay the synchronization penalty to cross from an unrelated clock domain under most circumstances.
The only times we are willing to be "asynchronous" are precisely those times when we don't care about performance.
- rstuart4133 7y ago> Which we run through a synchronizer to bring back into the primary clock domain. Of course we do that. To get speed out of one big synchronous domain we split it into a whole pile of little domains (each internally synchronous) that talk asynchronously. That allows us to keep the amount of asynchronousity to a minimum, and as you say doing otherwise would be stupid. That does not alter the fact that those domains all operate asynchronously with respect to each other. And you are not wrong is saying we sometimes go to great lengths to avoid asynchronous systems. The best example is possibly the GPU, which are massively parallel but all threads are in strict lock step. But notice GPU's have to execute at a fairly slow clock rate to pull that stunt off. An execution unit (ALU) in a modern CPU that executes mostly independently of the other execution units are about an order or magnitude faster. By the by there is a computer that operates on at absurdly slow 1ms "clock", yet is faster at most things it does than the biggest and best computer we can build today. "Clock" is in quotes because there is no clock, 1ms is about delay through one of elements. It gets it's speed through massive yet completely asynchronous parallelism. It is the human brain. Such is the power of being stupidly asynchronous.