• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

SOC/IP验证工程师

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

uvm中的uvm_root解析

uvm_top = uvm_root::type_id::create("top", null);
uvm_top= new("top", null);

uvm_test_top = my_casen::type_id::create("uvm_test_top", this);
uvm_test_top = new("uvm_test_top", this);

uvm_top.set_timeout = uvm_root::set_timeout;

uvm_config_db#(virtual my_if)::set(null, "uvm_test_top.env.i_agt.drv", "vif", input_if);
uvm_config_db#(virtual my_if)::set(uvm_root::get(), "uvm_test_top.env.i_agt.drv", "vif", input_if);

class uvm_root extends uvm_component;
// Get the factory singleton
extern static function uvm_root get();

extern virtual task run_test (string test_name="");

virtual function string get_type_name();
  return "uvm_root";
endfunction

extern function void print_topology  (uvm_printer printer=null);

// Variable: enable_print_topology
// If set, then the entire testbench topology is printed just after completion
// of the end_of_elaboration phase.
bit  enable_print_topology = 0;

// Variable: finish_on_completion
// If set, then run_test will call $finish after all phases are executed. 
bit  finish_on_completion = 1;

endclass

层次结构用句柄表示;
路径时用实例化时的名字表示;

posted on 2023-07-10 23:10  SOC验证工程师  阅读(205)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3