Punarva
Newbie level 2
i want to create a bit-matrix of 4x32 and want to output each row. I tried writing the below code,
type STD_LOGIC_MATRIX is array(0 to 3, 31 downto 0) of STD_LOGIC;
B0 : out STD_LOGIC(31 downto 0);
B1 : out STD_LOGIC(31 downto 0);
B2 : out STD_LOGIC(31 downto 0);
B3 : out STD_LOGIC(31 downto 0);
signal s : STD_LOGIC_MATRIX;
B0 <= s(0, 31 downto 0);
B1 <= s(0, 31 downto 0);
B2 <= s(0, 31 downto 0);
B3 <= s(0, 31 downto 0);
but its not working properly.
It says "parse error, unexpected DOWNTO, expecting COMMA or CLOSEPAR"
Is there any mistake in creating the datatype? or else accessing signal 's'?
type STD_LOGIC_MATRIX is array(0 to 3, 31 downto 0) of STD_LOGIC;
B0 : out STD_LOGIC(31 downto 0);
B1 : out STD_LOGIC(31 downto 0);
B2 : out STD_LOGIC(31 downto 0);
B3 : out STD_LOGIC(31 downto 0);
signal s : STD_LOGIC_MATRIX;
B0 <= s(0, 31 downto 0);
B1 <= s(0, 31 downto 0);
B2 <= s(0, 31 downto 0);
B3 <= s(0, 31 downto 0);
but its not working properly.
It says "parse error, unexpected DOWNTO, expecting COMMA or CLOSEPAR"
Is there any mistake in creating the datatype? or else accessing signal 's'?