# uvm_printer

Contents

uvm_printer |
uvm_table_printer | The table printer prints output in a tabular format.
uvm_tree_printer | By overriding various methods of the uvm_printer super class, the tree printer prints output in a tree format.
uvm_line_printer | The line printer prints output in a line format.

## uvm_table_printer

The table printer prints output in a tabular format.

The following shows sample output from the table printer.

>     ---------------------------------------------------
>     Name        Type            Size        Value
>     ---------------------------------------------------
>     c1          container       -           @1013
>     d1          mydata          -           @1022
>     v1          integral        32          'hcb8f1c97
>     e1          enum            32          THREE
>     str         string          2           hi
>     value       integral        12          'h2d
>     ---------------------------------------------------

@uvm-accellera The details of this API are specific to the Accellera implementation, and are not being considered for contribution to 1800.2

Summary

uvm_table_printer
The table printer prints output in a tabular format.
Methods |
get_default | Implementation of uvm_table_printer::get_default as defined in section 16.2.10.2.3 of 1800.2-2017.

### Methods

### get_default

Implementation of uvm_table_printer::get_default as defined in section 16.2.10.2.3 of 1800.2-2017.

Note: The library implements get_default as described in IEEE 1800.2-2017 with the exception that this implementation will instance a uvm_table_printer if the most recent call to set_default() used an argument value of null.

@uvm-contrib This API is being considered for potential contribution to 1800.2

## uvm_tree_printer

By overriding various methods of the uvm_printer super class, the tree printer prints output in a tree format.

The following shows sample output from the tree printer.

>     c1: (container@1013) {
>       d1: (mydata@1022) {
>            v1: 'hcb8f1c97
>            e1: THREE
>            str: hi
>       }
>       value: 'h2d
>     }

Summary

uvm_tree_printer
By overriding various methods of the uvm_printer super class, the tree printer prints output in a tree format.
Methods |
get_default | Implementation of uvm_tree_printer::get_default as defined in section 16.2.11.2.4 of 1800.2-2017.

### Methods

### get_default

Implementation of uvm_tree_printer::get_default as defined in section 16.2.11.2.4 of 1800.2-2017.

Note: The library implements get_default as described in IEEE 1800.2-2017 with the exception that this implementation will instance a uvm_tree_printer if the most recent call to set_default() used an argument value of null.

@uvm-contrib This API is being considered for potential contribution to 1800.2

## uvm_line_printer

The line printer prints output in a line format.

The following shows sample output from the line printer.

>     c1: (container@1013) { d1: (mydata@1022) { v1: 'hcb8f1c97 e1: THREE str: hi } value: 'h2d }

Summary

uvm_line_printer
The line printer prints output in a line format.
Methods |
get_default | Implementation of uvm_line_printer::get_default as defined in section 16.2.12.2.3 of 1800.2-2017.

### Methods

### get_default

Implementation of uvm_line_printer::get_default as defined in section 16.2.12.2.3 of 1800.2-2017.

Note: The library implements get_default as described in IEEE 1800.2-2017 with the exception that this implementation will instance a uvm_line_printer if the most recent call to set_default() used an argument value of null.

@uvm-contrib This API is being considered for potential contribution to 1800.2