receiver.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002 
00003   The following code is derived, directly or indirectly, from the SystemC
00004   source code Copyright (c) 1996-2004 by all Contributors.
00005   All Rights reserved.
00006 
00007   The contents of this file are subject to the restrictions and limitations
00008   set forth in the SystemC Open Source License Version 2.4 (the "License");
00009   You may not use this file except in compliance with such restrictions and
00010   limitations. You may obtain instructions on how to receive a copy of the
00011   License at http://www.systemc.org/. Software distributed by Contributors
00012   under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
00013   ANY KIND, either express or implied. See the License for the specific
00014   language governing rights and limitations under the License.
00015 
00016  *****************************************************************************/
00017 
00018 /*****************************************************************************
00019 
00020   receiver.h - This is the interface file for the asynchronous process
00021                "receiver".
00022 
00023   Original Author: Rashmi Goswami, Synopsys, Inc.
00024 
00025  *****************************************************************************/
00026 
00027 /*****************************************************************************
00028 
00029   MODIFICATION LOG - modifiers, enter your name, affiliation, date and
00030   changes you are making here.
00031 
00032       Name, Affiliation, Date:
00033   Description of Modification:
00034 
00035  *****************************************************************************/
00036 
00037 struct receiver: sc_module {
00038   sc_in<pkt> pkt_in;  
00039   sc_in<sc_int<4> > sink_id;  
00040   int first;
00041   SC_CTOR(receiver) {
00042       SC_METHOD(entry); 
00043       dont_initialize();
00044       sensitive(pkt_in);
00045       first = 1;
00046     }  
00047  void entry();
00048 };
Generated by
Matthieu Moy <Matthieu.Moy@st.com>
Back to Pinapa Home Page