logoalt Hacker News

Visualizing CPU Pipelining (2024)

85 pointsby flipacholasyesterday at 6:26 PM10 commentsview on HN

Comments

inetknghtyesterday at 7:56 PM

The best presentation I've seen about CPU performance related to pipelining, branch prediction, and speculative execution was Chandler Carruth's "Going Nowhere Faster" presentation at CppCon 2017 [0]. I do recommend watching the whole presentation, but if you watch nothing else then just watch the 5 minutes or so from the linked timestamp.

[0]: https://youtu.be/2EWejmkKlxs?t=2511

show 1 reply
smallpipeyesterday at 9:32 PM

CPUs haven't worked like that in anything but a microcontroller for half a century

show 2 replies
risingedgeyesterday at 8:11 PM

If anyone is interested, at https://sonic-rv.ics.jku.at/ we built an educational platform for web-based simulation and visualization of RISC-V processor architectures.

Our pipeline visualization is reconstructed from real RTL traces (you can run your on programs which are simulated using GHDL).

Under examples you can find some different architectures based on the Harris&Harris book on computer architecture.

empiricusyesterday at 7:36 PM

Maybe it's just me, but the visualizations do not help me at all.

show 1 reply
jhallenworldyesterday at 8:48 PM

Now do a dynamic scheduling out of order engine with renaming, 20 pipes, speculative execution and hundreds of instructions in flight. I guess you could make a multi-person game for this.