adjusted demux msb
This commit is contained in:
parent
5fbd435ca2
commit
daa5e9ca22
@ -886,21 +886,8 @@ defproc slice_data(avMx1of2<N> in; avMx1of2<std::min(N1,N)-std::max(N0,0)> out;
|
|||||||
export template<pint N>
|
export template<pint N>
|
||||||
defproc demux_bit_msb (avMx1of2<N+1> in; avMx1of2<N> out1; avMx1of2<N> out2; bool? reset_B; power supply)
|
defproc demux_bit_msb (avMx1of2<N+1> in; avMx1of2<N> out1; avMx1of2<N> out2; bool? reset_B; power supply)
|
||||||
{
|
{
|
||||||
demux<N> demux(.reset_B = reset_B, .out1=out1, .out2=out2);
|
demux_bit<N,N> demux(.in = in, .out1 = out1, .out2 = out2, .reset_B = reset_B, .out1=out1, .out2=out2);
|
||||||
|
|
||||||
in.d.d[N+1].f = demux.cond.d.d[0].f;
|
|
||||||
in.d.d[N+1].t = demux.cond.d.d[0].t;
|
|
||||||
|
|
||||||
in.v = demux.in.v;
|
|
||||||
in.a = demux.in.a;
|
|
||||||
|
|
||||||
|
|
||||||
(i:0..N:
|
|
||||||
in.d.d[i].f = demux.in.d.d[i].f;
|
|
||||||
in.d.d[i].t = demux.in.d.d[i].t;)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user