Open Gallagator opened 1 week ago
I added some minimal sequence support here: https://github.com/ucb-bar/chiseltest/pull/673
That PR mostly just does the groundwork so support the new Chisel Sequence API, but the only "sequences" it supports are boolean expressions. However, it should be possible to build on top of that. https://github.com/ekiwi/chisel-sequences has some ideas for "backend" implementations.
Do let me know if you would like to get more pointers.
SystemVerilog's sequence construct seems very useful. It might not be useful to entirely copy the syntax but I'd like to capture it's powerful semantics. Perhaps it would be sufficient to take in a predicate and a
Seq
of sequence objects. For example:Translating to a sequence like the folowing:
In turn, this could return a signal which represents the sequence and can be asserted. But really I don't know if this is a good direction to move in and this is just off the top of my head with little deep understanding of sequences. I'm mostly making this Issue to get a better idea of what can be done.