このページは機械翻訳を使用して翻訳されました。元の英語を参照するには、ここをクリックします。
removePortGroup
アドオンが必要: この機能には ASIC Testbench for HDL Verifier アドオンが必要です。
説明
removePortGroup(
は、svdpiConfig
,groupName
)svdpiConfiguration
オブジェクトから name
という名前のポート グループを削除します。
例
スコアボードへのポートの追加と削除
UVM スコアボード テンプレートを使用して構成オブジェクトを作成します。次に、オブジェクトにポート グループを追加します。
inFromMon
— スコアボードへの入力を監視するinFromPred
— スコアボードへの予測入力inErrorThreshold
— スコアボードへの設定入力
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);
次に、オブジェクトから構成ポート グループを削除します。
c.removePortGroup('CONFIG_OBJECT_INPUTS');
Predictor へのポートの追加と削除
UVM 予測テンプレートを使用して構成オブジェクトを作成します。次に、オブジェクトにポート グループを追加します。
inFromMon
— 予測子への入力を監視するinErrorThreshold
— 予測器への設定入力
c = svdpiConfiguration('uvm-predictor'); addPortGroup(c, 'PREDICTOR_INPUTS','inFromMon'); % single input addPortGroup(c, 'CONFIG_OBJECT_INPUTS',{'inErrorThreshold'});
次に、オブジェクトから構成ポート グループを削除します。
c.removePortGroup('CONFIG_OBJECT_INPUTS');
同様の方法で、UVM シーケンスからポート グループを設定または削除できます。
入力引数
svdpiConfig
— SystemVerilog DPI 構成
svdpiConfiguration
オブジェクト
SystemVerilog DPI 構成。svdpiConfiguration
オブジェクトとして指定されます。
groupName
— HDL ポートグループ名
string | 文字ベクトル
svdpiConfiguration
オブジェクトからポート グループを削除します。ポート グループの名前を文字列または文字ベクトルとして指定します。
例: name='CONFIG_OBJECT_INPUTS'
バージョン履歴
R2023a で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)