提交 4921f1ad 编写于 作者: 饶先宏's avatar 饶先宏

202107091738

上级 705e0989
......@@ -174,15 +174,16 @@ int main(int argc, char* argv[])
objectCall1(vcdfile, SetTopModule, topmodule);
objectCall0(vcdfile, StartRecord);
#endif
sc_get_curr_simcontext()->initialize();
do {
sc_time halfcycle(5, SC_NS);
objectCall0(sim_unit, ClkTick);
#if VCDOUTPUT
objectCall1(vcdfile, ClkTick, clocks);
#endif
sc_start(1, SC_NS);
sc_get_curr_simcontext()->cycle(halfcycle);
objectCall0(sim_unit, Setup);
sc_start(1, SC_NS);
sc_get_curr_simcontext()->cycle(halfcycle);
clocks++;
if (clocks == resetwidth)
objectCall1(sim, SetReset, 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册