diff --git a/dataflow_neuro/primitives.act b/dataflow_neuro/primitives.act index 8cbb3da..8f1db88 100644 --- a/dataflow_neuro/primitives.act +++ b/dataflow_neuro/primitives.act @@ -798,7 +798,7 @@ namespace tmpl { { { N >= 0 : "What?" }; { NVAL >= 0 : "What?" }; - { NVAL < 1< in_val(.supply = supply); @@ -873,13 +873,13 @@ defproc slice_data(avMx1of2 in; avMx1of2 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;) }