📄 nc_main.cpp
字号:
/************************************************************************ * file name: main.cpp * description: Synchronous FIFO * * modification history * -------------------- * 2003-6-14, created by zhuwei *//* includes----------------------------------------------------------- */#include <time.h>#include "systemc.h"/* defines------------------------------------------------------------ *//* typedefs----------------------------------------------------------- *//* externs------------------------------------------------------------ *//* globals------------------------------------------------------------ *//* forward declarations----------------------------------------------- */SC_MODULE(test_top){ sc_clock ni_clk; sc_clock rou_clk; sc_signal<bool> rst_n; SC_CTOR(test_top): ni_clk("ni_clk", 8, SC_NS), rou_clk("rou_clk", 16, SC_NS), rst_n("rst_n") { } void start_of_simulation() { cout << "hello, ncsc!" << endl; } void end_of_simulation() { }};SC_MODULE_EXPORT(test_top)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -