scfx_params.hh (12853:e23d6f09069a) | scfx_params.hh (13325:86323e6cc8ec) |
---|---|
1/***************************************************************************** 2 3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 4 more contributor license agreements. See the NOTICE file distributed 5 with this work for additional information regarding copyright ownership. 6 Accellera licenses this file to you under the Apache License, Version 2.0 7 (the "License"); you may not use this file except in compliance with the 8 License. You may obtain a copy of the License at --- 33 unchanged lines hidden (view full) --- 42// Revision 1.3 2006/01/13 18:53:58 acg 43// Andy Goodrich: added $Log command so that CVS comments are reproduced in 44// the source. 45// 46 47#ifndef __SYSTEMC_EXT_DT_FX_SCFX_PARAMS_HH__ 48#define __SYSTEMC_EXT_DT_FX_SCFX_PARAMS_HH__ 49 | 1/***************************************************************************** 2 3 Licensed to Accellera Systems Initiative Inc. (Accellera) under one or 4 more contributor license agreements. See the NOTICE file distributed 5 with this work for additional information regarding copyright ownership. 6 Accellera licenses this file to you under the Apache License, Version 2.0 7 (the "License"); you may not use this file except in compliance with the 8 License. You may obtain a copy of the License at --- 33 unchanged lines hidden (view full) --- 42// Revision 1.3 2006/01/13 18:53:58 acg 43// Andy Goodrich: added $Log command so that CVS comments are reproduced in 44// the source. 45// 46 47#ifndef __SYSTEMC_EXT_DT_FX_SCFX_PARAMS_HH__ 48#define __SYSTEMC_EXT_DT_FX_SCFX_PARAMS_HH__ 49 |
50#include "messages.hh" |
|
50#include "sc_fxcast_switch.hh" 51#include "sc_fxtype_params.hh" 52 53namespace sc_dt 54{ 55 56// classes defined in this module 57class scfx_params; --- 38 unchanged lines hidden (view full) --- 96 97// constructor 98inline scfx_params::scfx_params(const sc_fxtype_params &type_params_, 99 sc_enc enc_, 100 const sc_fxcast_switch &cast_sw) : 101 m_type_params(type_params_), m_enc(enc_), m_cast_switch(cast_sw) 102{ 103 if (m_enc == SC_US_ && m_type_params.o_mode() == SC_WRAP_SM) { | 51#include "sc_fxcast_switch.hh" 52#include "sc_fxtype_params.hh" 53 54namespace sc_dt 55{ 56 57// classes defined in this module 58class scfx_params; --- 38 unchanged lines hidden (view full) --- 97 98// constructor 99inline scfx_params::scfx_params(const sc_fxtype_params &type_params_, 100 sc_enc enc_, 101 const sc_fxcast_switch &cast_sw) : 102 m_type_params(type_params_), m_enc(enc_), m_cast_switch(cast_sw) 103{ 104 if (m_enc == SC_US_ && m_type_params.o_mode() == SC_WRAP_SM) { |
104 SC_REPORT_ERROR("invalid overflow mode", 105 "SC_WRAP_SM not defined for unsigned numbers"); | 105 SC_REPORT_ERROR(sc_core::SC_ID_INVALID_O_MODE_, 106 sc_core::SC_ID_WRAP_SM_NOT_DEFINED_); |
106 // may continue, if suppressed 107 } 108} 109 110// query functions 111inline const sc_fxtype_params & 112scfx_params::type_params() const 113{ --- 69 unchanged lines hidden --- | 107 // may continue, if suppressed 108 } 109} 110 111// query functions 112inline const sc_fxtype_params & 113scfx_params::type_params() const 114{ --- 69 unchanged lines hidden --- |