Compare commits

..

No commits in common. "8060051da09b0842ed2f6935063d9aac32a70c0b" and "9f5bbc487d8fa6cbe362d662923b094cfd9db530" have entirely different histories.

View File

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