forked from OSVVM/OSVVM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CoveragePkg.vhd
9941 lines (8892 loc) · 438 KB
/
CoveragePkg.vhd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--
-- File Name: CoveragePkg.vhd
-- Design Unit Name: CoveragePkg
-- Revision: STANDARD VERSION
--
-- Maintainer: Jim Lewis email: jim@synthworks.com
-- Contributor(s):
-- Jim Lewis SynthWorks
-- Matthias Alles Creonic. Inspired GetMinBinVal, GetMinPoint, GetCov
-- Jerry Kaczynski Aldec. Inspired GetBin function
-- Sebastian Dunst Inspired GetBinName function
-- ... Aldec Worked on VendorCov functional coverage interface
--
-- Package Defines
-- Functional coverage modeling utilities and data structure
--
-- Developed by/for:
-- SynthWorks Design Inc.
-- VHDL Training Classes
-- 11898 SW 128th Ave. Tigard, Or 97223
-- http://www.SynthWorks.com
--
-- Revision History:
-- Date Version Description
-- 09/2024 2024.09 Updated reporting for integer'high and integer'low
-- 07/2024 2024.07 In Yaml reports, print ones with weight = 0 last
-- Added IsInitialized
-- 03/2024 2024.03 Default values for settings are now constants in OsvvmSettingsPkg.
-- Allows setting constants for all tests rather than using SetReportOptions.
-- 05/2023 2023.05 Updated InitSeed call in NewID to ensure a unique seed
-- 01/2023 2023.01 OSVVM_RAW_OUTPUT_DIRECTORY replaced REPORTS_DIRECTORY
-- 11/2022 2022.11 Updated default search to PRIVATE_NAME
-- 06/2022 2022.06 Add AlertIfNotCovered. Settings for YAML output.
-- 02/2022 2022.02 Updated NewID with ParentID, ReportMode, Search, PrintParent.
-- Supports searching for coverage models.
-- 01/2022 2022.01 Added DeallocateBins and TCover
-- Updated AddBins and AddCross s.t. can set AtLeast and Weight to 0
-- GenBin defaults AtLeast and Weight to 0. AddBins and AddCross to 1.
-- 12/2021 2021.12 Added ReadCovYaml
-- 11/2021 2021.11 Updated WriteCovYaml to write CovWeight first.
-- Updated GetCov calculation with PercentCov.
-- 10/2021 2021.10 Added WriteCovYaml to write out coverage as a YAML file
-- 08/2021 2021.08 Removed SetAlertLogID from singleton public interface - set instead by NewID
-- Moved SetName, SetMessage to deprecated
-- Moved AddBins, AddCross, GenBin, and GenCross with weight parameter to deprecated
-- 07/2021 2021.07 Updated for new data structure
-- 07/2020 2020.07 Adjusted NextPointModeType: Changed MIN to MODE_MINIMUM.
-- The preferred MINIMUM will not work in some tools
-- Added GetNext{Index, BinVal, Point}[(Mode => {RANDOM|INCREMENT|MODE_MINIMUM})]
-- Added NextPointModeType = (RANDOM, INCREMENT, MODE_MINIMUM)
-- Added SetNextPointMode[(Mode => {RANDOM|INCREMENT|MODE_MINIMUM})
-- 05/2020 2020.05 Updated LastIndex to also be set during ICover.
-- Updated deallocate to set all variables to their initial value
-- Added GetInc{Index, BinVal, Point}
-- Added GetNext{Index, BinVal, Point}[(Mode => {RANDOM|INCREMENT|MIN})]
-- Added NextPointModeType = (RANDOM, INCREMENT, MODE_MINIMUM)
-- Added SetNextPointMode[(Mode => {RANDOM|INCREMENT|MODE_MINIMUM})
-- Added to_std_logic(integer), to_boolean(integer) + vector forms
-- RandCov{Point|BinVal} is deprecated, renamed to GetRand{Point|BinVal}
-- 01/2020 2020.01 Updated Licenses to Apache
-- 04/2018 2018.04 Updated PercentCov calculation so AtLeast of <= 0 is correct
-- String' Fix for GHDL
-- Removed Deprecated procedure Increment - see TbUtilPkg as it moved there
-- 05/2017 2017.05 Updated WriteBin name printing
-- ClearCov (deprecates SetCovZero)
-- 11/2016 2016.11 Added VendorCovApiPkg and calls to bind it in.
-- 03/2016 2016.03 Added GetBinName(Index) to retrieve a bin's name
-- 01/2016 2016.01 Fixes for pure functions. Added bounds checking on ICover
-- 06/2015 2015.06 AddCross[CovMatrix?Type], Mirroring for WriteBin
-- 01/2015 2015.01 Use AlertLogPkg to count assertions and filter log messages
-- 12/2014 2014.07a Fix memory leak in deallocate. Removed initialied pointers which can lead to leaks.
-- 7/2014 2014.07 Bin Naming (for requirements tracking), WriteBin with Pass/Fail, GenBin[integer_vector]
-- 1/2014 2014.01 Merging of Cov Models, LastIndex
-- 5/2013 2013.05 Release with updated RandomPkg. Minimal changes.
-- 04/2013: 2013.04 Thresholding, CovTarget, Merging off by default,
-- 01/2012: 2.4 Added Merging of bins
-- 01/2012: 2.3 Added Function GetBin from Jerry K. Made write for RangeArrayType visible
-- 12/2011: 2.2b Fixed minor inconsistencies on interface declarations.
-- 11/2011: 2.2a Changed constants ALL_RANGE, ZERO_BIN, and ONE_BIN to have a 1 index
-- 07/2011: 2.2 Added randomization with coverage goals (AtLeast), weight, and percentage thresholds
-- 06/2011: 2.1 Removed signal based coverage modeling
-- 04/2011: 2.0 Added protected type based data structure: CovPType
-- 02/2011: 1.1 Added GetMinCov, GetMaxCov, CountCovHoles, GetCovHole
-- 02/2011: 1.0 Changed CoverBinType to facilitage long term support of cross coverage
-- 09/2010 Release in SynthWorks' VHDL Testbenches and Verification classes
-- 06/2010: 0.1 Initial revision
--
--
-- Development Notes:
-- The coverage procedures are named ICover to avoid conflicts with
-- future language changes which may add cover as a keyword
-- Procedure WriteBin writes each CovBin on a separate line, as such
-- it was inappropriate to overload either textio write or to_string
-- In the notes VHDL-2008 notes refers to
-- composites with unconstrained elements
--
--
-- This file is part of OSVVM.
--
-- Copyright (c) 2010 - 2024 by SynthWorks Design Inc.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- https://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
library ieee ;
use ieee.std_logic_1164.all ;
use ieee.numeric_std.all ;
use ieee.math_real.all ;
use std.textio.all ;
use work.IfElsePkg.all ;
use work.OsvvmScriptSettingsPkg.all ;
use work.OsvvmSettingsPkg.all ;
use work.TextUtilPkg.all ;
use work.ResolutionPkg.all ;
use work.TranscriptPkg.all ;
use work.AlertLogPkg.all ;
use work.RandomBasePkg.all ;
use work.RandomProcedurePkg.all ;
use work.RandomPkg.all ;
use work.NamePkg.all ;
use work.NameStorePkg.all ;
use work.MessageListPkg.all ;
use work.OsvvmGlobalPkg.all ;
use work.VendorCovApiPkg.all ;
use work.LanguageSupport2019Pkg.all ;
package CoveragePkg is
type CoverageIDType is record
ID : integer_max ;
end record CoverageIDType ;
constant COVERAGE_ID_UNINITIALZED : CoverageIdType := (ID => integer'left) ;
type CoverageIDArrayType is array (integer range <>) of CoverageIDType ;
-- Merged the two constants in AlertLogPkg constant OSVVM_COVERAGE_ALERTLOG_ID : AlertLogIDType := OSVVM_COV_ALERTLOG_ID ;
-- CovPType allocates bins that are multiples of MIN_NUM_BINS
constant MIN_NUM_BINS : integer := 2**7 ; -- power of 2
type RangeType is record
min : integer ;
max : integer ;
end record ;
type RangeArrayType is array (integer range <>) of RangeType ;
constant ALL_RANGE : RangeArrayType := (1=>(Integer'left, Integer'right)) ;
--!! procedure write ( file f : text ; BinVal : RangeArrayType ) ;
procedure write ( variable buf : inout line ; constant BinVal : in RangeArrayType) ;
-- CovBinBaseType.action values.
-- Note that coverage counting depends on these values
constant COV_COUNT : integer := 1 ;
constant COV_IGNORE : integer := 0 ;
constant COV_ILLEGAL : integer := -1 ;
-- -- type OsvvmOptionsType is (OPT_DEFAULT, FALSE, TRUE) ;
-- alias OsvvmOptionsType is work.OsvvmGlobalPkg.OsvvmOptionsType ;
constant COV_OPT_INIT_PARM_DETECT : OsvvmOptionsType := OPT_INIT_PARM_DETECT ;
-- -- For backward compatibility. Don't add to other packages.
-- alias DISABLED is work.OsvvmGlobalPkg.DISABLED [return work.OsvvmGlobalPkg.OsvvmOptionsType ];
-- alias ENABLED is work.OsvvmGlobalPkg.ENABLED [return work.OsvvmGlobalPkg.OsvvmOptionsType ];
-- Deprecated
-- Used for easy manual entry. Order: min, max, action
-- Intentionally did not use a record to allow other input
-- formats in the future with VHDL-2008 unconstrained arrays
-- of unconstrained elements
-- type CovBinManualType is array (natural range <>) of integer_vector(0 to 2) ;
type CovBinBaseType is record
BinVal : RangeArrayType(1 to 1) ;
Action : integer ;
Count : integer ;
AtLeast : integer ;
Weight : integer ;
end record ;
type CovBinType is array (natural range <>) of CovBinBaseType ;
constant ALL_BIN : CovBinType := (0 => ( BinVal => ALL_RANGE, Action => COV_COUNT, Count => 0, AtLeast => 1, Weight => 1 )) ;
constant ALL_COUNT : CovBinType := (0 => ( BinVal => ALL_RANGE, Action => COV_COUNT, Count => 0, AtLeast => 1, Weight => 1 )) ;
constant ALL_ILLEGAL : CovBinType := (0 => ( BinVal => ALL_RANGE, Action => COV_ILLEGAL, Count => 0, AtLeast => 0, Weight => 0 )) ;
constant ALL_IGNORE : CovBinType := (0 => ( BinVal => ALL_RANGE, Action => COV_IGNORE, Count => 0, AtLeast => 0, Weight => 0 )) ;
constant ZERO_BIN : CovBinType := (0 => ( BinVal => (1=>(0,0)), Action => COV_COUNT, Count => 0, AtLeast => 1, Weight => 1 )) ;
constant ONE_BIN : CovBinType := (0 => ( BinVal => (1=>(1,1)), Action => COV_COUNT, Count => 0, AtLeast => 1, Weight => 1 )) ;
constant NULL_BIN : CovBinType(work.RandomBasePkg.NULL_RANGE_TYPE) := (others => ( BinVal => ALL_RANGE, Action => integer'high, Count => 0, AtLeast => integer'high, Weight => integer'high )) ;
type NextPointModeType is (RANDOM, INCREMENT, MODE_MINIMUM) ;
type CountModeType is (COUNT_FIRST, COUNT_ALL) ;
type IllegalModeType is (ILLEGAL_ON, ILLEGAL_FAILURE, ILLEGAL_OFF) ;
-- WeightModeType other than AT_LEAST or REMAIN is deprecated
type WeightModeType is (AT_LEAST, REMAIN, WEIGHT, REMAIN_EXP, REMAIN_SCALED, REMAIN_WEIGHT ) ;
-- In VHDL-2008 CovMatrix?BaseType and CovMatrix?Type will be subsumed
-- by CovBinBaseType and CovBinType with RangeArrayType as an unconstrained array.
type CovMatrix2BaseType is record
BinVal : RangeArrayType(1 to 2) ;
Action : integer ;
Count : integer ;
AtLeast : integer ;
Weight : integer ;
end record ;
type CovMatrix2Type is array (natural range <>) of CovMatrix2BaseType ;
type CovMatrix3BaseType is record
BinVal : RangeArrayType(1 to 3) ;
Action : integer ;
Count : integer ;
AtLeast : integer ;
Weight : integer ;
end record ;
type CovMatrix3Type is array (natural range <>) of CovMatrix3BaseType ;
type CovMatrix4BaseType is record
BinVal : RangeArrayType(1 to 4) ;
Action : integer ;
Count : integer ;
AtLeast : integer ;
Weight : integer ;
end record ;
type CovMatrix4Type is array (natural range <>) of CovMatrix4BaseType ;
type CovMatrix5BaseType is record
BinVal : RangeArrayType(1 to 5) ;
Action : integer ;
Count : integer ;
AtLeast : integer ;
Weight : integer ;
end record ;
type CovMatrix5Type is array (natural range <>) of CovMatrix5BaseType ;
type CovMatrix6BaseType is record
BinVal : RangeArrayType(1 to 6) ;
Action : integer ;
Count : integer ;
AtLeast : integer ;
Weight : integer ;
end record ;
type CovMatrix6Type is array (natural range <>) of CovMatrix6BaseType ;
type CovMatrix7BaseType is record
BinVal : RangeArrayType(1 to 7) ;
Action : integer ;
Count : integer ;
AtLeast : integer ;
Weight : integer ;
end record ;
type CovMatrix7Type is array (natural range <>) of CovMatrix7BaseType ;
type CovMatrix8BaseType is record
BinVal : RangeArrayType(1 to 8) ;
Action : integer ;
Count : integer ;
AtLeast : integer ;
Weight : integer ;
end record ;
type CovMatrix8Type is array (natural range <>) of CovMatrix8BaseType ;
type CovMatrix9BaseType is record
BinVal : RangeArrayType(1 to 9) ;
Action : integer ;
Count : integer ;
AtLeast : integer ;
Weight : integer ;
end record ;
type CovMatrix9Type is array (natural range <>) of CovMatrix9BaseType ;
------------------------------------------------------------ VendorCov
-- VendorCov Conversion for Vendor supported functional coverage modeling
function ToVendorCovBinVal (BinVal : RangeArrayType) return VendorCovRangeArrayType ;
------------------------------------------------------------
function ToMinPoint (A : RangeArrayType) return integer ;
function ToMinPoint (A : RangeArrayType) return integer_vector ;
-- BinVal to Minimum Point
------------------------------------------------------------
procedure ToRandPoint(
-- BinVal to Random Point
-- better as a function, however, inout not supported on functions
------------------------------------------------------------
variable RV : inout RandomPType ;
constant BinVal : in RangeArrayType ;
variable result : out integer
) ;
------------------------------------------------------------
procedure ToRandPoint(
-- BinVal to Random Point
------------------------------------------------------------
variable RV : inout RandomPType ;
constant BinVal : in RangeArrayType ;
variable result : out integer_vector
) ;
------------------------------------------------------------
impure function NewID (
Name : String ;
ParentID : AlertLogIDType := OSVVM_COVERAGE_ALERTLOG_ID ;
ReportMode : AlertLogReportModeType := ENABLED ;
Search : NameSearchType := PRIVATE_NAME ;
PrintParent : AlertLogPrintParentType := PRINT_NAME_AND_PARENT
) return CoverageIDType ;
------------------------------------------------------------
-- /////////////////////////////////////////
-- Coverage Global Settings Common to All Coverage Models
-- /////////////////////////////////////////
------------------------------------------------------------
procedure FileOpenWriteBin (FileName : string; OpenKind : File_Open_Kind ) ;
procedure FileCloseWriteBin ;
-- procedure WriteToCovFile (variable buf : inout line) ;
procedure PrintToCovFile(S : string) ;
------------------------------------------------------------
procedure SetReportOptions (
------------------------------------------------------------
WritePassFail : OsvvmOptionsType := COV_OPT_INIT_PARM_DETECT ;
WriteBinInfo : OsvvmOptionsType := COV_OPT_INIT_PARM_DETECT ;
WriteCount : OsvvmOptionsType := COV_OPT_INIT_PARM_DETECT ;
WriteAnyIllegal : OsvvmOptionsType := COV_OPT_INIT_PARM_DETECT ;
WritePrefix : string := OSVVM_STRING_INIT_PARM_DETECT ;
PassName : string := OSVVM_STRING_INIT_PARM_DETECT ;
FailName : string := OSVVM_STRING_INIT_PARM_DETECT
) ;
procedure ResetReportOptions ;
------------------------------------------------------------
-- /////////////////////////////////////////
-- Coverage Model Settings
-- /////////////////////////////////////////
------------------------------------------------------------
-- AlertLogID set by NewID
-- procedure SetAlertLogID (ID : CoverageIDType; A : AlertLogIDType) ;
-- procedure SetAlertLogID (ID : CoverageIDType; Name : string ; ParentID : AlertLogIDType := ALERTLOG_BASE_ID ; CreateHierarchy : Boolean := TRUE) ;
impure function GetAlertLogID (ID : CoverageIDType) return AlertLogIDType ;
------------------------------------------------------------
-- Name set by NewID
impure function GetName (ID : CoverageIDType) return String ;
impure function GetCovModelName (ID : CoverageIDType) return String ;
impure function GetNamePlus (ID : CoverageIDType; prefix, suffix : string) return String ;
procedure SetItemBinNames (
ID : CoverageIDType ;
Name1 : String ;
Name2, Name3, Name4, Name5,
Name6, Name7, Name8, Name9, Name10,
Name11, Name12, Name13, Name14, Name15,
Name16, Name17, Name18, Name19, Name20 : string := ""
) ;
alias SetFieldName is SetItemBinNames [CoverageIDType,
string, string, string, string, string, string, string, string, string, string,
string, string, string, string, string, string, string, string, string, string] ;
procedure SetCovTarget (ID : CoverageIDType; Percent : real) ;
impure function GetCovTarget (ID : CoverageIDType) return real ;
procedure SetThresholding (ID : CoverageIDType; A : boolean := TRUE ) ;
procedure SetCovThreshold (ID : CoverageIDType; Percent : real) ;
procedure SetMerging (ID : CoverageIDType; A : boolean := TRUE ) ;
procedure SetCountMode (ID : CoverageIDType; A : CountModeType) ;
procedure SetIllegalMode (ID : CoverageIDType; A : IllegalModeType) ;
procedure SetNextPointMode (ID : CoverageIDType; A : NextPointModeType) ;
--
-- SetWeightMode with a WeightMode other than AT_LEAST or REMAIN is deprecated
-- SetWeightMode with a WeightScale parameter is deprecated
procedure SetWeightMode (ID : CoverageIDType; WeightMode : WeightModeType; WeightScale : real := 1.0) ;
procedure SetCovWeight (ID : CoverageIDType; Weight : integer) ;
impure function GetCovWeight (ID : CoverageIDType) return integer ;
------------------------------------------------------------
-- Seeds are initialized by NewID.
procedure InitSeed (ID : CoverageIDType; S : string; UseNewSeedMethods : boolean := COVERAGE_USE_NEW_SEED_METHODS) ;
impure function InitSeed (ID : CoverageIDType; S : string; UseNewSeedMethods : boolean := COVERAGE_USE_NEW_SEED_METHODS ) return string ;
procedure InitSeed (ID : CoverageIDType; I : integer; UseNewSeedMethods : boolean := COVERAGE_USE_NEW_SEED_METHODS ) ;
------------------------------------------------------------
procedure SetSeed (ID : CoverageIDType; RandomSeedIn : RandomSeedType ) ;
impure function GetSeed (ID : CoverageIDType) return RandomSeedType ;
------------------------------------------------------------
-- /////////////////////////////////////////
-- Item / Cross Bin Creation and Destruction
-- /////////////////////////////////////////
------------------------------------------------------------
procedure SetBinSize (ID : CoverageIDType; NewNumBins : integer) ;
procedure Deallocate (ID : CoverageIDType) ;
procedure DeallocateBins (CoverID : CoverageIDType) ;
------------------------------------------------------------
procedure AddBins (
------------------------------------------------------------
ID : CoverageIDType ;
Name : String ;
AtLeast : integer ;
CovBin : CovBinType
) ;
procedure AddBins (ID : CoverageIDType; Name : String ; CovBin : CovBinType) ;
procedure AddBins (ID : CoverageIDType; AtLeast : integer ; CovBin : CovBinType ) ;
procedure AddBins (ID : CoverageIDType; CovBin : CovBinType ) ;
------------------------------------------------------------
procedure AddCross(
------------------------------------------------------------
ID : CoverageIDType ;
Name : string ;
AtLeast : integer ;
Bin1, Bin2 : CovBinType ;
Bin3, Bin4, Bin5, Bin6, Bin7, Bin8, Bin9, Bin10, Bin11, Bin12, Bin13,
Bin14, Bin15, Bin16, Bin17, Bin18, Bin19, Bin20 : CovBinType := NULL_BIN
) ;
------------------------------------------------------------
procedure AddCross(
------------------------------------------------------------
ID : CoverageIDType ;
Name : string ;
Bin1, Bin2 : CovBinType ;
Bin3, Bin4, Bin5, Bin6, Bin7, Bin8, Bin9, Bin10, Bin11, Bin12, Bin13,
Bin14, Bin15, Bin16, Bin17, Bin18, Bin19, Bin20 : CovBinType := NULL_BIN
) ;
------------------------------------------------------------
procedure AddCross(
------------------------------------------------------------
ID : CoverageIDType ;
AtLeast : integer ;
Bin1, Bin2 : CovBinType ;
Bin3, Bin4, Bin5, Bin6, Bin7, Bin8, Bin9, Bin10, Bin11, Bin12, Bin13,
Bin14, Bin15, Bin16, Bin17, Bin18, Bin19, Bin20 : CovBinType := NULL_BIN
) ;
------------------------------------------------------------
procedure AddCross(
------------------------------------------------------------
ID : CoverageIDType ;
Bin1, Bin2 : CovBinType ;
Bin3, Bin4, Bin5, Bin6, Bin7, Bin8, Bin9, Bin10, Bin11, Bin12, Bin13,
Bin14, Bin15, Bin16, Bin17, Bin18, Bin19, Bin20 : CovBinType := NULL_BIN
) ;
------------------------------------------------------------
-- AddCross for usage with constants created by GenCross
------------------------------------------------------------
procedure AddCross (ID : CoverageIDType; CovBin : CovMatrix2Type ; Name : String := "") ;
procedure AddCross (ID : CoverageIDType; CovBin : CovMatrix3Type ; Name : String := "") ;
procedure AddCross (ID : CoverageIDType; CovBin : CovMatrix4Type ; Name : String := "") ;
procedure AddCross (ID : CoverageIDType; CovBin : CovMatrix5Type ; Name : String := "") ;
procedure AddCross (ID : CoverageIDType; CovBin : CovMatrix6Type ; Name : String := "") ;
procedure AddCross (ID : CoverageIDType; CovBin : CovMatrix7Type ; Name : String := "") ;
procedure AddCross (ID : CoverageIDType; CovBin : CovMatrix8Type ; Name : String := "") ;
procedure AddCross (ID : CoverageIDType; CovBin : CovMatrix9Type ; Name : String := "") ;
------------------------------------------------------------
-- /////////////////////////////////////////
-- Recording and Clearing Coverage
-- /////////////////////////////////////////
------------------------------------------------------------
------------------------------------------------------------
procedure ICoverLast (ID : CoverageIDType) ;
procedure ICover (ID : CoverageIDType; CovPoint : integer_vector) ;
procedure ICover (ID : CoverageIDType; CovPoint : integer) ;
procedure TCover (ID : CoverageIDType; A : integer) ;
procedure ClearCov (ID : CoverageIDType) ;
------------------------------------------------------------
-- /////////////////////////////////////////
-- Coverage Information and Statistics
-- /////////////////////////////////////////
------------------------------------------------------------
------------------------------------------------------------
impure function IsBinCovered (ID : CoverageIDType ; BinIndex : integer ; PercentCov : real ) return boolean ;
impure function IsBinCovered (ID : CoverageIDType ; BinIndex : integer ) return boolean ;
impure function IsCovered (ID : CoverageIDType ; PercentCov : real ) return boolean ;
impure function IsCovered (ID : CoverageIDType) return boolean ;
impure function AllCovered (PercentCov : real ) return boolean ;
impure function AllCovered return boolean ;
impure function IsNotCovered (ID : CoverageIDType ; PercentCov : real ) return boolean ;
impure function IsNotCovered (ID : CoverageIDType) return boolean ;
impure function IsInitialized (ID : CoverageIDType) return boolean ;
------------------------------------------------------------
impure function GetItemCount (ID : CoverageIDType) return integer ;
impure function GetCov (ID : CoverageIDType; PercentCov : real ) return real ;
impure function GetCov (ID : CoverageIDType) return real ;
impure function GetTotalCovCount(ID : CoverageIDType; PercentCov : real ) return integer ;
impure function GetTotalCovCount(ID : CoverageIDType) return integer ;
impure function GetTotalCovGoal (ID : CoverageIDType; PercentCov : real ) return integer ;
impure function GetTotalCovGoal (ID : CoverageIDType) return integer ;
------------------------------------------------------------
impure function GetMinCov (ID : CoverageIDType) return real ;
impure function GetMinCount (ID : CoverageIDType) return integer ;
impure function GetMaxCov (ID : CoverageIDType) return real ;
impure function GetMaxCount (ID : CoverageIDType) return integer ;
------------------------------------------------------------
impure function CountCovHoles (ID : CoverageIDType; PercentCov : real ) return integer ;
impure function CountCovHoles (ID : CoverageIDType) return integer ;
------------------------------------------------------------
-- /////////////////////////////////////////
-- Generating Coverage Points, BinValues, and Indices
-- /////////////////////////////////////////
------------------------------------------------------------
-- Return Points
------------------------------------------------------------
-- to be replaced in VHDL-2019 by version that uses RandomSeed as an inout
impure function ToRandPoint (ID : CoverageIDType; BinVal : RangeArrayType ) return integer ;
impure function ToRandPoint (ID : CoverageIDType; BinVal : RangeArrayType ) return integer_vector ;
------------------------------------------------------------
-- Return Points
impure function GetPoint (ID : CoverageIDType; BinIndex : integer ) return integer ;
impure function GetPoint (ID : CoverageIDType; BinIndex : integer ) return integer_vector ;
impure function GetRandPoint (ID : CoverageIDType) return integer ;
impure function GetRandPoint (ID : CoverageIDType; PercentCov : real ) return integer ;
impure function GetRandPoint (ID : CoverageIDType) return integer_vector ;
impure function GetRandPoint (ID : CoverageIDType; PercentCov : real ) return integer_vector ;
impure function GetIncPoint (ID : CoverageIDType) return integer ;
impure function GetIncPoint (ID : CoverageIDType) return integer_vector ;
impure function GetMinPoint (ID : CoverageIDType) return integer ;
impure function GetMinPoint (ID : CoverageIDType) return integer_vector ;
impure function GetMaxPoint (ID : CoverageIDType) return integer ;
impure function GetMaxPoint (ID : CoverageIDType) return integer_vector ;
impure function GetNextPoint (ID : CoverageIDType; Mode : NextPointModeType) return integer ;
impure function GetNextPoint (ID : CoverageIDType; Mode : NextPointModeType) return integer_vector ;
impure function GetNextPoint (ID : CoverageIDType) return integer ;
impure function GetNextPoint (ID : CoverageIDType) return integer_vector ;
------------------------------------------------------------
-- deprecated, see GetRandPoint
impure function RandCovPoint (ID : CoverageIDType) return integer ;
impure function RandCovPoint (ID : CoverageIDType; PercentCov : real ) return integer ;
impure function RandCovPoint (ID : CoverageIDType) return integer_vector ;
impure function RandCovPoint (ID : CoverageIDType; PercentCov : real ) return integer_vector ;
------------------------------------------------------------
-- Return BinVals
impure function GetBinVal (ID : CoverageIDType; BinIndex : integer ) return RangeArrayType ;
impure function GetRandBinVal (ID : CoverageIDType; PercentCov : real ) return RangeArrayType ;
impure function GetRandBinVal (ID : CoverageIDType) return RangeArrayType ;
impure function GetLastBinVal (ID : CoverageIDType) return RangeArrayType ;
impure function GetIncBinVal (ID : CoverageIDType) return RangeArrayType ;
impure function GetMinBinVal (ID : CoverageIDType) return RangeArrayType ;
impure function GetMaxBinVal (ID : CoverageIDType) return RangeArrayType ;
impure function GetNextBinVal (ID : CoverageIDType; Mode : NextPointModeType) return RangeArrayType ;
impure function GetNextBinVal (ID : CoverageIDType) return RangeArrayType ;
impure function GetHoleBinVal (ID : CoverageIDType; ReqHoleNum : integer ; PercentCov : real ) return RangeArrayType ;
impure function GetHoleBinVal (ID : CoverageIDType; PercentCov : real ) return RangeArrayType ;
impure function GetHoleBinVal (ID : CoverageIDType; ReqHoleNum : integer := 1 ) return RangeArrayType ;
-- deprecated RandCovBinVal, see GetRandBinVal
impure function RandCovBinVal (ID : CoverageIDType; PercentCov : real ) return RangeArrayType ;
impure function RandCovBinVal (ID : CoverageIDType) return RangeArrayType ;
-- Return Index Values
------------------------------------------------------------
impure function GetNumBins (ID : CoverageIDType) return integer ;
impure function GetRandIndex (ID : CoverageIDType; CovTargetPercent : real ) return integer ;
impure function GetRandIndex (ID : CoverageIDType) return integer ;
impure function GetLastIndex (ID : CoverageIDType) return integer ;
impure function GetIncIndex (ID : CoverageIDType) return integer ;
impure function GetMinIndex (ID : CoverageIDType) return integer ;
impure function GetMaxIndex (ID : CoverageIDType) return integer ;
impure function GetNextIndex (ID : CoverageIDType; Mode : NextPointModeType) return integer ;
impure function GetNextIndex (ID : CoverageIDType) return integer ;
------------------------------------------------------------
-- /////////////////////////////////////////
-- Accessing Coverage Bin Information
-- /////////////////////////////////////////
------------------------------------------------------------
-- ------------------------------------------------------------
-- Intended as a stand in until we get a more general GetBin
impure function GetBinInfo (ID : CoverageIDType; BinIndex : integer ) return CovBinBaseType ;
-- ------------------------------------------------------------
-- Intended as a stand in until we get a more general GetBin
impure function GetBinValLength (ID : CoverageIDType) return integer ;
-- ------------------------------------------------------------
-- Eventually the multiple GetBin functions will be replaced by a
-- a single GetBin that returns CovBinBaseType with BinVal as an
-- unconstrained element
impure function GetBin (ID : CoverageIDType; BinIndex : integer ) return CovBinBaseType ;
impure function GetBin (ID : CoverageIDType; BinIndex : integer ) return CovMatrix2BaseType ;
impure function GetBin (ID : CoverageIDType; BinIndex : integer ) return CovMatrix3BaseType ;
impure function GetBin (ID : CoverageIDType; BinIndex : integer ) return CovMatrix4BaseType ;
impure function GetBin (ID : CoverageIDType; BinIndex : integer ) return CovMatrix5BaseType ;
impure function GetBin (ID : CoverageIDType; BinIndex : integer ) return CovMatrix6BaseType ;
impure function GetBin (ID : CoverageIDType; BinIndex : integer ) return CovMatrix7BaseType ;
impure function GetBin (ID : CoverageIDType; BinIndex : integer ) return CovMatrix8BaseType ;
impure function GetBin (ID : CoverageIDType; BinIndex : integer ) return CovMatrix9BaseType ;
-- ------------------------------------------------------------
impure function GetBinName (ID : CoverageIDType; BinIndex : integer; DefaultName : string := "" ) return string ;
------------------------------------------------------------
impure function GetErrorCount (ID : CoverageIDType) return integer ;
------------------------------------------------------------
-- /////////////////////////////////////////
-- Printing Coverage Bin Information
-- /////////////////////////////////////////
------------------------------------------------------------
-- To specify the following, see SetReportOptions
-- WritePassFail, WriteBinInfo, WriteCount, WriteAnyIllegal
-- WritePrefix, PassName, FailName
------------------------------------------------------------
procedure WriteBin (ID : CoverageIDType) ;
procedure WriteBin (ID : CoverageIDType; LogLevel : LogType ) ; -- With LogLevel
procedure WriteBin (ID : CoverageIDType; FileName : string; OpenKind : File_Open_Kind := APPEND_MODE) ;
procedure WriteBin (ID : CoverageIDType; LogLevel : LogType; FileName : string; OpenKind : File_Open_Kind := APPEND_MODE) ;
------------------------------------------------------------
procedure WriteCovHoles (ID : CoverageIDType; LogLevel : LogType := ALWAYS ) ;
procedure WriteCovHoles (ID : CoverageIDType; PercentCov : real ) ;
procedure WriteCovHoles (ID : CoverageIDType; LogLevel : LogType; PercentCov : real ) ;
procedure WriteCovHoles (ID : CoverageIDType; FileName : string; OpenKind : File_Open_Kind := APPEND_MODE ) ;
procedure WriteCovHoles (ID : CoverageIDType; LogLevel : LogType; FileName : string; OpenKind : File_Open_Kind := APPEND_MODE ) ;
procedure WriteCovHoles (ID : CoverageIDType; FileName : string; PercentCov : real ; OpenKind : File_Open_Kind := APPEND_MODE ) ;
procedure WriteCovHoles (ID : CoverageIDType; LogLevel : LogType; FileName : string; PercentCov : real ; OpenKind : File_Open_Kind := APPEND_MODE ) ;
------------------------------------------------------------
-- /////////////////////////////////////////
-- Writing Out RAW Coverage Bin Information
-- Note that read supports merging of coverage models
-- /////////////////////////////////////////
------------------------------------------------------------
procedure ReadCovDb (ID : CoverageIDType; FileName : string; Merge : boolean := FALSE) ;
procedure WriteCovDb (ID : CoverageIDType; FileName : string; OpenKind : File_Open_Kind := WRITE_MODE ) ;
-- procedure WriteCovDb (ID : CoverageIDType) ;
-- procedure WriteCovYaml (ID : CoverageIDType; FileName : string; OpenKind : File_Open_Kind := WRITE_MODE ) ;
------------------------------------------------------------
-- /////////////////////////////////////////
-- Operations across all coverage models
-- /////////////////////////////////////////
------------------------------------------------------------
procedure WriteCovYaml (FileName : string := ""; OpenKind : File_Open_Kind := WRITE_MODE) ;
procedure ReadCovYaml (FileName : string := ""; Merge : boolean := FALSE) ;
impure function GotCoverage return boolean ;
impure function GetCov (PercentCov : real ) return real ;
impure function GetCov return real ;
procedure AffirmIfCovered ;
procedure AlertIfNotCovered (Level : AlertType := ERROR) ;
------------------------------------------------------------
-- Experimental. Intended primarily for development.
procedure CompareBins (
------------------------------------------------------------
constant Bin1 : in CoverageIDType ;
constant Bin2 : in CoverageIDType ;
variable Valid : out Boolean
) ;
------------------------------------------------------------
-- Experimental. Intended primarily for development.
procedure CompareBins (
------------------------------------------------------------
constant Bin1 : in CoverageIDType ;
constant Bin2 : in CoverageIDType
) ;
--
-- Support for AddBins and AddCross
--
------------------------------------------------------------
function GenBin(
------------------------------------------------------------
AtLeast : integer ;
Min, Max : integer ;
NumBin : integer
) return CovBinType ;
-- Each item in range in a separate CovBin
function GenBin(Min, Max, NumBin : integer ) return CovBinType ;
function GenBin(Min, Max : integer) return CovBinType ;
function GenBin(A : integer) return CovBinType ;
------------------------------------------------------------
function GenBin(
------------------------------------------------------------
AtLeast : integer ;
A : integer_vector
) return CovBinType ;
function GenBin ( A : integer_vector ) return CovBinType ;
------------------------------------------------------------
function IllegalBin ( Min, Max, NumBin : integer ) return CovBinType ;
------------------------------------------------------------
-- All items in range in a single CovBin
function IllegalBin ( Min, Max : integer ) return CovBinType ;
function IllegalBin ( A : integer ) return CovBinType ;
-- IgnoreBin should never have an AtLeast parameter
------------------------------------------------------------
function IgnoreBin (Min, Max, NumBin : integer) return CovBinType ;
------------------------------------------------------------
function IgnoreBin (Min, Max : integer) return CovBinType ; -- All items in range in a single CovBin
function IgnoreBin (A : integer) return CovBinType ;
-- With VHDL-2008, there will be one GenCross that returns CovBinType
-- and has inputs initialized to NULL_BIN - see AddCross
------------------------------------------------------------
function GenCross( -- 2
-- Cross existing bins
-- Use AddCross for adding values directly to coverage database
-- Use GenCross for constants
------------------------------------------------------------
AtLeast : integer ;
Bin1, Bin2 : CovBinType
) return CovMatrix2Type ;
function GenCross(Bin1, Bin2 : CovBinType) return CovMatrix2Type ;
------------------------------------------------------------
function GenCross( -- 3
------------------------------------------------------------
AtLeast : integer ;
Bin1, Bin2, Bin3 : CovBinType
) return CovMatrix3Type ;
function GenCross( Bin1, Bin2, Bin3 : CovBinType ) return CovMatrix3Type ;
------------------------------------------------------------
function GenCross( -- 4
------------------------------------------------------------
AtLeast : integer ;
Bin1, Bin2, Bin3, Bin4 : CovBinType
) return CovMatrix4Type ;
function GenCross( Bin1, Bin2, Bin3, Bin4 : CovBinType ) return CovMatrix4Type ;
------------------------------------------------------------
function GenCross( -- 5
------------------------------------------------------------
AtLeast : integer ;
Bin1, Bin2, Bin3, Bin4, Bin5 : CovBinType
) return CovMatrix5Type ;
function GenCross( Bin1, Bin2, Bin3, Bin4, Bin5 : CovBinType ) return CovMatrix5Type ;
------------------------------------------------------------
function GenCross( -- 6
------------------------------------------------------------
AtLeast : integer ;
Bin1, Bin2, Bin3, Bin4, Bin5, Bin6 : CovBinType
) return CovMatrix6Type ;
function GenCross( Bin1, Bin2, Bin3, Bin4, Bin5, Bin6 : CovBinType ) return CovMatrix6Type ;
------------------------------------------------------------
function GenCross( -- 7
------------------------------------------------------------
AtLeast : integer ;
Bin1, Bin2, Bin3, Bin4, Bin5, Bin6, Bin7 : CovBinType
) return CovMatrix7Type ;
function GenCross( Bin1, Bin2, Bin3, Bin4, Bin5, Bin6, Bin7 : CovBinType ) return CovMatrix7Type ;
------------------------------------------------------------
function GenCross( -- 8
------------------------------------------------------------
AtLeast : integer ;
Bin1, Bin2, Bin3, Bin4, Bin5, Bin6, Bin7, Bin8 : CovBinType
) return CovMatrix8Type ;
function GenCross( Bin1, Bin2, Bin3, Bin4, Bin5, Bin6, Bin7, Bin8 : CovBinType ) return CovMatrix8Type ;
------------------------------------------------------------
function GenCross( -- 9
------------------------------------------------------------
AtLeast : integer ;
Bin1, Bin2, Bin3, Bin4, Bin5, Bin6, Bin7, Bin8, Bin9 : CovBinType
) return CovMatrix9Type ;
function GenCross( Bin1, Bin2, Bin3, Bin4, Bin5, Bin6, Bin7, Bin8, Bin9 : CovBinType ) return CovMatrix9Type ;
------------------------------------------------------------
-- Utilities. Remove if added to std.standard
function to_integer ( B : boolean ) return integer ;
function to_boolean ( I : integer ) return boolean ;
function to_integer ( SL : std_logic ) return integer ;
function to_std_logic ( I : integer ) return std_logic ;
function to_integer_vector ( BV : boolean_vector ) return integer_vector ;
function to_boolean_vector ( IV : integer_vector ) return boolean_vector ;
function to_integer_vector ( SLV : std_logic_vector ) return integer_vector ;
function to_std_logic_vector ( IV : integer_vector ) return std_logic_vector ;
alias to_slv is to_std_logic_vector[integer_vector return std_logic_vector] ;
------------------------------------------------------------------------------------------
-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX CovPType XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX CovPType XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX CovPType XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
------------------------------------------------------------------------------------------
type CovPType is protected
------------------------------------------------------------
impure function NewID (
Name : String ;
ParentID : AlertLogIDType := OSVVM_COVERAGE_ALERTLOG_ID ;
ReportMode : AlertLogReportModeType := ENABLED ;
Search : NameSearchType := PRIVATE_NAME ;
PrintParent : AlertLogPrintParentType := PRINT_NAME_AND_PARENT
) return CoverageIDType ;
impure function GetNumIDs return integer ;
------------------------------------------------------------
-- /////////////////////////////////////////
-- Coverage Global Settings Common to All Coverage Models
-- /////////////////////////////////////////
------------------------------------------------------------
procedure FileOpenWriteBin (FileName : string; OpenKind : File_Open_Kind ) ;
procedure FileCloseWriteBin ;
-- procedure WriteToCovFile (variable buf : inout line) ;
procedure PrintToCovFile(S : string) ;
------------------------------------------------------------
procedure SetReportOptions (
------------------------------------------------------------
WritePassFail : OsvvmOptionsType := COV_OPT_INIT_PARM_DETECT ;
WriteBinInfo : OsvvmOptionsType := COV_OPT_INIT_PARM_DETECT ;
WriteCount : OsvvmOptionsType := COV_OPT_INIT_PARM_DETECT ;
WriteAnyIllegal : OsvvmOptionsType := COV_OPT_INIT_PARM_DETECT ;
WritePrefix : string := OSVVM_STRING_INIT_PARM_DETECT ;
PassName : string := OSVVM_STRING_INIT_PARM_DETECT ;
FailName : string := OSVVM_STRING_INIT_PARM_DETECT
) ;
procedure ResetReportOptions ;
------------------------------------------------------------
-- /////////////////////////////////////////
-- Coverage Model Settings
-- /////////////////////////////////////////
------------------------------------------------------------
procedure SetName (ID : CoverageIDType; Name : String) ;
impure function SetName (ID : CoverageIDType; Name : String) return string ;
procedure DeallocateName (ID : CoverageIDType) ;
impure function GetName (ID : CoverageIDType) return String ;
impure function GetCovModelName (ID : CoverageIDType) return String ;
impure function GetNamePlus (ID : CoverageIDType; prefix, suffix : string) return String ;
procedure SetItemBinNames (
ID : CoverageIDType ;
Name1 : String ;
Name2, Name3, Name4, Name5,
Name6, Name7, Name8, Name9, Name10,
Name11, Name12, Name13, Name14, Name15,
Name16, Name17, Name18, Name19, Name20 : string := ""
) ;
------------------------------------------------------------
procedure SetMessage (ID : CoverageIDType; Message : String) ;
procedure DeallocateMessage (ID : CoverageIDType) ;
procedure SetCovTarget (ID : CoverageIDType; Percent : real) ;
impure function GetCovTarget (ID : CoverageIDType) return real ;
procedure SetThresholding (ID : CoverageIDType; A : boolean := TRUE ) ;
procedure SetCovThreshold (ID : CoverageIDType; Percent : real) ;
procedure SetMerging (ID : CoverageIDType; A : boolean := TRUE ) ;
procedure SetCountMode (ID : CoverageIDType; A : CountModeType) ;
procedure SetIllegalMode (ID : CoverageIDType; A : IllegalModeType) ;
procedure SetWeightMode (ID : CoverageIDType; WeightMode : WeightModeType; WeightScale : real := 1.0) ;
procedure SetNextPointMode (ID : CoverageIDType; A : NextPointModeType) ;
procedure SetCovWeight (ID : CoverageIDType; Weight : integer) ;
impure function GetCovWeight (ID : CoverageIDType) return integer ;
------------------------------------------------------------
procedure SetAlertLogID (ID : CoverageIDType; A : AlertLogIDType) ;
procedure SetAlertLogID (ID : CoverageIDType; Name : string ; ParentID : AlertLogIDType := ALERTLOG_BASE_ID ; CreateHierarchy : Boolean := TRUE) ;
impure function GetAlertLogID (ID : CoverageIDType) return AlertLogIDType ;
------------------------------------------------------------
procedure InitSeed (ID : CoverageIDType; S : string; UseNewSeedMethods : boolean := COVERAGE_USE_NEW_SEED_METHODS) ;
impure function InitSeed (ID : CoverageIDType; S : string; UseNewSeedMethods : boolean := COVERAGE_USE_NEW_SEED_METHODS ) return string ;
procedure InitSeed (ID : CoverageIDType; I : integer; UseNewSeedMethods : boolean := COVERAGE_USE_NEW_SEED_METHODS ) ;
------------------------------------------------------------
procedure SetSeed (ID : CoverageIDType; RandomSeedIn : RandomSeedType ) ;
impure function GetSeed (ID : CoverageIDType) return RandomSeedType ;
------------------------------------------------------------
-- /////////////////////////////////////////
-- Item / Cross Bin Creation and Destruction
-- /////////////////////////////////////////
------------------------------------------------------------
procedure SetBinSize (ID : CoverageIDType; NewNumBins : integer) ;
procedure Deallocate (ID : CoverageIDType) ;
procedure DeallocateBins (CoverID : CoverageIDType) ;
------------------------------------------------------------
-- Weight Deprecated
procedure AddBins (
------------------------------------------------------------
ID : CoverageIDType ;
Name : String ;
AtLeast : integer ;
Weight : integer ;
CovBin : CovBinType
) ;
procedure AddBins (ID : CoverageIDType; Name : String ; AtLeast : integer ; CovBin : CovBinType ) ;
procedure AddBins (ID : CoverageIDType; Name : String ; CovBin : CovBinType) ;
procedure AddBins (ID : CoverageIDType; AtLeast : integer ; Weight : integer ; CovBin : CovBinType ) ; -- Weight Deprecated
procedure AddBins (ID : CoverageIDType; AtLeast : integer ; CovBin : CovBinType ) ;
procedure AddBins (ID : CoverageIDType; CovBin : CovBinType ) ;
------------------------------------------------------------
-- Weight Deprecated
procedure AddCross(
------------------------------------------------------------
ID : CoverageIDType ;
Name : string ;
AtLeast : integer ;
Weight : integer ;
Bin1, Bin2 : CovBinType ;
Bin3, Bin4, Bin5, Bin6, Bin7, Bin8, Bin9, Bin10, Bin11, Bin12, Bin13,
Bin14, Bin15, Bin16, Bin17, Bin18, Bin19, Bin20 : CovBinType := NULL_BIN
) ;
------------------------------------------------------------
procedure AddCross(
------------------------------------------------------------
ID : CoverageIDType ;
Name : string ;
AtLeast : integer ;
Bin1, Bin2 : CovBinType ;
Bin3, Bin4, Bin5, Bin6, Bin7, Bin8, Bin9, Bin10, Bin11, Bin12, Bin13,
Bin14, Bin15, Bin16, Bin17, Bin18, Bin19, Bin20 : CovBinType := NULL_BIN
) ;
------------------------------------------------------------
procedure AddCross(
------------------------------------------------------------
ID : CoverageIDType ;
Name : string ;
Bin1, Bin2 : CovBinType ;
Bin3, Bin4, Bin5, Bin6, Bin7, Bin8, Bin9, Bin10, Bin11, Bin12, Bin13,
Bin14, Bin15, Bin16, Bin17, Bin18, Bin19, Bin20 : CovBinType := NULL_BIN
) ;
------------------------------------------------------------
-- Weight Deprecated
procedure AddCross(
------------------------------------------------------------
ID : CoverageIDType ;
AtLeast : integer ;
Weight : integer ;
Bin1, Bin2 : CovBinType ;
Bin3, Bin4, Bin5, Bin6, Bin7, Bin8, Bin9, Bin10, Bin11, Bin12, Bin13,
Bin14, Bin15, Bin16, Bin17, Bin18, Bin19, Bin20 : CovBinType := NULL_BIN
) ;
------------------------------------------------------------
procedure AddCross(
------------------------------------------------------------
ID : CoverageIDType ;
AtLeast : integer ;
Bin1, Bin2 : CovBinType ;
Bin3, Bin4, Bin5, Bin6, Bin7, Bin8, Bin9, Bin10, Bin11, Bin12, Bin13,
Bin14, Bin15, Bin16, Bin17, Bin18, Bin19, Bin20 : CovBinType := NULL_BIN
) ;
------------------------------------------------------------
procedure AddCross(
------------------------------------------------------------
ID : CoverageIDType ;
Bin1, Bin2 : CovBinType ;
Bin3, Bin4, Bin5, Bin6, Bin7, Bin8, Bin9, Bin10, Bin11, Bin12, Bin13,
Bin14, Bin15, Bin16, Bin17, Bin18, Bin19, Bin20 : CovBinType := NULL_BIN
) ;
------------------------------------------------------------
-- AddCross for usage with constants created by GenCross
------------------------------------------------------------
procedure AddCross (ID : CoverageIDType; CovBin : CovMatrix2Type ; Name : String := "") ;
procedure AddCross (ID : CoverageIDType; CovBin : CovMatrix3Type ; Name : String := "") ;
procedure AddCross (ID : CoverageIDType; CovBin : CovMatrix4Type ; Name : String := "") ;