Entity Bit4
Entity Bit4
end bit4_alu;
component bit4_add
end component;
component bit4_sub
end component;
component bit4_and
end component;
component bit4_or
end component;
component bit4_xor
end component;
component bit4_complement
end component;
component bit4_increment
end component;
component bit4_decrement
end component;
begin
process(A,B,S)
begin
case S is
when "000" =>
Y<=g1;
FLAG<=j1;
Y<=g2;
FLAG<=j2;
Y<=g3;
FLAG<=j3;
Y<=g4;
FLAG<=j4;
Y<=g5;
FLAG<=j5;
Y<=g6;
FLAG<=j6;
Y<=g7;
FLAG<=j7;
Y<=g8;
FLAG<=j8;
end case;
end process;
end Behavioral;