sc_bit.cc (13032:35f2d72d73c8) sc_bit.cc (13160:1e959d3afc64)
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

--- 63 unchanged lines hidden (view full) ---

72// Note: VSIA compatibility indicated.
73// ----------------------------------------------------------------------------
74
75// support methods
76void
77sc_bit::invalid_value(char c)
78{
79 std::stringstream msg;
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

--- 63 unchanged lines hidden (view full) ---

72// Note: VSIA compatibility indicated.
73// ----------------------------------------------------------------------------
74
75// support methods
76void
77sc_bit::invalid_value(char c)
78{
79 std::stringstream msg;
80 msg << "sc_bit('" << c << "')";
81 SC_REPORT_ERROR("value is not valid", msg.str().c_str());
80 msg << "sc_bit( '" << c << "' )";
81 SC_REPORT_ERROR("(E204) value is not valid", msg.str().c_str());
82 sc_core::sc_abort(); // can't recover from here
83}
84
85void
86sc_bit::invalid_value(int i)
87{
88 std::stringstream msg;
82 sc_core::sc_abort(); // can't recover from here
83}
84
85void
86sc_bit::invalid_value(int i)
87{
88 std::stringstream msg;
89 msg << "sc_bit(" << i << ")";
90 SC_REPORT_ERROR("value is not valid", msg.str().c_str());
89 msg << "sc_bit( " << i << " )";
90 SC_REPORT_ERROR("(E204) value is not valid", msg.str().c_str());
91 sc_core::sc_abort(); // can't recover from here
92}
93
94// constructors
95sc_bit::sc_bit(const sc_logic &a) : m_val(a.to_bool()) // non-VSIA
96{
97 sc_deprecated_sc_bit();
98}

--- 29 unchanged lines hidden ---
91 sc_core::sc_abort(); // can't recover from here
92}
93
94// constructors
95sc_bit::sc_bit(const sc_logic &a) : m_val(a.to_bool()) // non-VSIA
96{
97 sc_deprecated_sc_bit();
98}

--- 29 unchanged lines hidden ---