Generalizing Code
architecture alu_struct_arch of alu_struct is
component alu_mux
generic (
DATA_WIDTH: integer;
);
port ( . . . );
end component;
. . .
begin
inst_alu_mux : alu_mux
generic map(
DATA_WIDTH => 256 )
port map ( . . . );
. . .
end architecture;
Example:
Previous slide
Next slide
Back to first slide
View graphic version