上传者: 42200829
|
上传时间: 2023-03-19 22:52:50
|
文件大小: 776KB
|
文件类型: PPT
SystemC时钟模型
在SystemC中,时钟被作为一个特殊的对象处理,它就是sc_clock类。
时钟端口作为一个特殊的端口。如:
sc_in_clk clk1;//可以用sc_in clk1代替
在SystemC2.0.1中,sc_clock一共有6个重载的构造函数 。如:
sc_clock( sc_module_name name_,
const sc_time& period_,
double duty_cycle_ = 0.5,
const sc_time& start_time_ = SC_ZERO_TIME,
bool posedge_first_ = true );