Main Content

removePortGroup

Remove port group mapping from svdpiConfiguration object

Since R2023a

    Add-On Required: This feature requires the ASIC Testbench for HDL Verifier add-on.

    Description

    removePortGroup(svdpiConfig,groupName) removes a port group named name from the svdpiConfiguration object.

    example

    Examples

    collapse all

    Create a configuration object using the UVM scoreboard template. Then add port groups to the object:

    • inFromMon — monitor inputs to the scoreboard

    • inFromPred — predictor inputs to the scoreboard

    • inErrorThreshold — configuration inputs to the scoreboard

    c = svdpiConfiguration('uvm-scoreboard');
    addPortGroup(c, 'MONITOR_INPUTS','inFromMon'); % single input
    addPortGroup(c, 'PREDICTOR_INPUTS',{'inFromPred1','inFromPred2'}); % array of 2 ports
    addPortGroup(c, 'CONFIG_OBJECT_INPUTS',inErrorThreshold);

    Now, remove the configuration port group from the object:

    c.removePortGroup('CONFIG_OBJECT_INPUTS');

    Create a configuration object using the UVM predictor template. Then add port groups to the object:

    • inFromMon — monitor inputs to the predictor

    • inErrorThreshold — configuration inputs to the predictor

    c = svdpiConfiguration('uvm-predictor');
    addPortGroup(c, 'PREDICTOR_INPUTS','inFromMon'); % single input
    addPortGroup(c, 'CONFIG_OBJECT_INPUTS',{'inErrorThreshold'});

    Now, remove the configuration port group from the object:

    c.removePortGroup('CONFIG_OBJECT_INPUTS');

    You can configure or remove port groups from the UVM sequence in the same way.

    Input Arguments

    collapse all

    SystemVerilog DPI configuration, specified as an svdpiConfiguration object.

    Remove a port group from the svdpiConfiguration object. Specify the name of the port group as a string or character vector.

    Example: name='CONFIG_OBJECT_INPUTS'

    Version History

    Introduced in R2023a