| 1 |
.PS |
| 2 |
# `ABlogixDPV.m4' |
| 3 |
log_init(svg_font(sans-serif,10.5bp__)) |
| 4 |
linewid = 0.4 |
| 5 |
|
| 6 |
# A more complex expression |
| 7 |
F: Autologix(And(Or(x3,x1,~x0),Nor(Or(x3,Not(x2),~x1,x0), |
| 8 |
And(x4,Or(x2,x1,~x0),Xor(x2,~x1))))) |
| 9 |
|
| 10 |
Loopover_(`v_', `"svg_it(v_)" wid 11bp__ at F.In`'v_ above', x0,x1,x2,x3,x4) |
| 11 |
"svg_it(Out)" ljust at F.Out |
| 12 |
"svg_tt(`Autologix(And(Or(x3,x1,~x0),')" \ |
| 13 |
wid 201bp__ with .w at F.sw+(0,-0.25) |
| 14 |
"svg_tt(`Nor(Or(x3,Not(x2),~x1,x0),And(x4,Or(x2,x1,~x0),')" \ |
| 15 |
wid 343bp__ with .w at last "".w+(65bp__,-16bp__) |
| 16 |
"svg_tt(`Xor(x2,~x1)))))')" \ |
| 17 |
wid 105bp__ with .w at last "".w+(0,-16bp__) |
| 18 |
# Inputs on the left with vert offset in L_units |
| 19 |
define(`Doff',LV;offset=25) |
| 20 |
G: Autologix(And(Or(x3,x1,~x0),Nor(Or(x3,Not(x2),~x1,x0), |
| 21 |
And(x4,Or(x2,x1,~x0),Xor(x2,~x1)))), |
| 22 |
Doff*L_unit) \ |
| 23 |
with .sw at F.Out+(0.2,-0.7) |
| 24 |
|
| 25 |
Loopover_(`v_', `"svg_it(v_)" wid 11pt__ at G.In`'v_ rjust ', x0,x1,x2,x3,x4) |
| 26 |
"svg_it(Out)" wid 22bp__ ljust at G.Out |
| 27 |
"svg_tt(`...,'Doff*L`'_unit))" at G.s+(0,-10pt__) |
| 28 |
|
| 29 |
# A more complex expression |
| 30 |
define(`Eoff',R) |
| 31 |
E: Autologix(And(Or(x3,x1,~x0),Nor(Or(x3,Not(x2),~x1,x0), |
| 32 |
And(x4,Or(x2,x1,~x0),Xor(x2,~x1)))), |
| 33 |
Eoff) \ |
| 34 |
with .nw at F.sw+(0,-1.5) |
| 35 |
|
| 36 |
Loopover_(`v_', `"svg_it(v_)" wid 11bp__ at E.In`'v_ above ', x0,x1,x2,x3,x4) |
| 37 |
"svg_it(Out)" ljust at E.Out |
| 38 |
"svg_tt(...`,'Eoff))" at E.s+(0,-10pt__) |
| 39 |
|
| 40 |
# Inputs on the left with vert offset in L_units |
| 41 |
define(`Foff',LRV;offset=17) |
| 42 |
D: Autologix(And(Or(x3,x1,~x0),Nor(Or(x3,Not(x2),~x1,x0), |
| 43 |
And(x4,Or(x2,x1,~x0),Xor(x2,~x1)))), |
| 44 |
Foff*L_unit) \ |
| 45 |
with .sw at E.Out1+(0.2,-0.5) |
| 46 |
|
| 47 |
Loopover_(`v_', `"svg_it(v_)" wid 11pt__ at D.In`'v_ rjust ', x0,x1,x2,x3,x4) |
| 48 |
"svg_it(Out)" ljust at D.Out |
| 49 |
"svg_tt(...`,'Foff*L`'_unit))" at D.s+(0,-10pt__) |
| 50 |
|
| 51 |
|
| 52 |
command "</g>" # end font |
| 53 |
.PE |