Re: [myhdl-list] Modules interface information
Brought to you by:
jandecaluwe
From: Günter D. <dan...@we...> - 2011-05-05 14:02:16
|
Am 05.05.2011 15:45, schrieb Oscar Diaz: ... > Another point in favor with my colleagues. However there are some > cases when you need to pass an explicit parameter, i.e. a constant > that must be different for each instances of the same module. > Yes, and I think you can do distinguish that with coding style. Have a look at the following example: http://myhdl.org/doku.php/projects:rounding#rtl_implementation You should be able to just determine from the interface what is a signal and what is a parameter. If not, the doc string will tell you for sure. BTW, I did not follow in that example what I was telling you earlier about inferring the bit width from the input signal. Cheers, Guenter |