by nomel · 2w ago · 0 comments
My favorite side quest that I definitely recommend. Physical parallelism is so fun to reason about.
I had the advantage of sitting next to a proper professional to bounces questions off of, so I was able to get an SPDIF decoder to work in about a week! It was a very interesting lesson in the costs of abstraction, and why you will never really find abstraction layers in hardware.
This is interesting to me, in the very little HDL I’ve done there were abstractions: you set up modules with inputs and outputs that provided a consistent interface despite complexity inside the model. Is this not what you mean by abstraction layer?
The rest of synthesizable Verilog is a pretty thin abstraction over muxes, d flip flops, and adders, and other basic gates.
That being said registers is a pretty big abstraction on top of what actual circuits on chips look like so turtles all the way down right.
That's literally the exact opposite of my experience with Verilog! The experience of using it feels farther away from the actual hardware than Python does!
From the compiler construction standpoint, it's grossly underspecified, to the point that our customers' designs were way more expressive than the spec.
And from the users' perspective, it's confusing, quite limited, and you end up having to resort to hacks to achieve what should be part of the language... Fortunately I can't remember any particularly bad examples, it's been 15 or so years since I left for greener pastures.
Still, I sometimes wonder, how much of HW design is influenced by the language decisions, these ugly hacks, and the emerging (System)Verilog design patterns? Could it be measurably better in a different world?
I think 25 years ago I would not have believed we would ever fix (La)TeX but here's Typst.
It's going to take a long time though. All IP vendors provide Verilog, often encrypted which only the commercial tools can legally support. And there's a very very long tail of SystemVerilog features that you need in ASICs - coverage, timing, etc.