Posts

How Mermaid Draws Diagram Without Crossing Arrows?

Image
Why Do Diagram Tools Struggle with Crossing Arrows? The Sugiyama Framework | Untangling a graph | VLSI Connections | ~12 Min Read | One afternoon, while working through a straightforward CPU subsystem consisting of a CPU, GIC, interconnect, and several peripherals including UART, memory, and Ethernet, I decided to generate a datasheet showing the platform's interfaces and connectivity.The SystemC description was remarkably clear. The structure flowed naturally, and anyone reading the platform configuration could understand the architecture almost instantly. Then I asked a tool to draw it.What emerged was a diagram far more complicated than the design itself. Connections crossed where they didn't need to. Router outputs twisted around each other. A return path sliced diagonally across the page, cutting through unrelated connections. The architecture hadn't changed, but its visual representation had become harder to understand than the source de...

The Derivative That Saw It Coming

Image
The Derivative That Saw It Coming Calculus · CodePuz · ~10 min read Some of the slowest days of my career happened on a pre-silicon platform, watching an OS boot that refused to hurry up. Pre-silicon emulation is not fast. A single boot can take hours, sometimes the better part of a day, depending on the platform and what's being modeled underneath. So when a performance optimization landed and the question was simple, "did this actually help?", the honest answer was often "ask me tomorrow." Nobody wants to wait a full day to find out a change made things worse. What actually helped was tracking a progress metric over time and watching how fast it was climbing, not just where it stood. Two boots can look nearly identical an hour in. One of them is quietly pulling ahead, and the raw numbers won't tell you that story. The rate at which those numbers are changing will. That rate has a name. It's a derivative. And o...