veriloggen icon indicating copy to clipboard operation
veriloggen copied to clipboard

Creating a combinational sequence

Open kiteloopdesign opened this issue 3 years ago • 0 comments

I do not think at the moment is possible to create Seq objects made out of combinational logic, in the same way that it is possible with sequential logic, as it is very convenient.

Example of a Seq (sequential) construct:

    seq = Seq(m, 'seq', clk, rst)
    update_cond_value = m.TmpReg(3, initval=0)
    seq( update_cond_value(sw[0:3]) )
    count = m.TmpReg(2, initval=0)
    seq( count.inc() )
    seq.make_always()

Do you guys see a point for this construct?

kiteloopdesign avatar Jun 14 '21 18:06 kiteloopdesign