diff --git a/dataflow_neuro/primitives.act b/dataflow_neuro/primitives.act index 331ceca..3a236ad 100644 --- a/dataflow_neuro/primitives.act +++ b/dataflow_neuro/primitives.act @@ -590,11 +590,11 @@ namespace tmpl { // N is the number of layers, // the longest layer having 2**N DLY elements export template - defproc delayprog (bool! y; bool? a, s[N]; power supply) + defproc delayprog (bool! out; bool? in, s[N]; power supply) { { N >= 0 : "What?" }; - { N < 9 : "Delay prog size is given in 2**N. Given N is too big." }; + { N < 10 : "Delay prog size is given in 2**N. Given N is ridiculous." }; AND2_X1 and2[N]; @@ -603,7 +603,7 @@ namespace tmpl { bool _a[N+1]; // Holds the input to each row - _a[0] = a; + _a[0] = in; pint i_delay; i_delay = 0; // Index of the last connected delay element @@ -628,7 +628,7 @@ namespace tmpl { _a[i+1] = mu2[i].y; ) - y = mu2[N-1].y; + out = mu2[N-1].y; // Connect everything to vdd/gnd