@@ -69,7 +69,8 @@ use ieee.numeric_std.all ;
69
69
70
70
package AlertLogPkg is
71
71
72
- subtype AlertLogIDType is integer ;
72
+ type AlertLogIDType is range integer 'low to integer 'high ;
73
+ type AlertLogIDVectorType is array (integer range <> ) of AlertLogIDType ;
73
74
type AlertType is (FAILURE , ERROR , WARNING ) ; -- NEVER
74
75
subtype AlertIndexType is AlertType range FAILURE to WARNING ;
75
76
type AlertCountType is array (AlertIndexType) of integer ;
@@ -458,12 +459,12 @@ package body AlertLogPkg is
458
459
459
460
-- ----------------------------------------------------------
460
461
procedure SetAlertLogName(Name : string ) ;
461
- procedure SetNumAlertLogIDs (NewNumAlertLogIDs : integer ) ;
462
+ procedure SetNumAlertLogIDs (NewNumAlertLogIDs : AlertLogIDType ) ;
462
463
impure function FindAlertLogID(Name : string ) return AlertLogIDType ;
463
464
impure function FindAlertLogID(Name : string ; ParentID : AlertLogIDType) return AlertLogIDType ;
464
465
impure function GetAlertLogID(Name : string ; ParentID : AlertLogIDType ; CreateHierarchy : Boolean ) return AlertLogIDType ;
465
466
impure function GetAlertLogParentID(AlertLogID : AlertLogIDType) return AlertLogIDType ;
466
- procedure Initialize(NewNumAlertLogIDs : integer := MIN_NUM_AL_IDS) ;
467
+ procedure Initialize(NewNumAlertLogIDs : AlertLogIDType := MIN_NUM_AL_IDS) ;
467
468
procedure Deallocate ;
468
469
469
470
-- ----------------------------------------------------------
@@ -1061,7 +1062,7 @@ package body AlertLogPkg is
1061
1062
-- ----------------------------------------------------------
1062
1063
-- PT Local
1063
1064
-- Construct initial data structure
1064
- procedure LocalInitialize(NewNumAlertLogIDs : integer := MIN_NUM_AL_IDS) is
1065
+ procedure LocalInitialize(NewNumAlertLogIDs : AlertLogIDType := MIN_NUM_AL_IDS) is
1065
1066
-- ----------------------------------------------------------
1066
1067
begin
1067
1068
if NumAllocatedAlertLogIDsVar /= 0 then
@@ -1091,7 +1092,7 @@ package body AlertLogPkg is
1091
1092
1092
1093
-- ----------------------------------------------------------
1093
1094
-- Construct initial data structure
1094
- procedure Initialize(NewNumAlertLogIDs : integer := MIN_NUM_AL_IDS) is
1095
+ procedure Initialize(NewNumAlertLogIDs : AlertLogIDType := MIN_NUM_AL_IDS) is
1095
1096
-- ----------------------------------------------------------
1096
1097
begin
1097
1098
LocalInitialize(NewNumAlertLogIDs) ;
@@ -1146,7 +1147,7 @@ package body AlertLogPkg is
1146
1147
1147
1148
-- ----------------------------------------------------------
1148
1149
-- PT Local.
1149
- procedure GrowAlertStructure (NewNumAlertLogIDs : integer ) is
1150
+ procedure GrowAlertStructure (NewNumAlertLogIDs : AlertLogIDType ) is
1150
1151
-- ----------------------------------------------------------
1151
1152
variable oldAlertLogPtr : AlertLogArrayPtrType ;
1152
1153
begin
@@ -1165,7 +1166,7 @@ package body AlertLogPkg is
1165
1166
-- Sets a AlertLogPtr to a particular size
1166
1167
-- Use for small bins to save space or large bins to
1167
1168
-- suppress the resize and copy as a CovBin autosizes.
1168
- procedure SetNumAlertLogIDs (NewNumAlertLogIDs : integer ) is
1169
+ procedure SetNumAlertLogIDs (NewNumAlertLogIDs : AlertLogIDType ) is
1169
1170
-- ----------------------------------------------------------
1170
1171
variable oldAlertLogPtr : AlertLogArrayPtrType ;
1171
1172
begin
0 commit comments