zoukankan      html  css  js  c++  java
  • uvm_scoreboard——得分

      scoreboard 是验证平台很重要的一部分,因为,验证就是给激励,然后,检查结果。而scoreboard 就是肩负这检查结果的重任。测试用例能不能过,全由scoreboard说了算。

      A scoreboard is a verification component that contains checkers and verifies the functionality of a design. It usually receives transactions carrying inputs and outputs of the DUT from a UVM agent via TLM Analysis Ports, which then runs the input packets through some kind of a reference model that would mimic the behavior of DUT to produce expected data. The final task is to compare expected results with the actual output data from DUT. The reference model is also called a predictor.

    To define a scoreboard:

    • Create a custom class inherited from uvm_scoreboard
    • Add the TLM export necessary to communicate with different monitors
    • Define the action to be taken when the export is called
    //------------------------------------------------------------------------------
    //
    // CLASS: uvm_scoreboard
    //
    // The uvm_scoreboard virtual class should be used as the base class for 
    // user-defined scoreboards.
    //
    // Deriving from uvm_scoreboard will allow you to distinguish scoreboards from
    // other component types inheriting directly from uvm_component. Such 
    // scoreboards will automatically inherit and benefit from features that may be
    // added to uvm_scoreboard in the future.
    //------------------------------------------------------------------------------
    
    virtual class uvm_scoreboard extends uvm_component;
    
      // Function: new
      //
      // Creates and initializes an instance of this class using the normal
      // constructor arguments for <uvm_component>: ~name~ is the name of the
      // instance, and ~parent~ is the handle to the hierarchical parent, if any.
    
      function new (string name, uvm_component parent);
        super.new(name, parent);
      endfunction
    
      const static string type_name = "uvm_scoreboard";
    
      virtual function string get_type_name ();
        return type_name;
      endfunction
    
    endclass

    参考文献:

    1 Scoreboard. http://www.chipverify.com/uvm/scoreboard.

  • 相关阅读:
    VS2008中应用.NET 4.0中的代码契约
    生日快乐
    Did you know…How to maintain scrollposition after post back? z
    微软正式发布SQL Server 2008
    想要注册一个写日记用的博客(选好了)
    SCOPE_IDENTITY、IDENT_CURRENT 和 @@IDENTITY的区别(比较) z
    Microsoft Visual Studio 2010 and the .NET Framework 4.0 CTP下载
    mysql
    如何用iframe代码显示调用网页的指定部分
    文件夹权限
  • 原文地址:https://www.cnblogs.com/dpc525/p/7992837.html
Copyright © 2011-2022 走看看