Re: What logic is allowed inside an always_comb?

Christopher Felton <[email protected]> Mon, 22 Feb 2016 15:49:32 -0600
Newsgroups gmane.comp.python.myhdl
Message-ID <[email protected]>
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





------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140