📄 main.cpp
字号:
//BEGIN main.cpp//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//See buffer_ex.h for more information//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#include <iostream>using std::cout;using std::endl;#include <systemc.h>#include "buffer_ex.h"unsigned errors = 0;char* simulation_name = "buffer_ex";int sc_main(int argc, char* argv[]) { cout << "INFO: Elaborating "<< simulation_name << endl; //sc_set_time_resolution(1,SC_PS); //sc_set_default_time_unit(1,SC_NS); buffer_ex buffer_ex_i("buffer_ex_i"); cout << "INFO: Simulating "<< simulation_name << endl; sc_start(); cout << "INFO: Post-processing "<< simulation_name << 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/08 02:38:40 dcblack Exp $
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -