0 trivial:UVM的空壳平台

原始代码及log

cpp 复制代码
package pkg;

import uvm_pkg::*;
`include "uvm_macros.svh"

class my_component extends uvm_component;

  function new(string name, uvm_component parent);
    super.new(name, parent);
  endfunction

  task run_phase(uvm_phase phase);
    phase.raise_objection(this);
    `uvm_info("component", "hello out there!", UVM_MEDIUM)
    phase.drop_objection(this);
  endtask

endclass

endpackage

module test;
   import uvm_pkg::*;
   import pkg::*;
   my_component t;
   
   initial begin
      t = new("Top", null);
      run_test();
   end
endmodule // test



----------------------------------------------------------------

  ***********       IMPORTANT RELEASE NOTES         ************

  You are using a version of the UVM library that has been compiled
  with `UVM_NO_DEPRECATED undefined.
  See http://www.eda.org/svdb/view.php?id=3313 for more details.

      (Specify +UVM_NO_RELNOTES to turn off this notice)

UVM_INFO @ 0: reporter [RNTST] Running test ...
UVM_INFO ../../../src/base/uvm_objection.svh(1267) @ 0: reporter [TEST_DONE] 'run' phase is ready to proceed to the 'extract' phase

--- UVM Report Summary ---

** Report counts by severity
UVM_INFO :    2
UVM_WARNING :    0
UVM_ERROR :    0
UVM_FATAL :    0
** Report counts by id
[RNTST]     1
[TEST_DONE]     1
$finish called from file "../../../src/base/uvm_root.svh", line 430.
$finish at simulation time                    0
           V C S   S i m u l a t i o n   R e p o r t 
Time: 0 ns

"trivial" :"微不足道的"或"简单的"

上面是极其简单的UVM用例,算起走入UVM的钥匙,没啥好分析的

相关推荐
Edward111111113 小时前
3月20包装类
学习
电子云与长程纠缠3 小时前
Godot学习03 - 实例化、层级访问、Export
android·学习·godot
青桔柠薯片3 小时前
51单片机(STC89C52RC)学习总结:从裸机编程到外设驱动
嵌入式硬件·学习·51单片机
今儿敲了吗4 小时前
python基础学习笔记第六章——函数进阶
笔记·python·学习
2501_918126915 小时前
学习所有6502写游戏动画的语句
汇编·嵌入式硬件·学习·程序人生·游戏
-Springer-5 小时前
STM32 学习 —— 个人学习笔记9-3(FlyMcu 串口下载)
笔记·stm32·学习
weixin_458872616 小时前
东华复试OJ每日3题打卡·复盘103~105
学习
SuniaWang6 小时前
《Spring AI + 大模型全栈实战》学习手册系列 ·专题三:《Embedding 模型选型指南:从 MMTEB 排名到实际应用》
人工智能·学习·spring
问道飞鱼7 小时前
【Tauri框架学习】Windows 11 环境下 Tauri 开发环境安装与问题解决手册
windows·学习·tauri·开发环境
لا معنى له7 小时前
什么是Active Inference(主动推理)? ——学习笔记
笔记·学习