stimgen.h revision 12855
12SN/A/*****************************************************************************
211856Sbrandon.potter@amd.com
38852Sandreas.hansson@arm.com  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
48852Sandreas.hansson@arm.com  more contributor license agreements.  See the NOTICE file distributed
58852Sandreas.hansson@arm.com  with this work for additional information regarding copyright ownership.
68852Sandreas.hansson@arm.com  Accellera licenses this file to you under the Apache License, Version 2.0
78852Sandreas.hansson@arm.com  (the "License"); you may not use this file except in compliance with the
88852Sandreas.hansson@arm.com  License.  You may obtain a copy of the License at
98852Sandreas.hansson@arm.com
108852Sandreas.hansson@arm.com    http://www.apache.org/licenses/LICENSE-2.0
118852Sandreas.hansson@arm.com
128852Sandreas.hansson@arm.com  Unless required by applicable law or agreed to in writing, software
138852Sandreas.hansson@arm.com  distributed under the License is distributed on an "AS IS" BASIS,
148852Sandreas.hansson@arm.com  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
151762SN/A  implied.  See the License for the specific language governing
162SN/A  permissions and limitations under the License.
172SN/A
182SN/A *****************************************************************************/
192SN/A
202SN/A/*****************************************************************************
212SN/A
222SN/A  stimgen.h --
232SN/A
242SN/A  Original Author: Martin Janssen, Synopsys, Inc., 2002-02-15
252SN/A
262SN/A *****************************************************************************/
272SN/A
282SN/A/*****************************************************************************
292SN/A
302SN/A  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
312SN/A  changes you are making here.
322SN/A
332SN/A      Name, Affiliation, Date:
342SN/A  Description of Modification:
352SN/A
362SN/A *****************************************************************************/
372SN/A
382SN/A                /************************************/
392SN/A                /* Interface Filename:	stimgen.h   */
402665Ssaidi@eecs.umich.edu                /************************************/
412665Ssaidi@eecs.umich.edu
422665Ssaidi@eecs.umich.edu#include "common.h"
432665Ssaidi@eecs.umich.edu
4411856Sbrandon.potter@amd.comSC_MODULE( stimgen )
452SN/A{
462SN/A    SC_HAS_PROCESS( stimgen );
4711793Sbrandon.potter@amd.com
4811793Sbrandon.potter@amd.com    sc_in_clk clk;
498229Snate@binkert.org
502SN/A  // Inputs
516712Snate@binkert.org	const signal_bool_vector7&	result;
5211800Sbrandon.potter@amd.com  // Outputs
5310930Sbrandon.potter@amd.com	signal_bool_vector4&		in1;
542SN/A	signal_bool_vector6&		in2;
5511800Sbrandon.potter@amd.com	sc_signal<bool>&		ready;
562SN/A
5711793Sbrandon.potter@amd.com  // Constructor
5856SN/A  stimgen (sc_module_name		NAME,
591158SN/A	sc_clock&			TICK,
60146SN/A	const signal_bool_vector7&	RESULT,
616658Snate@binkert.org	signal_bool_vector4&		IN1,
622680Sktlim@umich.edu	signal_bool_vector6&		IN2,
632378SN/A	sc_signal<bool>&		READY )
648706Sandreas.hansson@arm.com
655154Sgblack@eecs.umich.edu      :
6611800Sbrandon.potter@amd.com	result	(RESULT),
6711856Sbrandon.potter@amd.com	in1	(IN1),
6811856Sbrandon.potter@amd.com	in2	(IN2),
6911794Sbrandon.potter@amd.com	ready   (READY)
702378SN/A
712SN/A  	{
722715Sstever@eecs.umich.edu            clk	(TICK);
732715Sstever@eecs.umich.edu	    SC_CTHREAD( entry, clk.pos() );
742715Sstever@eecs.umich.edu        }
752715Sstever@eecs.umich.edu
762715Sstever@eecs.umich.edu  void entry();
772715Sstever@eecs.umich.edu};
782715Sstever@eecs.umich.edu