Re: [myhdl-list] always_comb from a change in Signal list does not get triggered
Brought to you by:
jandecaluwe
From: Günter D. <dan...@we...> - 2008-06-13 11:34:22
|
Thomas Traber wrote: > Günter Dannoritzer wrote: > ... >> >> I changed the code so that the pipe memory has only N-1 entries and dout >> being the Nth register, which worked fine. I just would like to know >> what I am doing wrong so that the always_comb gets not triggered anymore? > > I think this is a bug in myhdl. OK, that is good to know that I did not use it in a wrong way. > > BTW, some related comments/questions: > > > for i in downrange(N,1): > > pipe[i].next = pipe[i-1] > > The following should also work: > > for i in range(1,N): > pipe[i].next = pipe[i-1] > > It will not override, the current value because you write to the > next-attribute. Good point. Did not think about that. > > > In your simple example you could put the > dout.next = pipe[N-1] > inside the rtl1 generator so you don't need rtl2 (you probably know it, > your code might be a simplification). Yes, but that will delay dout by one clock cycle, which I did not want to have. But replacing pipe[N-1] by dout should make it work. Have a nice weekend too. Guenter |