veriloggen
veriloggen copied to clipboard
Creating a combinational sequence
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?