Complex ALU

by

 

23 Oct 2006 (Updated )

A Simulator of Complex ALU

y=mux4(x0,x1,x2,x3,s0,s1,s0_n,s1_n)
%            Progetto ALU
% 
%       Programma elaborato da
%
% Giovanni DI CECCA & Virginia BELLINO
%      50 / 887           408 / 466
%
%       http://www.dicecca.net

% modulo base per la costruzione di multiplexer 4:1 o superiori
function y=mux4(x0,x1,x2,x3,s0,s1,s0_n,s1_n)
y0=x0&s0_n&s1_n;
y1=x1&s0&s1_n;
y2=x2&s0_n&s1;
y3=x3&s0&s1;
y=y0|y1|y2|y3;

Contact us