sc_inout_resolved.hh revision 12841
14997Sgblack@eecs.umich.edu/*
25417Sgblack@eecs.umich.edu * Copyright 2018 Google, Inc.
34997Sgblack@eecs.umich.edu *
44997Sgblack@eecs.umich.edu * Redistribution and use in source and binary forms, with or without
57087Snate@binkert.org * modification, are permitted provided that the following conditions are
67087Snate@binkert.org * met: redistributions of source code must retain the above copyright
77087Snate@binkert.org * notice, this list of conditions and the following disclaimer;
87087Snate@binkert.org * redistributions in binary form must reproduce the above copyright
97087Snate@binkert.org * notice, this list of conditions and the following disclaimer in the
107087Snate@binkert.org * documentation and/or other materials provided with the distribution;
117087Snate@binkert.org * neither the name of the copyright holders nor the names of its
127087Snate@binkert.org * contributors may be used to endorse or promote products derived from
134997Sgblack@eecs.umich.edu * this software without specific prior written permission.
147087Snate@binkert.org *
157087Snate@binkert.org * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
167087Snate@binkert.org * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
177087Snate@binkert.org * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
187087Snate@binkert.org * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
197087Snate@binkert.org * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
207087Snate@binkert.org * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
217087Snate@binkert.org * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
224997Sgblack@eecs.umich.edu * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
237087Snate@binkert.org * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
244997Sgblack@eecs.umich.edu * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
254997Sgblack@eecs.umich.edu * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
264997Sgblack@eecs.umich.edu *
274997Sgblack@eecs.umich.edu * Authors: Gabe Black
284997Sgblack@eecs.umich.edu */
294997Sgblack@eecs.umich.edu
304997Sgblack@eecs.umich.edu#ifndef __SYSTEMC_EXT_CHANNEL_SC_INOUT_RESOLVED_HH__
314997Sgblack@eecs.umich.edu#define __SYSTEMC_EXT_CHANNEL_SC_INOUT_RESOLVED_HH__
324997Sgblack@eecs.umich.edu
334997Sgblack@eecs.umich.edu#include "sc_inout.hh"
344997Sgblack@eecs.umich.edu#include "sc_signal_in_if.hh"
354997Sgblack@eecs.umich.edu#include "sc_signal_inout_if.hh"
364997Sgblack@eecs.umich.edu#include "warn_unimpl.hh"
374997Sgblack@eecs.umich.edu
384997Sgblack@eecs.umich.edunamespace
394997Sgblack@eecs.umich.edu{
4011793Sbrandon.potter@amd.com
4111793Sbrandon.potter@amd.comclass sc_logic;
424997Sgblack@eecs.umich.edu
4310474Sandreas.hansson@arm.com}
444997Sgblack@eecs.umich.edu
459898Sandreas@sandberg.pp.senamespace sc_core
4611793Sbrandon.potter@amd.com{
478229Snate@binkert.org
4811793Sbrandon.potter@amd.comclass sc_inout_resolved : public sc_inout<sc_dt::sc_logic>
498229Snate@binkert.org{
508582Sgblack@eecs.umich.edu  public:
515149Sgblack@eecs.umich.edu    sc_inout_resolved();
525086Sgblack@eecs.umich.edu    explicit sc_inout_resolved(const char *name);
535086Sgblack@eecs.umich.edu    virtual ~sc_inout_resolved();
548232Snate@binkert.org
558767Sgblack@eecs.umich.edu    virtual void end_of_elaboration();
565086Sgblack@eecs.umich.edu
578767Sgblack@eecs.umich.edu    sc_inout_resolved &operator = (const sc_dt::sc_logic &);
585895Sgblack@eecs.umich.edu    sc_inout_resolved &operator = (const sc_signal_in_if<sc_dt::sc_logic> &);
595086Sgblack@eecs.umich.edu    sc_inout_resolved &operator = (
605086Sgblack@eecs.umich.edu            const sc_port<sc_signal_in_if<sc_dt::sc_logic>, 1> &);
615086Sgblack@eecs.umich.edu    sc_inout_resolved &operator = (
6210905Sandreas.sandberg@arm.com            const sc_port<sc_signal_inout_if<sc_dt::sc_logic>, 1> &);
6310905Sandreas.sandberg@arm.com    sc_inout_resolved &operator = (const sc_inout_resolved &);
6410905Sandreas.sandberg@arm.com
655124Sgblack@eecs.umich.edu    virtual const char *kind() const;
668953Sgblack@eecs.umich.edu
678953Sgblack@eecs.umich.edu  private:
685124Sgblack@eecs.umich.edu    // Disabled
698953Sgblack@eecs.umich.edu    sc_inout_resolved(const sc_inout_resolved &) :
708953Sgblack@eecs.umich.edu            sc_inout<sc_dt::sc_logic>() {}
715124Sgblack@eecs.umich.edu};
728953Sgblack@eecs.umich.edu
735124Sgblack@eecs.umich.edu} // namespace sc_core
745245Sgblack@eecs.umich.edu
755245Sgblack@eecs.umich.edu#endif  //__SYSTEMC_EXT_CHANNEL_SC_INOUT_RESOLVED_HH__
765236Sgblack@eecs.umich.edu