nc_main.cpp
来自「SystemC可以由C语言直接开发硬件」· C++ 代码 · 共 50 行
CPP
50 行
/************************************************************************ * 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 + =
减小字号Ctrl + -
显示快捷键?