跳转至

输入查询内容

    本页内容

    uvm_reg_field 新增 set_rand_mode/get_rand_mode

    新增功能:目标库新增的 API 和可选替代接口;已有用法的迁移要求列在用户接口与行为中。

    具体差异

    纯新增。

    修改方案

    无。

    兼容措施与范围:本条是新增能力或实现说明,无需恢复旧接口;按使用条件核对行为。

    补充查阅

    扫描定位与记录结果

    无对应规则。当前脚本没有针对本条的直接检测规则。

    本条处理级别为“可选采用”,按修改方案评估;缺少扫描规则本身不增加迁移改造要求。

    扫描器下载、输入范围与报告说明

    源码与标准依据

    核查方式:源码核对。未单独进行 VCS 行为实测。

    VCS 内置 UVM-1.2:无

    VCS 内置 uvm-ieee-2020-2.0uvm_reg_field.svh:160set_rand_mode(bit),控制字段期望值的 randomize 使能;configure 内部由 value.rand_mode(0) 改为 set_rand_mode(0)

    引用代码(高亮为引用行);上方行号链接可直接定位。

    src/vcs-uvm-ieee-2020-2.0/reg/uvm_reg_field.svh
       // Modifies the ~rand_mode~ for the field instance to the specified one
       //
       // @uvm-contrib This API is being considered for potential contribution to 1800.2
       extern virtual function void set_rand_mode(bit rand_mode);
    
       // Function: get_rand_mode
       // Returns the rand_mode of the field instance
       //
       // @uvm-contrib This API is being considered for potential contribution to 1800.2
       extern virtual function bit get_rand_mode();
    
       // @uvm-ieee 1800.2-2020 auto 18.5.4.7
       extern static function bit define_access(string name);
       local static bit m_predefined = m_predefine_policies();
       extern local static function bit m_predefine_policies();
    
       // Function -- NODOCS -- get_access
       //
       // Get the access policy of the field
    

    完整源码 · SHA256:08e4cb573f5f6f23fb1c7ae019ed2b4f7f08c9631878d5f88df2464858fa5bbb

    术语解释 · 兼容配置

    返回RAL(寄存器模型) · 迁移清单

    版本适用范围