跳转至

输入查询内容

    本页内容

    get_tr_handle 返回类型 integer → int

    内部实现:文件组织、内部数据结构与实现钩子的变化。直接依赖内部接口时查阅,普通 API 的使用不需要重审这些源码。

    具体差异

    两者均为 32 位有符号四态整数;此处仅统一类型拼写,不改变 X/Z 表达能力。

    修改方案

    无。

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

    补充查阅

    扫描定位与记录结果

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

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

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

    源码与标准依据

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

    VCS 内置 UVM-1.2uvm_sequence_base.svh:223function integer get_tr_handle()

    VCS 内置 uvm-ieee-2020-2.0uvm_sequence_base.svh:246function int get_tr_handle()

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

    src/vcs-uvm-1.2/seq/uvm_sequence_base.svh
      // Can be used to associate sub-sequences and sequence items as
      // child transactions when calling <uvm_component::begin_child_tr>.
    
      function integer get_tr_handle();
         if (m_tr_recorder != null)
           return m_tr_recorder.get_handle();
         else
           return 0;
      endfunction
    
    
      //--------------------------
      // Group: Sequence Execution
      //--------------------------
    
    
      // Task: start
      //
      // Executes this sequence, returning when the sequence has completed.
    

    完整源码 · SHA256:1594d38afd79cb400a689fdbe6c8e33ff60714bb7527cd8d79739d9357b31682

    src/vcs-uvm-ieee-2020-2.0/seq/uvm_sequence_base.svh
      // Can be used to associate sub-sequences and sequence items as
      // child transactions when calling <uvm_component::begin_child_tr>.
    
      function int get_tr_handle();
         if (m_tr_recorder != null)
           return m_tr_recorder.get_handle();
         else
           return 0;
      endfunction
    
    
      //--------------------------
      // Group -- NODOCS -- Sequence Execution
      //--------------------------
    
    
      // Task -- NODOCS -- start
      //
      // Executes this sequence, returning when the sequence has completed.
    

    完整源码 · SHA256:aedbad6d9991d5712dd8e5e676a9fb5487ab33af52219ae4786e6adaa7001375

    术语解释 · 兼容配置

    返回Sequence / Sequencer · 迁移清单

    版本适用范围