Re: [myhdl-list] Using lists for repetitive signal routing
Brought to you by:
jandecaluwe
From: Jan C. <jen...@mu...> - 2014-01-19 12:30:51
|
On 06/01/14 17:53, Christopher Felton wrote: > On 1/5/2014 4:00 PM, Jan Coombs wrote: >> I am trying to connect a series of code blocks using >> lists. The boolean signal lists are working, but the >> intbv list seem not to. > This sounds to be a debug problem? I believe > you are describing a scenario similar to the > following: > > N = 4 > x = [Signal(intbv(ii)[32:]) for ii in range(N)] > g = [] > for xx,yy in zip(x[:-1],x[1:]): > g.append(m_something(xx,yy)) Thanks, you are right. I adapted the example above to match my code, and tested, but still couldn't see the bug. To keep things moving I did an ugly work around, until I eventually spotted this: di1hOutL = [Signal(intbv(3))[LenDiIndx:] for i in range(NumHndls+2)] I've now (at last) started to build table-driven tests for simpler modules, and am finding that writing the code is much faster. Jan Coombs -- |