| 1 |
.PS |
| 2 |
# `ABlogix.m4' |
| 3 |
log_init |
| 4 |
|
| 5 |
linewid = 0.4 |
| 6 |
|
| 7 |
# A more complex expression |
| 8 |
F: Autologix(And(Or(x3,x1,~x0),Nor(Or(x3,Not(x2),~x1,x0), |
| 9 |
And(x4,Or(x2,x1,~x0),Xor(x2,~x1))))) |
| 10 |
|
| 11 |
Loopover_(`v_', `"$v_$" at F.In`'v_ above', x0,x1,x2,x3,x4) |
| 12 |
"\sl Out" ljust at F.Out |
| 13 |
`"{\tt \shortstack[l]{Autologix(And(Or(x3,x1,\~{}x0),\\ |
| 14 |
\quad Nor(Or(x3,Not(x2),\~{}x1,x0),And(x4,Or(x2,x1,\~{}x0),\ |
| 15 |
Xor(x2,\~{}x1)))))}}"' wid 440pt__ ht 20pt__ \ |
| 16 |
with .w at F.sw+(0,-0.25) |
| 17 |
# Inputs on the left with vert offset in L_units |
| 18 |
define(`Doff',LV;offset=25) |
| 19 |
G: Autologix(And(Or(x3,x1,~x0),Nor(Or(x3,Not(x2),~x1,x0), |
| 20 |
And(x4,Or(x2,x1,~x0),Xor(x2,~x1)))), |
| 21 |
Doff*L_unit) \ |
| 22 |
with .sw at F.Out+(0.2,-0.7) |
| 23 |
|
| 24 |
Loopover_(`v_', `"$v_$" wid 11pt__ at G.In`'v_ rjust ', x0,x1,x2,x3,x4) |
| 25 |
"\sl Out" ljust at G.Out |
| 26 |
"{\tt ...,Doff*L\_unit)}" at G.s+(0,-10pt__) |
| 27 |
|
| 28 |
# A more complex expression |
| 29 |
define(`Eoff',R) |
| 30 |
E: Autologix(And(Or(x3,x1,~x0),Nor(Or(x3,Not(x2),~x1,x0), |
| 31 |
And(x4,Or(x2,x1,~x0),Xor(x2,~x1)))), |
| 32 |
Eoff) \ |
| 33 |
with .nw at F.sw+(0,-1.35) |
| 34 |
|
| 35 |
Loopover_(`v_', `"$v_$" at E.In`'v_ above ', x0,x1,x2,x3,x4) |
| 36 |
"\sl Out" ljust at E.Out |
| 37 |
"{\tt ...,Eoff)}" at E.s+(0,-10pt__) |
| 38 |
|
| 39 |
# Inputs on the left with vert offset in L_units |
| 40 |
define(`Foff',LRV;offset=17.25) |
| 41 |
D: Autologix(And(Or(x3,x1,~x0),Nor(Or(x3,Not(x2),~x1,x0), |
| 42 |
And(x4,Or(x2,x1,~x0),Xor(x2,~x1)))), |
| 43 |
Foff*L_unit) \ |
| 44 |
with .sw at E.Out1+(0.2,-0.51) |
| 45 |
|
| 46 |
Loopover_(`v_', `"$v_$" wid 11pt__ at D.In`'v_ rjust ', x0,x1,x2,x3,x4) |
| 47 |
"\sl Out" ljust at D.Out |
| 48 |
"{\tt ...,Foff*L\_unit)}" at D.s+(0,-10pt__) |
| 49 |
|
| 50 |
|
| 51 |
.PE |