TITLE "MULTIPLEXER 4 (8bit) in 1 ";

SUBDESIGN 4_8bitMUX1
(
  A[7..0], B[7..0], C[7..0], D[7..0], SEL_A, SEL_B : INPUT; 
  Y[7..0] : OUTPUT;
)
BEGIN
     IF SEL_B == 0 THEN 
        IF SEL_A == 0  THEN Y[] = A[];
			ELSE Y[]  = B[];
        END IF;     
     ELSE
        IF SEL_A == 0	THEN Y[] = C[];
			ELSE Y[]  = D[];
        END IF;     
     END IF;     
END;

