sc_signal.cpp
来自「基于4个mips核的noc设计」· C++ 代码 · 共 77 行
CPP
77 行
/***************************************************************************** The following code is derived, directly or indirectly, from the SystemC source code Copyright (c) 1996-2002 by all Contributors. All Rights reserved. The contents of this file are subject to the restrictions and limitations set forth in the SystemC Open Source License Version 2.3 (the "License"); You may not use this file except in compliance with such restrictions and limitations. You may obtain instructions on how to receive a copy of the License at http://www.systemc.org/. Software distributed by Contributors under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. *****************************************************************************//***************************************************************************** sc_signal.cpp -- The sc_signal<T> primitive channel class. Original Author: Martin Janssen, Synopsys, Inc., 2001-05-21 *****************************************************************************//***************************************************************************** MODIFICATION LOG - modifiers, enter your name, affiliation, date and changes you are making here. Name, Affiliation, Date: Description of Modification: *****************************************************************************/#include "systemc/communication/sc_communication_ids.h"#include "systemc/communication/sc_signal.h"// to avoid code bloat in sc_signal<T>voidsc_signal_invalid_writer( const char* name, const char* kind, const char* first_writer, const char* second_writer ){ char msg[BUFSIZ]; sprintf( msg, "\n signal `%s' (%s)" "\n first driver `%s'" "\n second driver `%s'", name, kind, first_writer, second_writer ); SC_REPORT_ERROR( SC_ID_MORE_THAN_ONE_SIGNAL_DRIVER_, msg );}// ----------------------------------------------------------------------------// CLASS : sc_signal<bool>//// Specialization of sc_signal<T> for type bool.// ----------------------------------------------------------------------------const char* const sc_signal<bool>::kind_string = "sc_signal";// ----------------------------------------------------------------------------// CLASS : sc_signal<sc_logic>//// Specialization of sc_signal<T> for type sc_logic.// ----------------------------------------------------------------------------const char* const sc_signal<sc_logic>::kind_string = "sc_signal";// Taf!
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?