G
guyanalog
Is it acceptable to use equations in the vector range description of a signal where the parameters are generics, or does this adversely affect synthesis?
What I have now:
generic(
BYTE_NUM : natural range 10 downto 1 := 3; -- # bytes (used somewhere else)
BYTE_BITS : natural range 10 downto 1 := 24 -- # bits for above bytes
);
signal vec_int : std_logic_vector(BYTE_BITS - 1 downto 0);
What I was thinking of changing it to (eliminates a generic):
generic(
BYTE_NUM : natural range 10 downto 1 := 3 -- # bytes (used somewhere else)
);
signal vec_int : std_logic_vector(8*BYTE_NUM - 1 downto 0);
Does the multiplier generate unwanted logic?
Thanks.
What I have now:
generic(
BYTE_NUM : natural range 10 downto 1 := 3; -- # bytes (used somewhere else)
BYTE_BITS : natural range 10 downto 1 := 24 -- # bits for above bytes
);
signal vec_int : std_logic_vector(BYTE_BITS - 1 downto 0);
What I was thinking of changing it to (eliminates a generic):
generic(
BYTE_NUM : natural range 10 downto 1 := 3 -- # bytes (used somewhere else)
);
signal vec_int : std_logic_vector(8*BYTE_NUM - 1 downto 0);
Does the multiplier generate unwanted logic?
Thanks.