diff --git a/dataflow_neuro/primitives.act b/dataflow_neuro/primitives.act index e492527..8cbb3da 100644 --- a/dataflow_neuro/primitives.act +++ b/dataflow_neuro/primitives.act @@ -886,21 +886,8 @@ defproc slice_data(avMx1of2 in; avMx1of2 out; export template defproc demux_bit_msb (avMx1of2 in; avMx1of2 out1; avMx1of2 out2; bool? reset_B; power supply) { - demux demux(.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;) + demux_bit demux(.in = in, .out1 = out1, .out2 = out2, .reset_B = reset_B, .out1=out1, .out2=out2); } - - }}