SyoSil ApS UVM Scoreboard  1.0.3.0
Static Public Member Functions | List of all members
cl_syoscb_comparer_config Class Reference

Utility class used to perform manipulations of uvm_comparer objects. More...

Inherits uvm_object, and uvm_object.

Static Public Member Functions

static void set_verbosity (uvm_comparer comparer, int unsigned cv=UVM_DEBUG)
 Sets the verbosity level of a given comparer. More...
 
static int unsigned get_verbosity (uvm_comparer comparer)
 Gets the verbosity level for a given comparer. More...
 
static void copy_comparer (uvm_comparer from, uvm_comparer to)
 Copies all config information from one comparer into another. More...
 
static string get_miscompares_from_comparer (uvm_comparer comparer)
 Returns a string containing all miscompares from the given comparer. More...
 
static void do_help_pack (uvm_comparer comparer, uvm_packer packer)
 Packs all configuration data for the given uvm_comparer using the given uvm_packer. More...
 
static uvm_comparer do_help_unpack (uvm_packer packer)
 Unpacks comparer configuration data and returns a comparer with that configuration. More...
 
static void set_show_max (uvm_comparer comparer, int unsigned sm)
 Sets the value of the show_max knob in the given comparer. More...
 
static int unsigned get_show_max (uvm_comparer comparer)
 Gets the value of the show_max knob in the given comparer. More...
 

Detailed Description

Utility class used to perform manipulations of uvm_comparer objects.

Contains a number of functions that simplify uvm_comparer related code, as the comparer API differs based on the UVM version used. These functions encapsulate those differences, providing a unified API regardless of UVM version.

Definition at line 5 of file cl_syoscb_comparer_config.svh.

Member Function Documentation

◆ copy_comparer()

void cl_syoscb_comparer_config::copy_comparer ( uvm_comparer  from,
uvm_comparer  to 
)
static

Copies all config information from one comparer into another.

Parameters
fromComparer containing the data to be copied
toComparer to inherit configuration data in from

Definition at line 70 of file cl_syoscb_comparer_config.svh.

◆ do_help_pack()

void cl_syoscb_comparer_config::do_help_pack ( uvm_comparer  comparer,
uvm_packer  packer 
)
static

Packs all configuration data for the given uvm_comparer using the given uvm_packer.

Since uvm_comparer does not natively support pack/unpack operations, these helper methods can be used to pack/unpack a comparer

Parameters
comparerThe uvm_comparer for which all configuration values should be packed
packerThe uvm_packer to use when packing the item

Definition at line 98 of file cl_syoscb_comparer_config.svh.

◆ do_help_unpack()

uvm_comparer cl_syoscb_comparer_config::do_help_unpack ( uvm_packer  packer)
static

Unpacks comparer configuration data and returns a comparer with that configuration.

Since uvm_comparer does not natively support pack/unpack operations, these helper methods can be used to pack/unpack a comparer

Parameters
packerThe uvm_packer that was previously used to pack a uvm_comparer
Returns
A uvm_comparer with the packed configuration

Definition at line 150 of file cl_syoscb_comparer_config.svh.

◆ get_miscompares_from_comparer()

string cl_syoscb_comparer_config::get_miscompares_from_comparer ( uvm_comparer  comparer)
static

Returns a string containing all miscompares from the given comparer.

Parameters
comparerThe comparer from which to get all miscompares
Returns
A string containing information about the miscompares in the comparer

Definition at line 230 of file cl_syoscb_comparer_config.svh.

◆ get_show_max()

int unsigned cl_syoscb_comparer_config::get_show_max ( uvm_comparer  comparer)
static

Gets the value of the show_max knob in the given comparer.

Parameters
comparerThe comparer to get the show_max knob for
Returns
The value of show_max in the given comparer

Definition at line 254 of file cl_syoscb_comparer_config.svh.

◆ get_verbosity()

int unsigned cl_syoscb_comparer_config::get_verbosity ( uvm_comparer  comparer)
static

Gets the verbosity level for a given comparer.

Parameters
comparerThe comparer object for which to get the verbosity level
Returns
That comparers verbosity level

Definition at line 58 of file cl_syoscb_comparer_config.svh.

◆ set_show_max()

void cl_syoscb_comparer_config::set_show_max ( uvm_comparer  comparer,
int unsigned  sm 
)
static

Sets the value of the show_max knob in the given comparer.

Parameters
comparerThe comparer to set the show_max knob for
smThe new value of the show_max knob

Definition at line 242 of file cl_syoscb_comparer_config.svh.

◆ set_verbosity()

void cl_syoscb_comparer_config::set_verbosity ( uvm_comparer  comparer,
int unsigned  cv = UVM_DEBUG 
)
static

Sets the verbosity level of a given comparer.

Parameters
comparerThe comparer object on which to set a new verbosity level
cvThe new comparer verbosity level

Definition at line 46 of file cl_syoscb_comparer_config.svh.

Referenced by cl_syoscb_cfg::get_default_comparer(), and cl_syoscb_cfg::init().


The documentation for this class was generated from the following files:

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:41:04
Find a documentation bug? Report bugs to: scoreboard@syosil.com