sc_module.hh (12952:94fca7e8120b) sc_module.hh (12982:c7966254372e)
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 32 unchanged lines hidden (view full) ---

41
42class sc_logic;
43
44} // namespace sc_dt
45
46namespace sc_gem5
47{
48
1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright

--- 32 unchanged lines hidden (view full) ---

41
42class sc_logic;
43
44} // namespace sc_dt
45
46namespace sc_gem5
47{
48
49class Kernel;
49class Module;
50class Process;
51struct ProcessFuncWrapper;
52
53Process *newMethodProcess(const char *name, ProcessFuncWrapper *func);
54Process *newThreadProcess(const char *name, ProcessFuncWrapper *func);
55Process *newCThreadProcess(const char *name, ProcessFuncWrapper *func);
56

--- 29 unchanged lines hidden (view full) ---

86 sc_bind_proxy(const sc_port_base &_port);
87};
88
89extern const sc_bind_proxy SC_BIND_PROXY_NIL;
90
91class sc_module : public sc_object
92{
93 public:
50class Module;
51class Process;
52struct ProcessFuncWrapper;
53
54Process *newMethodProcess(const char *name, ProcessFuncWrapper *func);
55Process *newThreadProcess(const char *name, ProcessFuncWrapper *func);
56Process *newCThreadProcess(const char *name, ProcessFuncWrapper *func);
57

--- 29 unchanged lines hidden (view full) ---

87 sc_bind_proxy(const sc_port_base &_port);
88};
89
90extern const sc_bind_proxy SC_BIND_PROXY_NIL;
91
92class sc_module : public sc_object
93{
94 public:
95 friend class ::sc_gem5::Kernel;
96
94 virtual ~sc_module();
95
96 virtual const char *kind() const { return "sc_module"; }
97
98 void operator () (const sc_bind_proxy &p001,
99 const sc_bind_proxy &p002 = SC_BIND_PROXY_NIL,
100 const sc_bind_proxy &p003 = SC_BIND_PROXY_NIL,
101 const sc_bind_proxy &p004 = SC_BIND_PROXY_NIL,

--- 250 unchanged lines hidden ---
97 virtual ~sc_module();
98
99 virtual const char *kind() const { return "sc_module"; }
100
101 void operator () (const sc_bind_proxy &p001,
102 const sc_bind_proxy &p002 = SC_BIND_PROXY_NIL,
103 const sc_bind_proxy &p003 = SC_BIND_PROXY_NIL,
104 const sc_bind_proxy &p004 = SC_BIND_PROXY_NIL,

--- 250 unchanged lines hidden ---