uvm_misc——杂货铺(miscellaneous)
2024-08-30 04:15:54
uvm_misc 是个很有意思的文件夹,本质上就是个UVM的杂货铺,包含一些很重要的class, task, function, 但不知道给归类到哪儿,所以,uvm_misc就很好地承担了这个任务,几乎所有的设计都会遇到这种情况。在uvm_misc中有uvm_void 的定义,uvm_status_container的定义,生成随机数种子的方法实现,以及uvm_instance_scope。
virtual class uvm_void;
endclass // Append/prepend symbolic values for order-dependent APIs
typedef enum {UVM_APPEND, UVM_PREPEND} uvm_apprepend; // Forward declaration since scope stack uses uvm_objects now
typedef class uvm_object; typedef class uvm_coreservice_t;
typedef class uvm_factory; typedef class uvm_config_db;
// m_uvm_config_obj_misc is an internal typedef for the uvm_misc.svh file
// to use. UVM users should use the uvm_config_object typedef
typedef uvm_config_db#(uvm_object) m_uvm_config_obj_misc; //----------------------------------------------------------------------------
//
// CLASS- uvm_scope_stack
//
//---------------------------------------------------------------------------- class uvm_scope_stack;
endclass //------------------------------------------------------------------------------
//
// CLASS- uvm_status_container
//
// Internal class to contain status information for automation methods.
//
//------------------------------------------------------------------------------ class uvm_status_container;
endclass // Variable- uvm_global_random_seed
//
// Create a seed which is based off of the global seed which can be used to seed
// srandom processes but will change if the command line seed setting is
// changed.
//
int unsigned uvm_global_random_seed = $urandom; // Class- uvm_seed_map
//
// This map is a seed map that can be used to update seeds. The update
// is done automatically by the seed hashing routine. The seed_table_lookup
// uses an instance name lookup and the seed_table inside a given map
// uses a type name for the lookup.
//
class uvm_seed_map;
int unsigned seed_table [string];
int unsigned count [string];
endclass uvm_seed_map uvm_random_seed_table_lookup [string]; //------------------------------------------------------------------------------
// Internal utility functions
//------------------------------------------------------------------------------ // Function- uvm_instance_scope
//
// A function that returns the scope that the UVM library lives in, either
// an instance, a module, or a package.
//
function string uvm_instance_scope();
endclass
参考文献:
1 uvm_void/uvm_scope_stack/uvm_status_container/uvm_copy_map/uvm_seed_map/misc
http://blog.sina.com.cn/s/blog_466496f30100xky5.html
最新文章
- Unable to create the selected property page. An error occurred while automatically activating bundle net.sourceforge.pmd
- 大型App要搞的几个系统
- King's Quest —— POJ1904(ZOJ2470)Tarjan缩点
- [转帖]零投入用panabit享受万元流控设备——搭建篇
- 可在广域网部署运行的QQ高仿版 -- GG叽叽(源码)
- c_test
- POJ2299Ultra-QuickSort(归并排序 + 树状数组求逆序对)
- 【ECshop错误集锦】解决ECShop发送邮件提示:Error: need RCPT command
- 编译mod_jk.so
- Visual Basic|VB 6.0中文版
- atol字符串转换函数应用实例
- List和Tuple类型
- project文件问题
- KeychainItemWrapper的使用
- Druid数据库连接池就这么简单
- C# -- 正则表达式匹配字符之含义
- 使用 boot-repair 对 Windows + Ubuntu 双系统引导修复
- WebMagic
- [js]this关键字代表当前执行的主体
- CF1120 C. Compress String(SAM+DP)
热门文章
- compileSdkVersion, minSdkVersion 和 targetSdkVersion详解
- PHP/Javascript 数组定义 及JSON中的使用 ---OK
- [poj2186]Popular Cows(targin缩点)
- codevs-1205
- 理解复杂的const和typedef和指针的关系
- linux中消息队列<;一>;
- 一个C#开发者重温C++的心路历程
- Codeforces 174B【模拟构造】
- 笔记-JavaWeb学习之旅4
- Elasticsearch and MongoDb