📄 main.cpp
字号:
//BEGIN main.cpp//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//See method_fifo_fir.h for more information//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#include <iostream>using std::cout;using std::endl;#include <systemc.h>#include "method_fifo_fir.h"unsigned errors = 0;char* simulation_name = "method_fifo_fir";int sc_main(int argc, char* argv[]) { //sc_set_time_resolution(1,SC_PS); //sc_set_default_time_unit(1,SC_NS); method_fifo_fir sc_fifo_ex_i("sc_fifo_ex_i"); cout << "INFO: Starting "<<simulation_name<<" simulation" << endl; if (errors == 0) sc_start(); cout << "INFO: Exiting "<<simulation_name<<" simulation" << endl; cout << "INFO: Simulation " << simulation_name << " " << (errors?"FAILED":"PASSED") << " with " << errors << " errors" << endl; return errors?1:0;}//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//END $Id: main.cpp,v 1.1 2003/12/02 21:40:18 dcblack Exp $
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -