A
ALuPin@web.de
Guest
Hi newsgroup,
I have the following piece of code:
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
....
subtype file_element IS std_logic_vector(7 downto 0);
type header_array IS array(53 downto 0) of file_element;
signal header : header_array;
process(..)
variable next_vector : bit_vector (0 DOWNTO 0);
variable index : integer := 0;
begin
header(index) <= conv_std_logic_vector(bit'pos(next_vector(0)), 8);
end process;
How do I have to code "header(index) <= ..." when using the library
"ieee.numeric_std.all" ?
Thank you for your opinion.
Rgds
I have the following piece of code:
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
....
subtype file_element IS std_logic_vector(7 downto 0);
type header_array IS array(53 downto 0) of file_element;
signal header : header_array;
process(..)
variable next_vector : bit_vector (0 DOWNTO 0);
variable index : integer := 0;
begin
header(index) <= conv_std_logic_vector(bit'pos(next_vector(0)), 8);
end process;
How do I have to code "header(index) <= ..." when using the library
"ieee.numeric_std.all" ?
Thank you for your opinion.
Rgds