您的位置:首页 > 编程语言 > Go语言

Chapter 5 -- SystemC From Gound 读书心得

2010-11-29 09:01 162 查看
1. systemC sc_time datatype 类似于 systemc datatype, 通过运算符重载支持+=, <,... 以及流<<, >>, 同样也有到C++类型的转化函数。

2. sc_time 类型被simulation kernel用来跟踪simulation time,以及定义timeout和delay

3. sc_time name(double, sc_time_unit)…; sc_time_unit有 SC_NS, SC_PS等枚举

4. 在sc_time对象创建前,可用sc_set_time_resolution(double, sc_time_unit); 来指定resolution

5. sc_time current_time = sc_time_stamp(); 获得当前时间邮戳。

6. sc_start() 也可指定timeout时间。

7. wait(sc_time)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: