You are on page 1of 1

begin header

MultiplexorActo1;
end header

begin definition
device gal22v10;
inputs A0=1, A1=2, B0=3, B1=4, SA=5, SB=6, SC=7;
outputs(com) ZA=14, ZB=15, ZC=16, ZD=17, ZE=18;
end definition

begin equation
S0D0=A0$B0;
CS0=A0*B0;
PS0=/A0*B0;
S1=(A1$B1)$CS0;
D1=(A1$B1)$PS0;
CS1=CS0*(A1$B1)+(A1*B1);
PS1=PS0*/(A1$B1)+(/A1*B1);
SUMA=/SA*/SB*/SC;
RESTA=/SA*/SB*SC;
AND=/SA*SB*/SC;
OR=/SA*SB*SC;
XOR=SA*/SB*SC;
NOT=/SA*SB*/SC;
ZA=(SUMA*CS1)+(RESTA*PS1);
ZB=(SUMA*S1)+(RESTA*D1);
ZC=(SUM2A*S0D0)+(RESTA*S0D0);
ZD=(AND*(A1*B1))+(OR*(A1+B1))+(XOR*(A1$B1))+(NOT*(/A1));
ZE=(AND*(A0*B0))+(OR*(A0+B0))+(XOR*(A0$B0))+(NOT*(/A0));
end equation

You might also like