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 |
-- { dg-do compile }
|
-- { dg-do compile }
|
-- { dg-options "-gnatws" }
|
-- { dg-options "-gnatws" }
|
|
|
package body volatile2 is
|
package body volatile2 is
|
|
|
procedure Copy is
|
procedure Copy is
|
R : Result;
|
R : Result;
|
M : Integer;
|
M : Integer;
|
subtype Get_Data is Command_Data (Get, R.Data'Last);
|
subtype Get_Data is Command_Data (Get, R.Data'Last);
|
begin
|
begin
|
declare
|
declare
|
G : Get_Data;
|
G : Get_Data;
|
for G'Address use M'Address;
|
for G'Address use M'Address;
|
begin
|
begin
|
for I in 1 .. R.Data'Last loop
|
for I in 1 .. R.Data'Last loop
|
G.Data (I) := (Time => R.Data (I).Time);
|
G.Data (I) := (Time => R.Data (I).Time);
|
end loop;
|
end loop;
|
end;
|
end;
|
end;
|
end;
|
|
|
end volatile2;
|
end volatile2;
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.