Deleted Added
sdiff udiff text old ( 12853:e23d6f09069a ) new ( 13325:86323e6cc8ec )
full compact
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 "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) {
104 SC_REPORT_ERROR("invalid overflow mode",
105 "SC_WRAP_SM not defined for unsigned numbers");
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 ---