?? connections.h
字號(hào):
#ifndef CONNECTIONS_H#define CONNECTIONS_H//BEGIN connections.h//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// DESCRIPTION// This module implements the connections shown in diagrams of// chapters 9 & 10.//// DESIGN HIERARCHY// sc_main()// +- top// +- m1 mi1// +- m2 mi2// +- SC_THREAD pr1// +- SC_THREAD pr2// +- SC_THREAD pr3// +- m3 mi3//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#include <systemc.h>#include <interfaces.h>#include "m1.h"#include "m2.h"SC_MODULE(connections) { // Ports sc_port<if1> p1; sc_port<if2> p2; sc_port<if3> p3; sc_port<if4> p4;#ifdef SYSTEMC_V2_1 sc_export<if5> p5; sc_export<if6> p6;#endif // Channels ch1* c1i; ch2* c2i; ch3* c3i; // Instances m1* mi1; m2* mi2; // Events sc_event ev1; sc_event ev2; // Constructor connections(sc_module_name nm); // Processes SC_HAS_PROCESS(connections); void pr1(void); void pr2(void); void pr3(void);};#endif//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//END $Id: connections.h,v 1.6 2004/04/15 17:37:34 dcblack Exp $
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -