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 |
-- { dg-do compile }
|
-- { dg-do compile }
|
|
|
package Nested_Float_Packed is
|
package Nested_Float_Packed is
|
|
|
type Float_Type is record
|
type Float_Type is record
|
Value : Float;
|
Value : Float;
|
Valid : Boolean;
|
Valid : Boolean;
|
end record;
|
end record;
|
|
|
type Data_Type is record
|
type Data_Type is record
|
Data : Float_Type;
|
Data : Float_Type;
|
end record;
|
end record;
|
|
|
Default_Data : constant Data_Type :=
|
Default_Data : constant Data_Type :=
|
(Data => (Value => 1.0, Valid => False));
|
(Data => (Value => 1.0, Valid => False));
|
|
|
type Range_Type is (RV1, RV2, RV3);
|
type Range_Type is (RV1, RV2, RV3);
|
for Range_Type use (1, 2, 3);
|
for Range_Type use (1, 2, 3);
|
|
|
Data_Block : array (Range_Type)
|
Data_Block : array (Range_Type)
|
of Data_Type := (others => Default_Data);
|
of Data_Type := (others => Default_Data);
|
end;
|
end;
|
|
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.