Cannot compile with pipeline component: "ERROR: Static cast is only supported in SystemVerilog mode."

Trying to use button conditioner and the Yosys keeps throwing an error at the pipeline component. I created a new project and even with nothing else in it but the Io base and the pipeline component it throws the same error so I don’t see how it could be anything I’m doing.

Cu V2, Yosys toolchain

I’d consider this a bug in Alchitry Labs.

I made an issue for it Cannot compile with pipeline component: "ERROR: Static cast is only supported in SystemVerilog mode." · Issue #114 · alchitry/Alchitry-Labs-V2 · GitHub

In the meantime, if you edit line 55 in the pipeline module from out = pipe.q[$width(pipe.q)-1] to out = pipe.q[-1] it works.

1 Like