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_communication_ids.h -- Report ids for the communication code. 2312027Sjungma@eit.uni-kl.de 2412027Sjungma@eit.uni-kl.de Original Author: Martin Janssen, Synopsys, Inc., 2002-01-17 2512027Sjungma@eit.uni-kl.de 2612027Sjungma@eit.uni-kl.de CHANGE LOG IS AT THE END OF THE FILE 2712027Sjungma@eit.uni-kl.de *****************************************************************************/ 2812027Sjungma@eit.uni-kl.de 2912027Sjungma@eit.uni-kl.de#ifndef SC_COMMUNICATION_IDS_H 3012027Sjungma@eit.uni-kl.de#define SC_COMMUNICATION_IDS_H 3112027Sjungma@eit.uni-kl.de 3212027Sjungma@eit.uni-kl.de 3312027Sjungma@eit.uni-kl.de#include "sysc/utils/sc_report.h" 3412027Sjungma@eit.uni-kl.de 3512027Sjungma@eit.uni-kl.de 3612027Sjungma@eit.uni-kl.de// ---------------------------------------------------------------------------- 3712027Sjungma@eit.uni-kl.de// Report ids (communication) 3812027Sjungma@eit.uni-kl.de// 3912027Sjungma@eit.uni-kl.de// Report ids in the range of 100-199. 4012027Sjungma@eit.uni-kl.de// ---------------------------------------------------------------------------- 4112027Sjungma@eit.uni-kl.de 4212027Sjungma@eit.uni-kl.de#ifndef SC_DEFINE_MESSAGE 4312027Sjungma@eit.uni-kl.de#define SC_DEFINE_MESSAGE(id,unused1,unused2) \ 4412027Sjungma@eit.uni-kl.de namespace sc_core { extern const char id[]; } 4512027Sjungma@eit.uni-kl.denamespace sc_core { 4612027Sjungma@eit.uni-kl.de extern const char SC_ID_REGISTER_ID_FAILED_[]; // in sc_report_handler.cpp 4712027Sjungma@eit.uni-kl.de} // namespace sc_core 4812027Sjungma@eit.uni-kl.de#endif 4912027Sjungma@eit.uni-kl.de 5012027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_PORT_OUTSIDE_MODULE_, 100, 5112027Sjungma@eit.uni-kl.de "port specified outside of module" ) 5212027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_CLOCK_PERIOD_ZERO_, 101, 5312027Sjungma@eit.uni-kl.de "sc_clock period is zero" ) 5412027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_CLOCK_HIGH_TIME_ZERO_, 102, 5512027Sjungma@eit.uni-kl.de "sc_clock high time is zero" ) 5612027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_CLOCK_LOW_TIME_ZERO_, 103, 5712027Sjungma@eit.uni-kl.de "sc_clock low time is zero" ) 5812027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_MORE_THAN_ONE_FIFO_READER_, 104, 5912027Sjungma@eit.uni-kl.de "sc_fifo<T> cannot have more than one reader" ) 6012027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_MORE_THAN_ONE_FIFO_WRITER_, 105, 6112027Sjungma@eit.uni-kl.de "sc_fifo<T> cannot have more than one writer" ) 6212027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_INVALID_FIFO_SIZE_, 106, 6312027Sjungma@eit.uni-kl.de "sc_fifo<T> must have a size of at least 1" ) 6412027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_BIND_IF_TO_PORT_, 107, 6512027Sjungma@eit.uni-kl.de "bind interface to port failed" ) 6612027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_BIND_PORT_TO_PORT_, 108, 6712027Sjungma@eit.uni-kl.de "bind parent port to port failed" ) 6812027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_COMPLETE_BINDING_, 109, 6912027Sjungma@eit.uni-kl.de "complete binding failed" ) 7012027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_INSERT_PORT_, 110, 7112027Sjungma@eit.uni-kl.de "insert port failed" ) 7212027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_REMOVE_PORT_, 111, 7312027Sjungma@eit.uni-kl.de "remove port failed" ) 7412027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_GET_IF_, 112, 7512027Sjungma@eit.uni-kl.de "get interface failed" ) 7612027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_INSERT_PRIM_CHANNEL_, 113, 7712027Sjungma@eit.uni-kl.de "insert primitive channel failed" ) 7812027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_REMOVE_PRIM_CHANNEL_, 114, 7912027Sjungma@eit.uni-kl.de "remove primitive channel failed" ) 8012027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_MORE_THAN_ONE_SIGNAL_DRIVER_, 115, 8112027Sjungma@eit.uni-kl.de "sc_signal<T> cannot have more than one driver" ) 8212027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_NO_DEFAULT_EVENT_, 116, 8312027Sjungma@eit.uni-kl.de "channel doesn't have a default event" ) 8412027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_RESOLVED_PORT_NOT_BOUND_, 117, 8512027Sjungma@eit.uni-kl.de "resolved port not bound to resolved signal" ) 8612027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_FIND_EVENT_, 118, 8712027Sjungma@eit.uni-kl.de "find event failed" ) 8812027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_INVALID_SEMAPHORE_VALUE_, 119, 8912027Sjungma@eit.uni-kl.de "sc_semaphore requires an initial value >= 0" ) 9012027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_HAS_NO_INTERFACE_, 120, 9112027Sjungma@eit.uni-kl.de "sc_export instance has no interface" ) 9212027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_INSERT_EXPORT_, 121, 9312027Sjungma@eit.uni-kl.de "insert sc_export failed" ) 9412027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_NOT_REGISTERED_, 123, 9512027Sjungma@eit.uni-kl.de "remove sc_export failed, sc_export not registered" ) 9612027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_NOT_BOUND_AFTER_CONSTRUCTION_, 124, 9712027Sjungma@eit.uni-kl.de "sc_export instance not bound to interface at end of construction" ) 9812027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_ATTEMPT_TO_WRITE_TO_CLOCK_, 125, 9912027Sjungma@eit.uni-kl.de "attempt to write the value of an sc_clock instance" ) 10012027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_SC_EXPORT_ALREADY_BOUND_, 126, 10112027Sjungma@eit.uni-kl.de "sc_export instance already bound" ) 10212027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, 127, 10312027Sjungma@eit.uni-kl.de "attempted specalized signal operation on non-specialized signal" ) 10412027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_ATTEMPT_TO_BIND_CLOCK_TO_OUTPUT_, 128, 10512027Sjungma@eit.uni-kl.de "attempted to bind sc_clock instance to sc_inout or sc_out" ) 10612027Sjungma@eit.uni-kl.deSC_DEFINE_MESSAGE( SC_ID_NO_ASYNC_UPDATE_, 129, 10712027Sjungma@eit.uni-kl.de "this build has no asynchronous update support" ) 10812027Sjungma@eit.uni-kl.de 10912027Sjungma@eit.uni-kl.de/* 11012027Sjungma@eit.uni-kl.de$Log: sc_communication_ids.h,v $ 11112027Sjungma@eit.uni-kl.deRevision 1.5 2011/08/26 20:45:39 acg 11212027Sjungma@eit.uni-kl.de Andy Goodrich: moved the modification log to the end of the file to 11312027Sjungma@eit.uni-kl.de eliminate source line number skew when check-ins are done. 11412027Sjungma@eit.uni-kl.de 11512027Sjungma@eit.uni-kl.deRevision 1.4 2011/04/19 02:36:26 acg 11612027Sjungma@eit.uni-kl.de Philipp A. Hartmann: new aysnc_update and mutex support. 11712027Sjungma@eit.uni-kl.de 11812027Sjungma@eit.uni-kl.deRevision 1.3 2011/02/18 20:23:45 acg 11912027Sjungma@eit.uni-kl.de Andy Goodrich: Copyright update. 12012027Sjungma@eit.uni-kl.de 12112027Sjungma@eit.uni-kl.deRevision 1.2 2011/02/14 17:50:16 acg 12212027Sjungma@eit.uni-kl.de Andy Goodrich: testing for sc_port and sc_export instantiations during 12312027Sjungma@eit.uni-kl.de end of elaboration and issuing appropriate error messages. 12412027Sjungma@eit.uni-kl.de 12512027Sjungma@eit.uni-kl.deRevision 1.1.1.1 2006/12/15 20:20:04 acg 12612027Sjungma@eit.uni-kl.deSystemC 2.3 12712027Sjungma@eit.uni-kl.de 12812027Sjungma@eit.uni-kl.deRevision 1.5 2006/01/25 00:31:11 acg 12912027Sjungma@eit.uni-kl.de Andy Goodrich: Changed over to use a standard message id of 13012027Sjungma@eit.uni-kl.de SC_ID_IEEE_1666_DEPRECATION for all deprecation messages. 13112027Sjungma@eit.uni-kl.de 13212027Sjungma@eit.uni-kl.deRevision 1.4 2006/01/24 20:46:31 acg 13312027Sjungma@eit.uni-kl.deAndy Goodrich: changes to eliminate use of deprecated features. For instance, 13412027Sjungma@eit.uni-kl.deusing notify(SC_ZERO_TIME) in place of notify_delayed(). 13512027Sjungma@eit.uni-kl.de 13612027Sjungma@eit.uni-kl.deRevision 1.3 2006/01/18 21:42:26 acg 13712027Sjungma@eit.uni-kl.deAndy Goodrich: Changes for check writer support, and tightening up sc_clock 13812027Sjungma@eit.uni-kl.deport usage. 13912027Sjungma@eit.uni-kl.de 14012027Sjungma@eit.uni-kl.deRevision 1.2 2006/01/03 23:18:26 acg 14112027Sjungma@eit.uni-kl.deChanged copyright to include 2006. 14212027Sjungma@eit.uni-kl.de 14312027Sjungma@eit.uni-kl.deRevision 1.1.1.1 2005/12/19 23:16:43 acg 14412027Sjungma@eit.uni-kl.deFirst check in of SystemC 2.1 into its own archive. 14512027Sjungma@eit.uni-kl.de 14612027Sjungma@eit.uni-kl.deRevision 1.12 2005/04/03 22:52:51 acg 14712027Sjungma@eit.uni-kl.deNamespace changes. 14812027Sjungma@eit.uni-kl.de 14912027Sjungma@eit.uni-kl.deRevision 1.11 2005/03/21 22:31:32 acg 15012027Sjungma@eit.uni-kl.deChanges to sc_core namespace. 15112027Sjungma@eit.uni-kl.de 15212027Sjungma@eit.uni-kl.deRevision 1.10 2004/10/28 00:21:48 acg 15312027Sjungma@eit.uni-kl.deAdded check that sc_export instances are not bound twice. 15412027Sjungma@eit.uni-kl.de 15512027Sjungma@eit.uni-kl.deRevision 1.9 2004/09/27 21:02:54 acg 15612027Sjungma@eit.uni-kl.deAndy Goodrich - Forte Design Systems, Inc. 15712027Sjungma@eit.uni-kl.de - Added a $Log comment so that CVS checkin comments will appear in 15812027Sjungma@eit.uni-kl.de checked out source. 15912027Sjungma@eit.uni-kl.de 16012027Sjungma@eit.uni-kl.de*/ 16112027Sjungma@eit.uni-kl.de 16212027Sjungma@eit.uni-kl.de#endif 16312027Sjungma@eit.uni-kl.de 16412027Sjungma@eit.uni-kl.de// Taf! 165