stimgen.h revision 12855:588919e0e4aa
16657Snate@binkert.org/*****************************************************************************
26657Snate@binkert.org
36657Snate@binkert.org  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
46657Snate@binkert.org  more contributor license agreements.  See the NOTICE file distributed
56657Snate@binkert.org  with this work for additional information regarding copyright ownership.
66657Snate@binkert.org  Accellera licenses this file to you under the Apache License, Version 2.0
76657Snate@binkert.org  (the "License"); you may not use this file except in compliance with the
86657Snate@binkert.org  License.  You may obtain a copy of the License at
96657Snate@binkert.org
106657Snate@binkert.org    http://www.apache.org/licenses/LICENSE-2.0
116657Snate@binkert.org
126657Snate@binkert.org  Unless required by applicable law or agreed to in writing, software
136657Snate@binkert.org  distributed under the License is distributed on an "AS IS" BASIS,
146657Snate@binkert.org  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
156657Snate@binkert.org  implied.  See the License for the specific language governing
166657Snate@binkert.org  permissions and limitations under the License.
176657Snate@binkert.org
186657Snate@binkert.org *****************************************************************************/
196657Snate@binkert.org
206657Snate@binkert.org/*****************************************************************************
216657Snate@binkert.org
226657Snate@binkert.org  stimgen.h --
236657Snate@binkert.org
246657Snate@binkert.org  Original Author: Martin Janssen, Synopsys, Inc., 2002-02-15
256657Snate@binkert.org
266657Snate@binkert.org *****************************************************************************/
276657Snate@binkert.org
286657Snate@binkert.org/*****************************************************************************
296657Snate@binkert.org
306657Snate@binkert.org  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
316872SBrad.Beckmann@amd.com  changes you are making here.
326657Snate@binkert.org
336657Snate@binkert.org      Name, Affiliation, Date:
346657Snate@binkert.org  Description of Modification:
356657Snate@binkert.org
366657Snate@binkert.org *****************************************************************************/
376657Snate@binkert.org
386657Snate@binkert.org                /************************************/
396657Snate@binkert.org                /* Interface Filename:	stimgen.h   */
406657Snate@binkert.org                /************************************/
416657Snate@binkert.org
426657Snate@binkert.org#include "common.h"
436657Snate@binkert.org
446657Snate@binkert.orgSC_MODULE( stimgen )
456657Snate@binkert.org{
466999Snate@binkert.org    SC_HAS_PROCESS( stimgen );
476657Snate@binkert.org
486657Snate@binkert.org    sc_in_clk clk;
496657Snate@binkert.org
506657Snate@binkert.org  // Inputs
516657Snate@binkert.org	const signal_bool_vector9&	result;
526657Snate@binkert.org  // Outputs
536657Snate@binkert.org	signal_bool_vector6&		in1;
546872SBrad.Beckmann@amd.com	signal_bool_vector6&		in2;
556872SBrad.Beckmann@amd.com	sc_signal<bool>&		ready;
566872SBrad.Beckmann@amd.com
576872SBrad.Beckmann@amd.com  // Constructor
586657Snate@binkert.org  stimgen (sc_module_name		NAME,
596657Snate@binkert.org	sc_clock&			TICK,
606657Snate@binkert.org	const signal_bool_vector9&	RESULT,
61	signal_bool_vector6&		IN1,
62	signal_bool_vector6&		IN2,
63	sc_signal<bool>&		READY )
64
65      :
66	result	(RESULT),
67	in1	(IN1),
68	in2	(IN2),
69	ready   (READY)
70
71  	{
72            clk	(TICK);
73	    SC_CTHREAD( entry, clk.pos() );
74        }
75
76  void entry();
77};
78