by whitegrape · 10y ago · 0 comments
Still a lot of tooling left but my FPGA tinkering became much more enjoyable when I stumbled across MyHDL.
Every time I see imperative language X adapted to RTL/VHDL/Verilog I want to slap someone.
They aren't the same, gates are a fundamentally different primitives. You shouldn't be using a language built around serial actions for something that's inherently parallel. You bring all sorts of baggage along that you don't need.
[edit] They don't even specify if their state machine generated is Mealy vs Moore. This is the stuff that you want control over and not abstracted away by some language that you don't know how it will synthesize.
Chisel and Clash are not any different.
Verilog may have for loops but they're largely used for simulation, they're expensive in terms of synthesized hardware(mostly toolchain/process dependent on how they synthesize) and can only be fixed size.
I've got no issue with Chisel, it's a DSL which I think is a good fit. What I'm arguing against is constructs that don't have a clear mapping to hardware representations which means you have to guess at what the compiler generates(see my Mealy vs Moore comment above).
See also: a MyHDL UART: https://github.com/andrecp/myhdl_simple_uart/blob/master/ser...