41 lines
818 B
Text
41 lines
818 B
Text
|
#/\---Insert mux21 ---
|
||
|
DEF MUX41
|
||
|
PORT IN I0
|
||
|
PORT IN I1
|
||
|
PORT IN I2
|
||
|
PORT IN I3
|
||
|
PORT IN S<1:0>
|
||
|
PORT OUT Z
|
||
|
|
||
|
NET A1
|
||
|
NET B1
|
||
|
NET C1
|
||
|
NET Z1
|
||
|
|
||
|
NET B2
|
||
|
NET C2
|
||
|
NET Z2
|
||
|
|
||
|
NET A3
|
||
|
NET B3
|
||
|
NET C3
|
||
|
|
||
|
#/\---INST MUX0 MUX21 I0 I1 S<0> A
|
||
|
INST NAND11 NAND S<0> S<0> A1
|
||
|
INST NAND12 NAND S<0> I1 B1
|
||
|
INST NAND13 NAND I0 A1 C1
|
||
|
INST NAND14 NAND B1 C1 Z1
|
||
|
|
||
|
#/\---INST MUX1 MUX21 I2 I3 S<0> B
|
||
|
#/\---INST NAND1 NAND S<0> S<0> A2 kommt von MUX0
|
||
|
INST NAND22 NAND S<0> I3 B2
|
||
|
INST NAND23 NAND I2 A1 C2
|
||
|
INST NAND24 NAND B2 C2 Z2
|
||
|
|
||
|
#/\---INST MUX2 MUX21 A B S<1> Z
|
||
|
INST NAND31 NAND S<1> S<1> A3
|
||
|
INST NAND32 NAND S<1> Z2 B3
|
||
|
INST NAND33 NAND Z1 A3 C3
|
||
|
INST NAND34 NAND B3 C3 Z
|
||
|
ENDDEF
|