stimulus.h revision 12855:588919e0e4aa
12086SN/A/*****************************************************************************
22086SN/A
32086SN/A  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
42086SN/A  more contributor license agreements.  See the NOTICE file distributed
52086SN/A  with this work for additional information regarding copyright ownership.
62086SN/A  Accellera licenses this file to you under the Apache License, Version 2.0
72086SN/A  (the "License"); you may not use this file except in compliance with the
82086SN/A  License.  You may obtain a copy of the License at
92086SN/A
102086SN/A    http://www.apache.org/licenses/LICENSE-2.0
112086SN/A
122086SN/A  Unless required by applicable law or agreed to in writing, software
132086SN/A  distributed under the License is distributed on an "AS IS" BASIS,
142086SN/A  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
152086SN/A  implied.  See the License for the specific language governing
162086SN/A  permissions and limitations under the License.
172086SN/A
182086SN/A *****************************************************************************/
192086SN/A
202086SN/A/*****************************************************************************
212086SN/A
222086SN/A  stimulus.h --
232086SN/A
242086SN/A  Original Author: Rocco Jonack, Synopsys, Inc., 1999-07-30
252086SN/A
262086SN/A *****************************************************************************/
272086SN/A
282665Ssaidi@eecs.umich.edu/*****************************************************************************
292665Ssaidi@eecs.umich.edu
302665Ssaidi@eecs.umich.edu  MODIFICATION LOG - modifiers, enter your name, affiliation, date and
312686Sksewell@umich.edu  changes you are making here.
322086SN/A
334202Sbinkertn@umich.edu      Name, Affiliation, Date:
342086SN/A  Description of Modification:
354202Sbinkertn@umich.edu
364997Sgblack@eecs.umich.edu *****************************************************************************/
374202Sbinkertn@umich.edu
384835Sgblack@eecs.umich.edu
394661Sksewell@umich.edu#include "common.h"
404835Sgblack@eecs.umich.edu
414997Sgblack@eecs.umich.eduSC_MODULE( stimulus )
424202Sbinkertn@umich.edu{
434997Sgblack@eecs.umich.edu    SC_HAS_PROCESS( stimulus );
444997Sgblack@eecs.umich.edu
452086SN/A    sc_in_clk clk;
464202Sbinkertn@umich.edu
474202Sbinkertn@umich.edu    sc_signal<bool>&             reset ;
484202Sbinkertn@umich.edu    sc_signal_bool_vector2&      out_value1;     // Output  port
494202Sbinkertn@umich.edu    sc_signal_bool_vector2&      out_value2;     // Output  port
504202Sbinkertn@umich.edu    sc_signal_bool_vector3&      out_value3;     // Output  port
512086SN/A    sc_signal_bool_vector3&      out_value4;     // Output  port
524202Sbinkertn@umich.edu    sc_signal<bool>&             out_valid;                         // Output  port
534202Sbinkertn@umich.edu    const sc_signal<bool>&       in_ack;
542086SN/A
554202Sbinkertn@umich.edu    //
564202Sbinkertn@umich.edu    // Constructor
574202Sbinkertn@umich.edu    //
584202Sbinkertn@umich.edu
594202Sbinkertn@umich.edu    stimulus(
604202Sbinkertn@umich.edu        sc_module_name    NAME,      // reference name
61        sc_clock&      CLK,          // clock
62        sc_signal<bool>& RESET,
63        sc_signal_bool_vector2&            OUT_VALUE1,
64        sc_signal_bool_vector2&            OUT_VALUE2,
65        sc_signal_bool_vector3&            OUT_VALUE3,
66        sc_signal_bool_vector3&            OUT_VALUE4,
67        sc_signal<bool>&                   OUT_VALID,
68        const sc_signal<bool>&             IN_ACK
69        )
70        :
71          reset        (RESET),
72          out_value1    (OUT_VALUE1),
73          out_value2    (OUT_VALUE2),
74          out_value3    (OUT_VALUE3),
75          out_value4    (OUT_VALUE4),
76          out_valid     (OUT_VALID),
77          in_ack        (IN_ACK)
78   {
79     clk          (CLK);
80	 SC_CTHREAD( entry, clk.pos() );
81   };
82  void entry();
83};
84// EOF
85