?? 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 + -