URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 384 |
package Discr10 is
|
package Discr10 is
|
|
|
subtype Index is Natural range 0 .. 150;
|
subtype Index is Natural range 0 .. 150;
|
|
|
type List is array (Index range <>) of Integer;
|
type List is array (Index range <>) of Integer;
|
|
|
type R (D1 : Boolean := True; D2 : Boolean := False; D3 : Index := 0) is
|
type R (D1 : Boolean := True; D2 : Boolean := False; D3 : Index := 0) is
|
record
|
record
|
case D2 is
|
case D2 is
|
when True =>
|
when True =>
|
L : List (1 .. D3);
|
L : List (1 .. D3);
|
case D1 is
|
case D1 is
|
when True => I : Integer;
|
when True => I : Integer;
|
when False => null;
|
when False => null;
|
end case;
|
end case;
|
when False =>
|
when False =>
|
null;
|
null;
|
end case;
|
end case;
|
end record;
|
end record;
|
|
|
function Get (X : R) return R;
|
function Get (X : R) return R;
|
|
|
end Discr10;
|
end Discr10;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.