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

An XML printer for cl_syoscb_items. More...

Inherits uvm_printer.

Public Member Functions

virtual string format_syoscb_item (int unsigned idx)
 Formats a cl_syoscb_item and all of its children. More...
 
virtual int unsigned format_object (int unsigned idx, ref string result)
 Formats a sequence item/object, and recursively formats all children of this seq item. More...
 
virtual int unsigned format_primitive (int unsigned idx, ref string result)
 Formats a primitive value. More...
 
virtual int unsigned format_array (int unsigned idx, ref string result)
 Formats an array and all of its children. More...
 
virtual bit is_primitive (uvm_printer_row_info row)
 Checks whether an element is a SystemVerilog primitive. More...
 
virtual bit is_object (uvm_printer_row_info row)
 Checks whether an element is an object. More...
 
virtual bit is_array (uvm_printer_row_info row)
 Checks whether an element is an array Arrays are recognized as dynamic, associative or static arrays. More...
 
virtual void increase_indent (int unsigned steps=1)
 Increases the indentation used by a set amount of steps The size of each step is controlled by knobs.indent.
 
virtual void decrease_indent (int unsigned steps=1)
 Decreases the indentation used by a set amount of steps The size of each step is controlled by knobs.indent.
 
virtual string get_indent ()
 Gets an indentation string consisting of this.indent_level spaces.
 

Detailed Description

An XML printer for cl_syoscb_items.

Definition at line 2 of file uvm_xml_printer.svh.

Member Function Documentation

◆ format_array()

int unsigned uvm_xml_printer::format_array ( int unsigned  idx,
ref string  result 
)
virtual

Formats an array and all of its children.

Parameters
idxThe position in m_rows where the array is located
resultThe result string being built

Definition at line 351 of file pk_syoscb.sv.

◆ format_object()

int unsigned uvm_xml_printer::format_object ( int unsigned  idx,
ref string  result 
)
virtual

Formats a sequence item/object, and recursively formats all children of this seq item.

Parameters
idxThe position in m_rows where this sequence item is located
resultThe result string being built

Definition at line 305 of file pk_syoscb.sv.

Referenced by format_syoscb_item().

◆ format_primitive()

int unsigned uvm_xml_printer::format_primitive ( int unsigned  idx,
ref string  result 
)
virtual

Formats a primitive value.

Parameters
idxThe position in m_rows where the primitive is located
resultThe result being built

Definition at line 397 of file pk_syoscb.sv.

◆ format_syoscb_item()

string uvm_xml_printer::format_syoscb_item ( int unsigned  idx)
virtual

Formats a cl_syoscb_item and all of its children.

It is assumed that the cl_syoscb_item is at position m_rows[idx]

Parameters
idxThe id at which this cl_syoscb_item is placed (should always be 0)
Returns
The XML formatted string

Definition at line 263 of file uvm_xml_printer.svh.

References format_object().

◆ is_array()

bit uvm_xml_printer::is_array ( uvm_printer_row_info  row)
virtual

Checks whether an element is an array Arrays are recognized as dynamic, associative or static arrays.

The UVM printer interprets queues as dynamic arrays

Parameters
type_nameThe type name field of the currently parsed element
valueThe value field of the currently parsed element
Returns
0b1 if the current element is an array, 10b0 otherwise

Definition at line 423 of file pk_syoscb.sv.

◆ is_object()

bit uvm_xml_printer::is_object ( uvm_printer_row_info  row)
virtual

Checks whether an element is an object.

Parameters
sizeThe size field of the currently parsed element.
valThe value field of the currently parsed element
Returns
1 if the current element is an object, 0 otherwise

Definition at line 438 of file pk_syoscb.sv.

◆ is_primitive()

bit uvm_xml_printer::is_primitive ( uvm_printer_row_info  row)
virtual

Checks whether an element is a SystemVerilog primitive.

Here, a "primitive" is one that maps to the UVM printer representations: integral, real, string

Parameters
type_nameThe type name field of the currently parsed element
Returns
1 if the current element is a primitive, 0 otherwise

Definition at line 410 of file pk_syoscb.sv.


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