Main Content

このページは機械翻訳を使用して翻訳されました。元の英語を参照するには、ここをクリックします。

generateYAMLforUVMFTestBench

テンプレート エンジンを使用して完全な UVMF テスト ベンチの YAML を生成する

R2024a 以降

    アドオンが必要: この機能には ASIC Testbench for HDL Verifier アドオンが必要です。

    説明

    generateYAMLforUVMFTestBench(uvmfObject) は、テンプレート エンジンを使用して、完全なユニバーサル検証方法論フレームワーク (UVMF) テスト ベンチの YAML を生成します。

    すべて折りたたむ

    この例では、uvmfTestBenchConfiguration オブジェクトを作成し、MATLAB® 関数の 2 つの svdpiConfiguration オブジェクトを統合する方法を示します。

    組み込みの UVMF テスト ベンチ YAML テンプレートを使用するために、"default" UVMFTestBenchKind 用の uvmfTestBenchConfiguration オブジェクトを作成します。componentKind="uvmf-predictor"svdpiConfiguration オブジェクトを MATLAB 関数 mode_set_controller に積分し、componentKind="uvmf-sequence" の別の svdpiConfiguration オブジェクトを MATLAB 関数 mode_set_controller_test に積分します。

    pred = svdpiConfiguration("uvmf-predictor"); 
    pred.MATLABFunctionName = "mode_set_controller";
    seq = svdpiConfiguration("uvmf-sequence"); 
    seq.MATLABFunctionName = "mode_set_controller_test"; 
    uvmfObject = uvmfTestBenchConfiguration({pred, seq});
    generateYAMLforUVMFTestBench(uvmfObject);

    カスタム UVMF テスト ベンチ YAML テンプレート "custom_uvmf_test_bench.svt" を使用するために、"custom" UVMFTestBenchKinduvmfTestBenchConfiguration オブジェクトを作成します。単一の svdpiConfiguration オブジェクトを componentKind="uvmf-sequence" と統合します。

    seq = svdpiConfiguration("uvmf-sequence"); 
    seq.MATLABFunctionName = "chip_controller_test";
    uvmfTestBenchKind = "custom";
    uvmfObject = uvmfTestBenchConfiguration(uvmfTestBenchKind,{seq});
    generateYAMLforUVMFTestBench(uvmfObject);

    入力引数

    すべて折りたたむ

    UVMF 構成オブジェクト。uvmfTestBenchConfiguration オブジェクトとして指定されます。

    バージョン履歴

    R2024a で導入