Re: [myhdl-list] MEP - keep hierarchy in conversion
Brought to you by:
jandecaluwe
From: David H. <da...@ad...> - 2013-10-02 13:53:40
|
On Wed, Oct 2, 2013 at 7:33 AM, Jan Decaluwe <ja...@ja...> wrote: > <snip> > I am not discussing the concept now, but David's proposed method. > Let's make this practical. If I understand David's solution, > one would define a desired output partition by significant, > non-functional changes to the source code. > Nope, sorry but perhaps that is where the confusion lies. The only change required to group a set of logic into a partition is to add: with partition('a_name'): # put your usual logic here ... Suppose someone does this for his requirements, and later you > inherit that IP block. Now suppose you need a different kind of > partitioning - your only option would be to make significant, > non-functional changes (hopefully) to the source code. > If I decide I don't like how my partitioning came out, then I move around 1 or 2 "with ..." statements, and I don't spend time sorting out port declarations and other banal book keeping. (But I will glance at the output to verify the resulting port declarations are sane.) As Per pointed out, this provides a "decoupling the design hierarchy from the physical hierarchy". > Do you really want that? I did. So, I created it, and I'm not forcing this patch on anyone. I offered it in case anyone else finds it useful, just as I found myhdl useful. - David |