Re: [myhdl-list] hierarchy flattening on conversion to vhdl/verilog
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2009-05-12 16:12:00
|
Geoffrey Brown wrote: > I'm curious about the decision to elaborate designs before generation > of vhdl/verilog. The loss of hierarchy seems unnecessary and makes it > harder to relate the output and input. What was the thought process > leading to this decision ? About time to turn this into a FAQ :-) Conversion after elaboration was the insight I needed to make conversion a feasible project for me. The python interpreter does as much work as possible and adds information without which I don't think it is even possible. Moreover, a nice side effect is that elaboration give you a free ride on some aspects, for example the conversion restrictions only apply to code inside generators. Outside them, you can do what you want which makes some powerful applications. Look at this (extreme) example: http://www.myhdl.org/doku.php/cookbook:bitonic With conversion after elaboration, it is straightforward. Without it, the recursion would have to be mapped to Verilog - I'm pretty sure this isn't even possible. Jan -- Jan Decaluwe - Resources bvba - http://www.jandecaluwe.com Python as a HDL: http://www.myhdl.org VHDL development, the modern way: http://www.sigasi.com Analog design automation: http://www.mephisto-da.com World-class digital design: http://www.easics.com |