Re: [myhdl-list] List Of Constants
Brought to you by:
jandecaluwe
From: Christopher F. <chr...@gm...> - 2015-03-18 17:58:16
|
<snip> > > def m_initial_values(coef, coef_init): > assert isinstance(coef, list) > assert isinstance(coef_init, tuple) > N = len(coef) > @always_comb > def assign(): > for ii in range(N): > ival = coef_init[ii] > coef.next = ival > return assign > Of course it should be coef[ii].next = ival (should have written a test :) Regards, Chris |