stimgen.h revision 12855:588919e0e4aa
114039Sstacze01@arm.com/*****************************************************************************
214039Sstacze01@arm.com
314039Sstacze01@arm.com  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
414039Sstacze01@arm.com  more contributor license agreements.  See the NOTICE file distributed
514039Sstacze01@arm.com  with this work for additional information regarding copyright ownership.
614039Sstacze01@arm.com  Accellera licenses this file to you under the Apache License, Version 2.0
714039Sstacze01@arm.com  (the "License"); you may not use this file except in compliance with the
814039Sstacze01@arm.com  License.  You may obtain a copy of the License at
914039Sstacze01@arm.com
1014039Sstacze01@arm.com    http://www.apache.org/licenses/LICENSE-2.0
1114039Sstacze01@arm.com
1214039Sstacze01@arm.com  Unless required by applicable law or agreed to in writing, software
1314039Sstacze01@arm.com  distributed under the License is distributed on an "AS IS" BASIS,
1414039Sstacze01@arm.com  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1514039Sstacze01@arm.com  implied.  See the License for the specific language governing
1614039Sstacze01@arm.com  permissions and limitations under the License.
1714039Sstacze01@arm.com
1814039Sstacze01@arm.com *****************************************************************************/
1914039Sstacze01@arm.com
2014039Sstacze01@arm.com/*****************************************************************************
2114039Sstacze01@arm.com
2214039Sstacze01@arm.com  stimgen.h --
2314039Sstacze01@arm.com
2414039Sstacze01@arm.com  Original Author: Martin Janssen, Synopsys, Inc., 2002-02-15
2514039Sstacze01@arm.com
2614039Sstacze01@arm.com *****************************************************************************/
2714039Sstacze01@arm.com
2814039Sstacze01@arm.com/*****************************************************************************
2914039Sstacze01@arm.com
3014039Sstacze01@arm.com  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
3114039Sstacze01@arm.com  changes you are making here.
3214039Sstacze01@arm.com
3314039Sstacze01@arm.com      Name, Affiliation, Date:
3414039Sstacze01@arm.com  Description of Modification:
3514039Sstacze01@arm.com
3614039Sstacze01@arm.com *****************************************************************************/
3714039Sstacze01@arm.com
3814039Sstacze01@arm.com                /************************************/
3914039Sstacze01@arm.com                /* Interface Filename:	stimgen.h   */
4014039Sstacze01@arm.com                /************************************/
4114039Sstacze01@arm.com
4214039Sstacze01@arm.com#include "common.h"
4314252Sgabeblack@google.com
4414039Sstacze01@arm.comSC_MODULE( stimgen )
4514252Sgabeblack@google.com{
4614039Sstacze01@arm.com    SC_HAS_PROCESS( stimgen );
4714039Sstacze01@arm.com
4814039Sstacze01@arm.com    sc_in_clk clk;
4914039Sstacze01@arm.com
5014039Sstacze01@arm.com  // Inputs
5114039Sstacze01@arm.com	const signal_bool_vector7&	result;
5214039Sstacze01@arm.com  // Outputs
5314039Sstacze01@arm.com	signal_bool_vector6&		in1;
5414039Sstacze01@arm.com	signal_bool_vector6&		in2;
5514039Sstacze01@arm.com	sc_signal<bool>&		ready;
5614039Sstacze01@arm.com
5714039Sstacze01@arm.com  // Constructor
5814039Sstacze01@arm.com  stimgen (sc_module_name		NAME,
5914039Sstacze01@arm.com	sc_clock&			TICK,
6014039Sstacze01@arm.com	const signal_bool_vector7&	RESULT,
6114039Sstacze01@arm.com	signal_bool_vector6&		IN1,
6214039Sstacze01@arm.com	signal_bool_vector6&		IN2,
6314039Sstacze01@arm.com	sc_signal<bool>&		READY )
6414039Sstacze01@arm.com
6514039Sstacze01@arm.com      :
6614039Sstacze01@arm.com	result	(RESULT),
6714039Sstacze01@arm.com	in1	(IN1),
6814039Sstacze01@arm.com	in2	(IN2),
6914039Sstacze01@arm.com	ready   (READY)
7014039Sstacze01@arm.com
7114039Sstacze01@arm.com  	{
7214039Sstacze01@arm.com            clk	(TICK);
7314039Sstacze01@arm.com	    SC_CTHREAD( entry, clk.pos() );
7414039Sstacze01@arm.com        }
7514039Sstacze01@arm.com
7614252Sgabeblack@google.com  void entry();
7714039Sstacze01@arm.com};
7814039Sstacze01@arm.com