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_fxcast_switch.cpp - 2312027Sjungma@eit.uni-kl.de 2412027Sjungma@eit.uni-kl.de Original Author: Martin Janssen, Synopsys, Inc. 2512027Sjungma@eit.uni-kl.de 2612027Sjungma@eit.uni-kl.de *****************************************************************************/ 2712027Sjungma@eit.uni-kl.de 2812027Sjungma@eit.uni-kl.de/***************************************************************************** 2912027Sjungma@eit.uni-kl.de 3012027Sjungma@eit.uni-kl.de MODIFICATION LOG - modifiers, enter your name, affiliation, date and 3112027Sjungma@eit.uni-kl.de changes you are making here. 3212027Sjungma@eit.uni-kl.de 3312027Sjungma@eit.uni-kl.de Name, Affiliation, Date: Gene Bushuyev, Synopsys, Inc. 3412027Sjungma@eit.uni-kl.de Description of Modification: - fix explicit instantiation syntax. 3512027Sjungma@eit.uni-kl.de 3612027Sjungma@eit.uni-kl.de Name, Affiliation, Date: 3712027Sjungma@eit.uni-kl.de Description of Modification: 3812027Sjungma@eit.uni-kl.de 3912027Sjungma@eit.uni-kl.de *****************************************************************************/ 4012027Sjungma@eit.uni-kl.de 4112027Sjungma@eit.uni-kl.de 4212027Sjungma@eit.uni-kl.de// $Log: sc_fxcast_switch.cpp,v $ 4312027Sjungma@eit.uni-kl.de// Revision 1.1.1.1 2006/12/15 20:20:04 acg 4412027Sjungma@eit.uni-kl.de// SystemC 2.3 4512027Sjungma@eit.uni-kl.de// 4612027Sjungma@eit.uni-kl.de// Revision 1.3 2006/01/13 18:53:57 acg 4712027Sjungma@eit.uni-kl.de// Andy Goodrich: added $Log command so that CVS comments are reproduced in 4812027Sjungma@eit.uni-kl.de// the source. 4912027Sjungma@eit.uni-kl.de// 5012027Sjungma@eit.uni-kl.de 5112027Sjungma@eit.uni-kl.de#include "sysc/datatypes/fx/sc_fxcast_switch.h" 5212027Sjungma@eit.uni-kl.de 5312027Sjungma@eit.uni-kl.de 5412027Sjungma@eit.uni-kl.denamespace sc_dt 5512027Sjungma@eit.uni-kl.de{ 5612027Sjungma@eit.uni-kl.de 5712027Sjungma@eit.uni-kl.de// ---------------------------------------------------------------------------- 5812027Sjungma@eit.uni-kl.de// CLASS : sc_fxcast_switch 5912027Sjungma@eit.uni-kl.de// 6012027Sjungma@eit.uni-kl.de// Fixed-point cast switch class. 6112027Sjungma@eit.uni-kl.de// ---------------------------------------------------------------------------- 6212027Sjungma@eit.uni-kl.de 6312027Sjungma@eit.uni-kl.deconst std::string 6412027Sjungma@eit.uni-kl.desc_fxcast_switch::to_string() const 6512027Sjungma@eit.uni-kl.de{ 6612027Sjungma@eit.uni-kl.de return sc_dt::to_string( m_sw ); 6712027Sjungma@eit.uni-kl.de} 6812027Sjungma@eit.uni-kl.de 6912027Sjungma@eit.uni-kl.de 7012027Sjungma@eit.uni-kl.devoid 7112027Sjungma@eit.uni-kl.desc_fxcast_switch::print( ::std::ostream& os ) const 7212027Sjungma@eit.uni-kl.de{ 7312027Sjungma@eit.uni-kl.de os << sc_dt::to_string( m_sw ); 7412027Sjungma@eit.uni-kl.de} 7512027Sjungma@eit.uni-kl.de 7612027Sjungma@eit.uni-kl.devoid 7712027Sjungma@eit.uni-kl.desc_fxcast_switch::dump( ::std::ostream& os ) const 7812027Sjungma@eit.uni-kl.de{ 7912027Sjungma@eit.uni-kl.de os << "sc_fxcast_switch" << ::std::endl; 8012027Sjungma@eit.uni-kl.de os << "(" << ::std::endl; 8112027Sjungma@eit.uni-kl.de os << "sw = " << sc_dt::to_string( m_sw ) << ::std::endl; 8212027Sjungma@eit.uni-kl.de os << ")" << ::std::endl; 8312027Sjungma@eit.uni-kl.de} 8412027Sjungma@eit.uni-kl.de 8512027Sjungma@eit.uni-kl.de} // namespace sc_dt 8612027Sjungma@eit.uni-kl.de 8712027Sjungma@eit.uni-kl.de 8812027Sjungma@eit.uni-kl.de// Taf! 89