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 384 |
-- { dg-do compile }
|
-- { dg-do compile }
|
|
|
with Discr16_G;
|
with Discr16_G;
|
with Discr16_Cont; use Discr16_Cont;
|
with Discr16_Cont; use Discr16_Cont;
|
|
|
procedure Discr16 is
|
procedure Discr16 is
|
|
|
generic
|
generic
|
type T is (<>);
|
type T is (<>);
|
function MAX_ADD_G(X : T; I : INTEGER) return T;
|
function MAX_ADD_G(X : T; I : INTEGER) return T;
|
|
|
function MAX_ADD_G(X : T; I : INTEGER) return T is
|
function MAX_ADD_G(X : T; I : INTEGER) return T is
|
begin
|
begin
|
return T'val(T'pos(X) + LONG_INTEGER(I));
|
return T'val(T'pos(X) + LONG_INTEGER(I));
|
end;
|
end;
|
|
|
function MAX_ADD is new MAX_ADD_G(ES6A);
|
function MAX_ADD is new MAX_ADD_G(ES6A);
|
|
|
package P is new Discr16_G(ES6A, MAX_ADD);
|
package P is new Discr16_G(ES6A, MAX_ADD);
|
|
|
begin
|
begin
|
null;
|
null;
|
end;
|
end;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.