SyoSil ApS UVM Scoreboard  1.0.3.0
cl_syoscb_hash_packer.svh
1 /// A base class for packers which should be used with hash algorithms
2 /// in the scoreboard.
3 /// The packers should implement \c get_bits or \c get_packed_bits (depending on
4 /// UVM version), returning a bitstream which conforms to the given hash
5 /// algorithm's requirements
6 class cl_syoscb_hash_packer extends uvm_packer;
7  //-------------------------------------
8  // Non randomizable variables
9  //-------------------------------------
10 
11 
12  //-------------------------------------
13  // UVM Macros
14  //-------------------------------------
15 
16  //-------------------------------------
17  // Constructor
18  //-------------------------------------
19  function new();
20  super.new();
21  endfunction: new
22 
23  //-------------------------------------
24  // Functions
25  //-------------------------------------
26  extern virtual function void clean();
27 
28 endclass: cl_syoscb_hash_packer
29 
30 /// Clean and reset the underlying packer data structure
31 /// This method correctly calls packer.flush on UVM-IEEE and
32 /// packer.reset on previous versions of UVM, removing the need for
33 /// version-specific code in the caller
35  `ifdef UVM_VERSION
36  this.flush();
37  `else
38  this.reset();
39  `endif
40 endfunction: clean
virtual void clean()
Clean and reset the underlying packer data structure This method correctly calls packer.flush on UVM-IEEE and packer.reset on previous versions of UVM, removing the need for version-specific code in the caller.
A base class for packers which should be used with hash algorithms in the scoreboard.

Project: SyoSil ApS UVM Scoreboard, Revision: 1.0.3.0

Copyright 2014-2022 SyoSil ApS
All Rights Reserved Worldwide

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

http://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.
doxygen
Doxygen Version: 1.8.14
Generated with IDV SV Filter Version: 2.6.3
Fri Sep 2 2022 14:39:20
Find a documentation bug? Report bugs to: scoreboard@syosil.com