B
Beanut
Guest
I'm having a problem in modelsim with what I think is legitimate VHDL.
I want to take the absolute value of a signed 15 bit std_logic_vector
and assign the 14 bit result using the numeric_std package. Since the
top bit should be empty I dont want to waste a register on it. The
following command compiles, and synthesizes perfectly in Syncplicity.
absin <= std_logic_vector(abs(signed(SinP2)))(13 downto 0);
When I try to simulate Modelsim complains:
# ** Error: Cannot slice the result of a type conversion.
Any ideas?
Thanks,
Beanut
I want to take the absolute value of a signed 15 bit std_logic_vector
and assign the 14 bit result using the numeric_std package. Since the
top bit should be empty I dont want to waste a register on it. The
following command compiles, and synthesizes perfectly in Syncplicity.
absin <= std_logic_vector(abs(signed(SinP2)))(13 downto 0);
When I try to simulate Modelsim complains:
# ** Error: Cannot slice the result of a type conversion.
Any ideas?
Thanks,
Beanut