gem5  v22.0.0.1
sc_out.hh
Go to the documentation of this file.
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
9  * notice, this list of conditions and the following disclaimer in the
10  * documentation and/or other materials provided with the distribution;
11  * neither the name of the copyright holders nor the names of its
12  * contributors may be used to endorse or promote products derived from
13  * this software without specific prior written permission.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  */
27 
28 #ifndef __SYSTEMC_EXT_CHANNEL_SC_OUT_HH__
29 #define __SYSTEMC_EXT_CHANNEL_SC_OUT_HH__
30 
31 #include "../core/sc_port.hh"
32 #include "sc_inout.hh"
33 
34 namespace sc_core
35 {
36 
37 template <class T>
38 class sc_out : public sc_inout<T>
39 {
40  public:
41  sc_out() : sc_inout<T>() {}
42  explicit sc_out(const char *name) : sc_inout<T>(name) {}
43  virtual ~sc_out() {}
44 
45  // Deprecated binding constructors.
46  explicit sc_out(const sc_signal_inout_if<T> &interface) :
47  sc_inout<T>(interface)
48  {}
49  sc_out(const char *name, const sc_signal_inout_if<T> &interface) :
50  sc_inout<T>(name, interface)
51  {}
52  explicit sc_out(sc_port_b<sc_signal_inout_if<T> > &parent) :
53  sc_inout<T>(parent)
54  {}
55  sc_out(const char *name, sc_port_b<sc_signal_inout_if<T> > &parent) :
56  sc_inout<T>(name, parent)
57  {}
58  explicit sc_out(sc_out<T> &parent) : sc_inout<T>(parent) {}
59  sc_out(const char *name, sc_out<T> &parent) : sc_inout<T>(name, parent) {}
60 
61  sc_out<T> &
62  operator = (const T &t)
63  {
65  return *this;
66  }
67  sc_out<T> &
69  {
71  return *this;
72  }
73  sc_out<T> &
75  {
77  return *this;
78  }
79  sc_out<T> &
81  {
83  return *this;
84  }
85  sc_out<T> &
87  {
89  return *this;
90  }
91 
92  virtual const char *kind() const { return "sc_out"; }
93 
94  private:
95  // Disabled
96  sc_out(const sc_out<T> &) : sc_inout<T>() {}
97 };
98 
99 } // namespace sc_core
100 
101 #endif //__SYSTEMC_EXT_CHANNEL_SC_OUT_HH__
sc_core::sc_port_b
Definition: sc_port.hh:118
sc_core::sc_signal_inout_if
Definition: sc_signal_inout_if.hh:68
sc_core::sc_out::sc_out
sc_out(const sc_signal_inout_if< T > &interface)
Definition: sc_out.hh:46
sc_core::sc_port
Definition: sc_port.hh:249
sc_core
Definition: messages.cc:31
sc_inout.hh
sc_core::sc_out::sc_out
sc_out(sc_out< T > &parent)
Definition: sc_out.hh:58
sc_core::sc_out::operator=
sc_out< T > & operator=(const T &t)
Definition: sc_out.hh:62
sc_core::sc_out::sc_out
sc_out(const char *name, const sc_signal_inout_if< T > &interface)
Definition: sc_out.hh:49
gem5::VegaISA::c
Bitfield< 2 > c
Definition: pagetable.hh:63
sc_core::sc_out::sc_out
sc_out(const sc_out< T > &)
Definition: sc_out.hh:96
gem5::VegaISA::t
Bitfield< 51 > t
Definition: pagetable.hh:56
sc_core::sc_out::sc_out
sc_out(const char *name, sc_port_b< sc_signal_inout_if< T > > &parent)
Definition: sc_out.hh:55
sc_core::sc_signal_in_if
Definition: sc_signal_in_if.hh:53
sc_core::sc_out::sc_out
sc_out(sc_port_b< sc_signal_inout_if< T > > &parent)
Definition: sc_out.hh:52
sc_core::sc_out::sc_out
sc_out(const char *name)
Definition: sc_out.hh:42
sc_core::sc_inout
Definition: sc_inout.hh:54
sc_core::sc_out::sc_out
sc_out()
Definition: sc_out.hh:41
sc_core::sc_out::kind
virtual const char * kind() const
Definition: sc_out.hh:92
sc_core::sc_out::~sc_out
virtual ~sc_out()
Definition: sc_out.hh:43
sc_core::sc_object::name
const char * name() const
Definition: sc_object.cc:44
sc_core::sc_out
Definition: sc_out.hh:38
sc_core::sc_out::sc_out
sc_out(const char *name, sc_out< T > &parent)
Definition: sc_out.hh:59
sc_core::sc_inout::operator=
sc_inout< T > & operator=(const T &t)
Definition: sc_inout.hh:125

Generated on Sat Jun 18 2022 08:12:33 for gem5 by doxygen 1.8.17