[source]

Class uvm_pkg::uvm_hdl_path_concat

Copyright 2004-2009 Synopsys, Inc. Copyright 2010-2011 Mentor Graphics Corporation Copyright 2010 Cadence Design Systems, Inc. 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.

Class

uvm_hdl_path_concat

Concatenation of HDL variables

A dArray of uvm_hdl_path_slice specifying a concatenation of HDL variables that implement a register in the HDL.

Slices must be specified in most-to-least significant order. Slices must not overlap. Gaps may exist in the concatenation if portions of the registers are not implemented.

For example, the following register |

        1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0
 Bits:  5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
       +-+---+-------------+---+-------+
       |A|xxx|      B      |xxx|   C   |
       +-+---+-------------+---+-------+

If the register is implemented using a single HDL variable, The array should specify a single slice with its offset and size specified as -1. For example:

 concat.set('{ '{"r1", -1, -1} });
Variables

Name

Type

Description

slices

uvm_hdl_path_slice

Variable

slices

Array of individual slices, stored in most-to-least significant order

Functions

set(uvm_hdl_path_slice t)

Function

set

Initialize the concatenation using an array literal

Parameters:

t (uvm_hdl_path_slice)

add_slice(uvm_hdl_path_slice slice)

Function

add_slice

Append the specified slice literal to the path concatenation

Parameters:

slice (uvm_hdl_path_slice)

add_path(string path, int unsigned offset = -1, int unsigned size = -1)

Function

add_path

Append the specified path to the path concatenation, for the specified number of bits at the specified offset .

Parameters:
  • path (string)

  • offset (int unsigned)

  • size (int unsigned)