V
valentin tihomirov
Guest
I desided to define an integer constant in the package.
package PKG is
constant FLAG: Boolean := True;
constant WIDTH := FLAG ? N1 : UTILS.BITS_TO_FIT(N2);
end package;
architecture A of E is
signal S: std_logic_vector(PKG.WIDTH-1 downto 0);
The only bypass I see is to replace the constant with GET_WIDTH function.
package PKG is
constant FLAG: Boolean := True;
constant WIDTH := FLAG ? N1 : UTILS.BITS_TO_FIT(N2);
end package;
architecture A of E is
signal S: std_logic_vector(PKG.WIDTH-1 downto 0);
The only bypass I see is to replace the constant with GET_WIDTH function.