⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 time_flies.h

📁 Kluwer.Academic.Pub.Systemc.From.The.Ground.Up-此全书的范例程式。
💻 H
字号:
#ifndef TIME_FLIES_H#define TIME_FLIES_H//BEGIN time_flies.h//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// DESCRIPTION//   This example demonstrates sc_time and associated functions to//   manipulate and display time as managed by the SystemC simulator.//   Some aspects are found in main.cpp, while most are in the//   implementation file, time_flies.cpp. Notice the use of a helper//   function, display_hms(), which incidentally might be better //   implemented as a global function, but serves here to illustrate//   the point that helper functions can be quite simple.//// DESIGN HIERARCHY//   sc_main()//   +- time_flies_i//    +- time_thread//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#include <systemc.h>SC_MODULE(time_flies) {  SC_CTOR(time_flies) {    SC_THREAD(time_thread);  }  void time_thread(void);  sc_string display_hms(double t);};#endif//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//END $Id: time_flies.h,v 1.6 2004/04/15 17:45:20 dcblack Exp $

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -