URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 338 |
package Renaming4 is
|
package Renaming4 is
|
|
|
type Big_Array is array (Natural range <>) of Integer;
|
type Big_Array is array (Natural range <>) of Integer;
|
|
|
subtype Index is Natural range 1..4;
|
subtype Index is Natural range 1..4;
|
subtype My_Array is Big_Array(Index);
|
subtype My_Array is Big_Array(Index);
|
|
|
A : constant My_Array := (1, 2, 3, 4);
|
A : constant My_Array := (1, 2, 3, 4);
|
|
|
subtype Small is Index range 1..2;
|
subtype Small is Index range 1..2;
|
subtype Small_Array is Big_Array(Small);
|
subtype Small_Array is Big_Array(Small);
|
|
|
B : Small_Array renames A(Index);
|
B : Small_Array renames A(Index);
|
|
|
end Renaming4;
|
end Renaming4;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.