112027Sjungma@eit.uni-kl.de/***************************************************************************** 212027Sjungma@eit.uni-kl.de 312027Sjungma@eit.uni-kl.de Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 412027Sjungma@eit.uni-kl.de more contributor license agreements. See the NOTICE file distributed 512027Sjungma@eit.uni-kl.de with this work for additional information regarding copyright ownership. 612027Sjungma@eit.uni-kl.de Accellera licenses this file to you under the Apache License, Version 2.0 712027Sjungma@eit.uni-kl.de (the "License"); you may not use this file except in compliance with the 812027Sjungma@eit.uni-kl.de License. You may obtain a copy of the License at 912027Sjungma@eit.uni-kl.de 1012027Sjungma@eit.uni-kl.de http://www.apache.org/licenses/LICENSE-2.0 1112027Sjungma@eit.uni-kl.de 1212027Sjungma@eit.uni-kl.de Unless required by applicable law or agreed to in writing, software 1312027Sjungma@eit.uni-kl.de distributed under the License is distributed on an "AS IS" BASIS, 1412027Sjungma@eit.uni-kl.de WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 1512027Sjungma@eit.uni-kl.de implied. See the License for the specific language governing 1612027Sjungma@eit.uni-kl.de permissions and limitations under the License. 1712027Sjungma@eit.uni-kl.de 1812027Sjungma@eit.uni-kl.de *****************************************************************************/ 1912027Sjungma@eit.uni-kl.de 2012027Sjungma@eit.uni-kl.de/***************************************************************************** 2112027Sjungma@eit.uni-kl.de 2212027Sjungma@eit.uni-kl.de sc_cthread_process.cpp -- Clocked thread implementation. 2312027Sjungma@eit.uni-kl.de 2412027Sjungma@eit.uni-kl.de Original Author: Andy Goodrich, Forte Design Systems, 4 August 2005 2512027Sjungma@eit.uni-kl.de 2612027Sjungma@eit.uni-kl.de 2712027Sjungma@eit.uni-kl.de CHANGE LOG APPEARS AT THE END OF THE FILE 2812027Sjungma@eit.uni-kl.de *****************************************************************************/ 2912027Sjungma@eit.uni-kl.de 3012027Sjungma@eit.uni-kl.de#include "sysc/kernel/sc_cthread_process.h" 3112027Sjungma@eit.uni-kl.de#include "sysc/kernel/sc_simcontext_int.h" 3212027Sjungma@eit.uni-kl.de 3312027Sjungma@eit.uni-kl.denamespace sc_core { 3412027Sjungma@eit.uni-kl.de 3512027Sjungma@eit.uni-kl.de//------------------------------------------------------------------------------ 3612027Sjungma@eit.uni-kl.de//"sc_cthread_process::dont_initialize" 3712027Sjungma@eit.uni-kl.de// 3812027Sjungma@eit.uni-kl.de// This virtual method sets the initialization switch for this object instance. 3912027Sjungma@eit.uni-kl.de//------------------------------------------------------------------------------ 4012027Sjungma@eit.uni-kl.devoid sc_cthread_process::dont_initialize( bool /* dont */ ) 4112027Sjungma@eit.uni-kl.de{ 4212027Sjungma@eit.uni-kl.de SC_REPORT_WARNING( SC_ID_DONT_INITIALIZE_, 0 ); 4312027Sjungma@eit.uni-kl.de} 4412027Sjungma@eit.uni-kl.de 4512027Sjungma@eit.uni-kl.de//------------------------------------------------------------------------------ 4612027Sjungma@eit.uni-kl.de//"sc_cthread_process::sc_cthread_process" 4712027Sjungma@eit.uni-kl.de// 4812027Sjungma@eit.uni-kl.de// This is the object instance constructor for this class. 4912027Sjungma@eit.uni-kl.de//------------------------------------------------------------------------------ 5012027Sjungma@eit.uni-kl.desc_cthread_process::sc_cthread_process( const char* name_p, 5112027Sjungma@eit.uni-kl.de bool free_host, SC_ENTRY_FUNC method_p, 5212027Sjungma@eit.uni-kl.de sc_process_host* host_p, const sc_spawn_options* opt_p 5312027Sjungma@eit.uni-kl.de): 5412027Sjungma@eit.uni-kl.de sc_thread_process(name_p, free_host, method_p, host_p, opt_p) 5512027Sjungma@eit.uni-kl.de{ 5612027Sjungma@eit.uni-kl.de m_dont_init = true; 5712027Sjungma@eit.uni-kl.de m_process_kind = SC_CTHREAD_PROC_; 5812027Sjungma@eit.uni-kl.de} 5912027Sjungma@eit.uni-kl.de 6012027Sjungma@eit.uni-kl.de//------------------------------------------------------------------------------ 6112027Sjungma@eit.uni-kl.de//"sc_cthread_process::~sc_cthread_process" 6212027Sjungma@eit.uni-kl.de// 6312027Sjungma@eit.uni-kl.de// This is the object instance constructor for this class. 6412027Sjungma@eit.uni-kl.de//------------------------------------------------------------------------------ 6512027Sjungma@eit.uni-kl.desc_cthread_process::~sc_cthread_process() 6612027Sjungma@eit.uni-kl.de{ 6712027Sjungma@eit.uni-kl.de} 6812027Sjungma@eit.uni-kl.de 6912027Sjungma@eit.uni-kl.de} // namespace sc_core 7012027Sjungma@eit.uni-kl.de 7112027Sjungma@eit.uni-kl.de// $Log: sc_cthread_process.cpp,v $ 7212027Sjungma@eit.uni-kl.de// Revision 1.11 2011/08/26 20:46:09 acg 7312027Sjungma@eit.uni-kl.de// Andy Goodrich: moved the modification log to the end of the file to 7412027Sjungma@eit.uni-kl.de// eliminate source line number skew when check-ins are done. 7512027Sjungma@eit.uni-kl.de// 7612027Sjungma@eit.uni-kl.de// Revision 1.10 2011/08/15 16:43:24 acg 7712027Sjungma@eit.uni-kl.de// Torsten Maehne: changes to remove unused argument warnings. 7812027Sjungma@eit.uni-kl.de// 7912027Sjungma@eit.uni-kl.de// Revision 1.9 2011/02/18 20:27:14 acg 8012027Sjungma@eit.uni-kl.de// Andy Goodrich: Updated Copyrights. 8112027Sjungma@eit.uni-kl.de// 8212027Sjungma@eit.uni-kl.de// Revision 1.8 2011/02/13 21:47:37 acg 8312027Sjungma@eit.uni-kl.de// Andy Goodrich: update copyright notice. 8412027Sjungma@eit.uni-kl.de// 8512027Sjungma@eit.uni-kl.de// Revision 1.7 2011/02/11 13:25:24 acg 8612027Sjungma@eit.uni-kl.de// Andy Goodrich: Philipp A. Hartmann's changes: 8712027Sjungma@eit.uni-kl.de// (1) Removal of SC_CTHREAD method overloads. 8812027Sjungma@eit.uni-kl.de// (2) New exception processing code. 8912027Sjungma@eit.uni-kl.de// 9012027Sjungma@eit.uni-kl.de// Revision 1.6 2011/02/01 21:00:35 acg 9112027Sjungma@eit.uni-kl.de// Andy Goodrich: removed throw_reset as it is now handled by parent 9212027Sjungma@eit.uni-kl.de// sc_thread_process::throw_reset(). 9312027Sjungma@eit.uni-kl.de// 9412027Sjungma@eit.uni-kl.de// Revision 1.5 2011/01/18 20:10:44 acg 9512027Sjungma@eit.uni-kl.de// Andy Goodrich: changes for IEEE1666_2011 semantics. 9612027Sjungma@eit.uni-kl.de// 9712027Sjungma@eit.uni-kl.de// Revision 1.4 2009/07/28 01:10:53 acg 9812027Sjungma@eit.uni-kl.de// Andy Goodrich: updates for 2.3 release candidate. 9912027Sjungma@eit.uni-kl.de// 10012027Sjungma@eit.uni-kl.de// Revision 1.3 2009/05/22 16:06:29 acg 10112027Sjungma@eit.uni-kl.de// Andy Goodrich: process control updates. 10212027Sjungma@eit.uni-kl.de// 10312027Sjungma@eit.uni-kl.de// Revision 1.2 2008/05/22 17:06:25 acg 10412027Sjungma@eit.uni-kl.de// Andy Goodrich: updated copyright notice to include 2008. 10512027Sjungma@eit.uni-kl.de// 10612027Sjungma@eit.uni-kl.de// Revision 1.1.1.1 2006/12/15 20:20:05 acg 10712027Sjungma@eit.uni-kl.de// SystemC 2.3 10812027Sjungma@eit.uni-kl.de// 10912027Sjungma@eit.uni-kl.de// Revision 1.6 2006/04/20 17:08:16 acg 11012027Sjungma@eit.uni-kl.de// Andy Goodrich: 3.0 style process changes. 11112027Sjungma@eit.uni-kl.de// 11212027Sjungma@eit.uni-kl.de// Revision 1.5 2006/04/11 23:13:20 acg 11312027Sjungma@eit.uni-kl.de// Andy Goodrich: Changes for reduced reset support that only includes 11412027Sjungma@eit.uni-kl.de// sc_cthread, but has preliminary hooks for expanding to method and thread 11512027Sjungma@eit.uni-kl.de// processes also. 11612027Sjungma@eit.uni-kl.de// 11712027Sjungma@eit.uni-kl.de// Revision 1.4 2006/01/24 20:49:04 acg 11812027Sjungma@eit.uni-kl.de// Andy Goodrich: changes to remove the use of deprecated features within the 11912027Sjungma@eit.uni-kl.de// simulator, and to issue warning messages when deprecated features are used. 12012027Sjungma@eit.uni-kl.de// 12112027Sjungma@eit.uni-kl.de// Revision 1.3 2006/01/13 18:44:29 acg 12212027Sjungma@eit.uni-kl.de// Added $Log to record CVS changes into the source. 12312027Sjungma@eit.uni-kl.de// 124