T
to_verilog
Guest
I'm a guy from Verilog and try to interpret the VHDL codes from other
VHDL guy who left the position. This is the problem I encounter:
LIGBRARY IEEE,STD;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.NUMERIC_STD.ALL;
.......
TYPE bufsize IS range 0 to 96;
SIGNAL temp : STD_LOGIC_VECTOR(0 TO 5);
............
ARCHITECTURE ..........
BEGIN
.........
PROCESS(,)
VARIABLE io : bufsize;
BEGIN
.......
temp <= to_stdlogicvector(natural(io/8),6);
.......
END PROCESS;
END;
When using ModelSim SE 5.5e to compile, the error message seem to tell
me that I'm not allowed to use to_stdlogicvector() in this way. Am I
using the wrong library or anything else? thanks for you help.
VHDL guy who left the position. This is the problem I encounter:
LIGBRARY IEEE,STD;
USE IEEE.STD_LOGIC_1164.ALL;
USE IEEE.NUMERIC_STD.ALL;
.......
TYPE bufsize IS range 0 to 96;
SIGNAL temp : STD_LOGIC_VECTOR(0 TO 5);
............
ARCHITECTURE ..........
BEGIN
.........
PROCESS(,)
VARIABLE io : bufsize;
BEGIN
.......
temp <= to_stdlogicvector(natural(io/8),6);
.......
END PROCESS;
END;
When using ModelSim SE 5.5e to compile, the error message seem to tell
me that I'm not allowed to use to_stdlogicvector() in this way. Am I
using the wrong library or anything else? thanks for you help.