diff --git a/dataflow_neuro/registers.act b/dataflow_neuro/registers.act index 856f20e..5522717 100644 --- a/dataflow_neuro/registers.act +++ b/dataflow_neuro/registers.act @@ -83,9 +83,9 @@ defproc register_rw (avMx1of2<1+log_nw+wl> in; d1of data[2<> pin_idx; // Get binary digit of integer i, column j [_bitval = 1 -> - atree[_word_idx].in[pin_idx] = in.d.d[pin_idx+1].t; + atree[_word_idx].in[pin_idx] = in.d.d[pin_idx+wl].t; [] _bitval = 0 -> - atree[_word_idx].in[pin_idx] = in.d.d[pin_idx+1].f; + atree[_word_idx].in[pin_idx] = in.d.d[pin_idx+wl].f; []_bitval >= 2 -> {false : "fuck"}; ] ) @@ -98,15 +98,7 @@ defproc register_rw (avMx1of2<1+log_nw+wl> in; d1of data[2<