M
Massi
Guest
Hi all,
little question for you:
i've this code
BINOUT <= "1111111111111111" when BININ >= "1111111111110000" and BININ <=
"0000000000001000" else
(it's an example)
how can i tell VHDL to consider that "1111...." a negative number and not a
positive one?
I tried with signed("11111....") but i get an error..
I'd like to avoid local vars because the lookup table is very big..
Thanks..
libraries loaded are
library IEEE;
use IEEE.std_logic_1164.all;
use ieee.std_logic_signed.all;
use ieee.std_logic_arith.all;
and the error is
Type conversion (to signed) can not have string literal operand.
bye
little question for you:
i've this code
BINOUT <= "1111111111111111" when BININ >= "1111111111110000" and BININ <=
"0000000000001000" else
(it's an example)
how can i tell VHDL to consider that "1111...." a negative number and not a
positive one?
I tried with signed("11111....") but i get an error..
I'd like to avoid local vars because the lookup table is very big..
Thanks..
libraries loaded are
library IEEE;
use IEEE.std_logic_1164.all;
use ieee.std_logic_signed.all;
use ieee.std_logic_arith.all;
and the error is
Type conversion (to signed) can not have string literal operand.
bye