stimgen.h revision 12855
112391Sjason@lowepower.com/*****************************************************************************
212391Sjason@lowepower.com
312391Sjason@lowepower.com  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
412391Sjason@lowepower.com  more contributor license agreements.  See the NOTICE file distributed
512391Sjason@lowepower.com  with this work for additional information regarding copyright ownership.
612391Sjason@lowepower.com  Accellera licenses this file to you under the Apache License, Version 2.0
712391Sjason@lowepower.com  (the "License"); you may not use this file except in compliance with the
812391Sjason@lowepower.com  License.  You may obtain a copy of the License at
912391Sjason@lowepower.com
1012391Sjason@lowepower.com    http://www.apache.org/licenses/LICENSE-2.0
1112391Sjason@lowepower.com
1212391Sjason@lowepower.com  Unless required by applicable law or agreed to in writing, software
1312391Sjason@lowepower.com  distributed under the License is distributed on an "AS IS" BASIS,
1412391Sjason@lowepower.com  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1512391Sjason@lowepower.com  implied.  See the License for the specific language governing
1612391Sjason@lowepower.com  permissions and limitations under the License.
1712391Sjason@lowepower.com
1812391Sjason@lowepower.com *****************************************************************************/
1912391Sjason@lowepower.com
2012391Sjason@lowepower.com/*****************************************************************************
2112391Sjason@lowepower.com
2212391Sjason@lowepower.com  stimgen.h --
2312391Sjason@lowepower.com
2412391Sjason@lowepower.com  Original Author: Martin Janssen, Synopsys, Inc., 2002-02-15
2512391Sjason@lowepower.com
2612391Sjason@lowepower.com *****************************************************************************/
2712391Sjason@lowepower.com
2814299Sbbruce@ucdavis.edu/*****************************************************************************
2914299Sbbruce@ucdavis.edu
3012391Sjason@lowepower.com  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
3112391Sjason@lowepower.com  changes you are making here.
3212391Sjason@lowepower.com
3312391Sjason@lowepower.com      Name, Affiliation, Date:
3412391Sjason@lowepower.com  Description of Modification:
3512391Sjason@lowepower.com
3612391Sjason@lowepower.com *****************************************************************************/
3712391Sjason@lowepower.com
3814299Sbbruce@ucdavis.edu                /************************************/
3912391Sjason@lowepower.com                /* Interface Filename:	stimgen.h   */
4012391Sjason@lowepower.com                /************************************/
4112391Sjason@lowepower.com
4212391Sjason@lowepower.com#include "common.h"
4312391Sjason@lowepower.com
4412391Sjason@lowepower.comSC_MODULE( stimgen )
4512391Sjason@lowepower.com{
4614299Sbbruce@ucdavis.edu    SC_HAS_PROCESS( stimgen );
4714299Sbbruce@ucdavis.edu
4814299Sbbruce@ucdavis.edu    sc_in_clk clk;
4914299Sbbruce@ucdavis.edu
5014299Sbbruce@ucdavis.edu  // Inputs
5112391Sjason@lowepower.com	const signal_bool_vector7&	result;
5212391Sjason@lowepower.com  // Outputs
5312391Sjason@lowepower.com	signal_bool_vector4&		in1;
5412391Sjason@lowepower.com	signal_bool_vector6&		in2;
5512391Sjason@lowepower.com	sc_signal<bool>&		ready;
5612391Sjason@lowepower.com
5712391Sjason@lowepower.com  // Constructor
5814299Sbbruce@ucdavis.edu  stimgen (sc_module_name		NAME,
5914299Sbbruce@ucdavis.edu	sc_clock&			TICK,
6014299Sbbruce@ucdavis.edu	const signal_bool_vector7&	RESULT,
6114299Sbbruce@ucdavis.edu	signal_bool_vector4&		IN1,
6214299Sbbruce@ucdavis.edu	signal_bool_vector6&		IN2,
6312391Sjason@lowepower.com	sc_signal<bool>&		READY )
6414299Sbbruce@ucdavis.edu
6512391Sjason@lowepower.com      :
6612391Sjason@lowepower.com	result	(RESULT),
6714299Sbbruce@ucdavis.edu	in1	(IN1),
6814299Sbbruce@ucdavis.edu	in2	(IN2),
6912391Sjason@lowepower.com	ready   (READY)
7012391Sjason@lowepower.com
7112391Sjason@lowepower.com  	{
7212391Sjason@lowepower.com            clk	(TICK);
7312391Sjason@lowepower.com	    SC_CTHREAD( entry, clk.pos() );
7412391Sjason@lowepower.com        }
7512391Sjason@lowepower.com
7612391Sjason@lowepower.com  void entry();
7712391Sjason@lowepower.com};
7812391Sjason@lowepower.com