URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 338 |
package body Self is
|
package body Self is
|
function G (X : Integer) return Lim is
|
function G (X : Integer) return Lim is
|
begin
|
begin
|
return R : Lim := (Comp => X, others => <>);
|
return R : Lim := (Comp => X, others => <>);
|
end G;
|
end G;
|
|
|
procedure Change (X : in out Lim; Incr : Integer) is
|
procedure Change (X : in out Lim; Incr : Integer) is
|
begin
|
begin
|
X.Comp := X.Comp + Incr;
|
X.Comp := X.Comp + Incr;
|
X.Self_Default.Comp := X.Comp + Incr;
|
X.Self_Default.Comp := X.Comp + Incr;
|
X.Self_Anon_Default.Comp := X.Comp + Incr;
|
X.Self_Anon_Default.Comp := X.Comp + Incr;
|
end Change;
|
end Change;
|
|
|
function Get (X : Lim) return Integer is
|
function Get (X : Lim) return Integer is
|
begin
|
begin
|
return X.Comp;
|
return X.Comp;
|
end;
|
end;
|
end Self;
|
end Self;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.