H
hssig
Hi,
I have the following declaration:
type A is record
first : std_logic;
second : std_logic;
third : std_logic;
end record A;
type B is record
one : std_logic;
two : A;
end record B;
signal sig : B;
Now I want to check if all A record elements of signal sig are zero:
process
begin
.....
if sig.two = (sig.two'range => '0') then
-- error message:Attribute "range" prefix must be appropriate for
an array (object or type mark).
end if;
end process;
Is there some possibility to check the record elements ?
cheers,
hssig
I have the following declaration:
type A is record
first : std_logic;
second : std_logic;
third : std_logic;
end record A;
type B is record
one : std_logic;
two : A;
end record B;
signal sig : B;
Now I want to check if all A record elements of signal sig are zero:
process
begin
.....
if sig.two = (sig.two'range => '0') then
-- error message:Attribute "range" prefix must be appropriate for
an array (object or type mark).
end if;
end process;
Is there some possibility to check the record elements ?
cheers,
hssig