Re: [myhdl-list] A module that connects signals if names match
Brought to you by:
jandecaluwe
From: Ben R. <be...@re...> - 2016-02-25 16:30:58
|
Thanks. I have faint memories of running into something similar last time I played with MyHDL about a year ago, so it's possible it was me running into it last time! Is the use of interfaces still fairly uncommon in MyHDL, or are they pretty mainstream now? On Thu, Feb 25, 2016 at 8:14 AM, Christopher Felton <chr...@gm...> wrote: > On 2/25/2016 8:34 AM, Ben Reynwar wrote: > > Thanks for the help Chris. I've updated the code so that I have 3 input > > signals (i_a, i_b, i_c) and 2 output signals (o_b, o_c). > > > > The name mangling converts both i_b and i_c to i, and both o_b and o_c to > > o. How should I get around this issue? > > > > This seems to be a bug, I did an explicit version [1] > and and got similar results: > > def top_level_assign(intf_in, intf_out): > m1 = assign(intf_in.b, intf_out.b) > m2 = assign(intf_in.c, intf_out.c) > return m1, m2 > > module top_level_assign ( > b, > b, > a, > a, > intf_in_a > ); > > There might be an issue created for this already, I > need to check (vaguely recall discussing something > similar in the past). If not an issue should be > created. > > Regards, > Chris > > [1] https://gist.github.com/cfelton/81c680347dc6b2d5a458 > > > > > > ------------------------------------------------------------------------------ > 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 > _______________________________________________ > myhdl-list mailing list > myh...@li... > https://lists.sourceforge.net/lists/listinfo/myhdl-list > |