proc1.h revision 12855
16145Snate@binkert.org/*****************************************************************************
26145Snate@binkert.org
36145Snate@binkert.org  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
46145Snate@binkert.org  more contributor license agreements.  See the NOTICE file distributed
56145Snate@binkert.org  with this work for additional information regarding copyright ownership.
66145Snate@binkert.org  Accellera licenses this file to you under the Apache License, Version 2.0
76145Snate@binkert.org  (the "License"); you may not use this file except in compliance with the
86145Snate@binkert.org  License.  You may obtain a copy of the License at
96145Snate@binkert.org
106145Snate@binkert.org    http://www.apache.org/licenses/LICENSE-2.0
116145Snate@binkert.org
126145Snate@binkert.org  Unless required by applicable law or agreed to in writing, software
136145Snate@binkert.org  distributed under the License is distributed on an "AS IS" BASIS,
146145Snate@binkert.org  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
156145Snate@binkert.org  implied.  See the License for the specific language governing
166145Snate@binkert.org  permissions and limitations under the License.
176145Snate@binkert.org
186145Snate@binkert.org *****************************************************************************/
196145Snate@binkert.org
206145Snate@binkert.org/*****************************************************************************
216145Snate@binkert.org
226145Snate@binkert.org  proc1.h --
236145Snate@binkert.org
246145Snate@binkert.org  Original Author: Martin Janssen, Synopsys, Inc., 2002-02-15
256145Snate@binkert.org
266145Snate@binkert.org *****************************************************************************/
276145Snate@binkert.org
286145Snate@binkert.org/*****************************************************************************
297039Snate@binkert.org
307039Snate@binkert.org  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
316145Snate@binkert.org  changes you are making here.
327055Snate@binkert.org
337055Snate@binkert.org      Name, Affiliation, Date:
347455Snate@binkert.org  Description of Modification:
358229Snate@binkert.org
368165Snilay@cs.wisc.edu *****************************************************************************/
377039Snate@binkert.org
387039Snate@binkert.org/* Filename proc1.h */
396285Snate@binkert.org/* This is the interface file for synchronous process `proc1' */
406145Snate@binkert.org
416145Snate@binkert.orgSC_MODULE( proc1 )
426145Snate@binkert.org{
436145Snate@binkert.org  SC_HAS_PROCESS( proc1 );
446285Snate@binkert.org
456876Ssteve.reinhardt@amd.com  sc_in_clk clk;
466876Ssteve.reinhardt@amd.com
476145Snate@binkert.org  const sc_signal<bool>& data_ack; //input
487039Snate@binkert.org  sc_signal<bool>& data_ready; //output
497039Snate@binkert.org
508615Snilay@cs.wisc.edu  //Constructor
518615Snilay@cs.wisc.edu  proc1(sc_module_name NAME,
527039Snate@binkert.org	sc_clock& CLK,
536285Snate@binkert.org	const sc_signal<bool>& DATA_ACK,
548615Snilay@cs.wisc.edu	sc_signal<bool>& DATA_READY)
558615Snilay@cs.wisc.edu    : data_ack(DATA_ACK), data_ready(DATA_READY)
567039Snate@binkert.org  {
576285Snate@binkert.org    clk(CLK);
586285Snate@binkert.org	SC_CTHREAD( entry, clk.pos() );
596763SBrad.Beckmann@amd.com  }
606763SBrad.Beckmann@amd.com
617039Snate@binkert.org  // Process functionality in member function below
627039Snate@binkert.org  void entry();
637039Snate@binkert.org};
646876Ssteve.reinhardt@amd.com
657039Snate@binkert.org