Omar Hegazy
Newbie level 2
error with my vhdl code
Hello,
i have the following error with my code:
# ** Error: C:/Modeltech_6.2e/examples/last_matching1.vhd(282): Cannot resolve indexed name as type std.standard.integer.
this is line 282:
w <= xaxis18(s);
where,
xaxis18 is an array of integer with length of 26 elements.
s is a pointer for the xaxis18 array and it is defined as integer signal with range 0 to 26.
w is an integer signal
signal w : integer :=0;
signal s : integer range 0 to 26 :=0;
type array_type31 is array (0 to 25) of integer;
signal xaxis18 : array_type31:=(others => 0);
I'm using these packages and library:
library ieee;
use ieee.std_logic_1164.all;
use IEEE.STD_LOGIC_UNSIGNED.all;
use std.textio.all;
use work.txt_util.all;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.numeric_std.ALL;
help please
Hello,
i have the following error with my code:
# ** Error: C:/Modeltech_6.2e/examples/last_matching1.vhd(282): Cannot resolve indexed name as type std.standard.integer.
this is line 282:
w <= xaxis18(s);
where,
xaxis18 is an array of integer with length of 26 elements.
s is a pointer for the xaxis18 array and it is defined as integer signal with range 0 to 26.
w is an integer signal
signal w : integer :=0;
signal s : integer range 0 to 26 :=0;
type array_type31 is array (0 to 25) of integer;
signal xaxis18 : array_type31:=(others => 0);
I'm using these packages and library:
library ieee;
use ieee.std_logic_1164.all;
use IEEE.STD_LOGIC_UNSIGNED.all;
use std.textio.all;
use work.txt_util.all;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.numeric_std.ALL;
help please
Last edited: