changed delayprog to outin vs ya naming scheme

This commit is contained in:
alexmadison 2022-03-02 09:48:05 +01:00
parent 018b308f61
commit b456ea40fd
1 changed files with 4 additions and 4 deletions

View File

@ -590,11 +590,11 @@ namespace tmpl {
// N is the number of layers,
// the longest layer having 2**N DLY elements
export template<pint N>
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