Re: [myhdl-list] Two slightly awkward things about the MyHDL syntax
Brought to you by:
jandecaluwe
From: Jan D. <ja...@ja...> - 2010-07-21 08:50:52
|
Angel Ezquerra wrote: > Hi Jan, > > I feel that this is awkward for two reasons: > - It is weird that the port type specifications are done outside of > the block declaration. This is just how Python works. MyHDL is Python. Interfaces are parametrizable by default. > - If you change the block declaration you must also change the code > that calls the conversion function. Conversion is the last step in the process. It's very important to integrate in design flows, but it shouldn't dictate how MyHDL itself works. Moreover, you have the full Python mechanisms available to make it more convenient. Looking up names in namespaces for example. 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 |