URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 304 |
Rev 384 |
package Discr21_Pkg is
|
package Discr21_Pkg is
|
|
|
type Position is record
|
type Position is record
|
x,y,z : Float;
|
x,y,z : Float;
|
end record;
|
end record;
|
|
|
type Dim is (Two, Three);
|
type Dim is (Two, Three);
|
|
|
type VPosition (D: Dim := Three) is record
|
type VPosition (D: Dim := Three) is record
|
x, y : Float;
|
x, y : Float;
|
case D is
|
case D is
|
when Two => null;
|
when Two => null;
|
when Three => z : Float;
|
when Three => z : Float;
|
end case;
|
end case;
|
end record;
|
end record;
|
|
|
function To_Position (x, y, z : Float) return VPosition;
|
function To_Position (x, y, z : Float) return VPosition;
|
|
|
end Discr21_Pkg;
|
end Discr21_Pkg;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.