[myhdl-list] What logic is allowed inside an always_comb?
Brought to you by:
jandecaluwe
From: Ben R. <be...@re...> - 2016-02-22 03:25:12
|
Is there a summary of the kind of logic that one can use inside an @always_comb without confusing MyHDL's black parsing magic? I attempted to do: @always_comb def dostuff(): for i, o in ((i1, o1), (i2, o2)): o.next = i but it didn't behave, and looking into the implementation of always_comb I can see that the "for" loop is not compatible. It decides that i1, o1, i2 and o2 are all inputs and that there are no outputs. I had a look at the documentation but didn't see a summary anywhere of the kind of logic that I'm allowed to use here. Does such a summary exist? It's quite possible that I just read over it. Cheers, Ben |