Re: [myhdl-list] What logic is allowed inside an always_comb?
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2016-02-22 21:49:50
|
On 2/21/2016 8:59 PM, Ben Reynwar wrote: > 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, When you say it didn't "behave", do you mean it didn't simulate as expected or it didn't convert? Code like the above will not convert, what is convertible is covered in the manual: http://docs.myhdl.org/en/stable/manual/conversion.html#the-convertible-subset For simulation only, I believe it is the goal to support all constructs. But realistically this might be difficult as your example demonstrates(?). We will need to investigate your example and determine if it is an expected limitation or a bug. Regards, Chris |