How to write nested fsm in Chisel like SpinalHDL does?

313 Views Asked by At

I've found that SpinalHDL has some powerful and elegant ways to describe a rather complicated fsm. I wonder if it's possible to construct a FSM lib (like SpinalHDL has done) in Chisel? p.s. I'm not very familiar with scala.‍️

1

There are 1 best solutions below

1
On

Chisel does not currently have a FSM library. We normally write state machines explicitly using a ChiselEnum for the state register. If you like the API that Spinal has, but need/want to use Chisel, it should not be to hard to make a similar API on top of Chisel. Chisel is designed to allow you to add your own favorite abstractions by adding your own Scala library code.