fixed bug in append and demux
This commit is contained in:
parent
daa5e9ca22
commit
c31248ef34
|
@ -798,7 +798,7 @@ namespace tmpl {
|
|||
{
|
||||
{ N >= 0 : "What?" };
|
||||
{ NVAL >= 0 : "What?" };
|
||||
{ NVAL < 1<<VAL : "VAL too big!" };
|
||||
{ VAL < 1<<NVAL : "VAL too big!" };
|
||||
|
||||
// valid tree
|
||||
vtree<N> in_val(.supply = supply);
|
||||
|
@ -873,13 +873,13 @@ defproc slice_data(avMx1of2<N> in; avMx1of2<std::min(N1,N)-std::max(N0,0)> out;
|
|||
in.a = demux.in.a;
|
||||
|
||||
|
||||
(i:0..CONDITION_BIT:
|
||||
(i:0..CONDITION_BIT-1:
|
||||
in.d.d[i].f = demux.in.d.d[i].f;
|
||||
in.d.d[i].t = demux.in.d.d[i].t;)
|
||||
|
||||
(i:CONDITION_BIT..N-1:
|
||||
in.d.d[i].f = demux.in.d.d[i].f;
|
||||
in.d.d[i].t = demux.in.d.d[i].t;)
|
||||
(i:CONDITION_BIT+1..N:
|
||||
in.d.d[i].f = demux.in.d.d[i-1].f;
|
||||
in.d.d[i].t = demux.in.d.d[i-1].t;)
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue