sc_bit.cc (13322:7391057615bd) | sc_bit.cc (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 --- 44 unchanged lines hidden (view full) --- 53// 54// Revision 1.3 2006/01/13 18:53:53 acg 55// Andy Goodrich: added $Log command so that CVS comments are reproduced in 56// the source. 57// 58 59#include <sstream> 60 | 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 --- 44 unchanged lines hidden (view full) --- 53// 54// Revision 1.3 2006/01/13 18:53:53 acg 55// Andy Goodrich: added $Log command so that CVS comments are reproduced in 56// the source. 57// 58 59#include <sstream> 60 |
61#include "systemc/ext/dt/bit/messages.hh" |
|
61#include "systemc/ext/dt/bit/sc_bit.hh" 62#include "systemc/ext/dt/bit/sc_logic.hh" 63#include "systemc/ext/utils/messages.hh" 64#include "systemc/ext/utils/sc_report_handler.hh" 65 66namespace sc_dt 67{ 68 --- 5 unchanged lines hidden (view full) --- 74// ---------------------------------------------------------------------------- 75 76// support methods 77void 78sc_bit::invalid_value(char c) 79{ 80 std::stringstream msg; 81 msg << "sc_bit( '" << c << "' )"; | 62#include "systemc/ext/dt/bit/sc_bit.hh" 63#include "systemc/ext/dt/bit/sc_logic.hh" 64#include "systemc/ext/utils/messages.hh" 65#include "systemc/ext/utils/sc_report_handler.hh" 66 67namespace sc_dt 68{ 69 --- 5 unchanged lines hidden (view full) --- 75// ---------------------------------------------------------------------------- 76 77// support methods 78void 79sc_bit::invalid_value(char c) 80{ 81 std::stringstream msg; 82 msg << "sc_bit( '" << c << "' )"; |
82 SC_REPORT_ERROR("(E204) value is not valid", msg.str().c_str()); | 83 SC_REPORT_ERROR(sc_core::SC_ID_VALUE_NOT_VALID_, msg.str().c_str()); |
83 sc_core::sc_abort(); // can't recover from here 84} 85 86void 87sc_bit::invalid_value(int i) 88{ 89 std::stringstream msg; 90 msg << "sc_bit( " << i << " )"; | 84 sc_core::sc_abort(); // can't recover from here 85} 86 87void 88sc_bit::invalid_value(int i) 89{ 90 std::stringstream msg; 91 msg << "sc_bit( " << i << " )"; |
91 SC_REPORT_ERROR("(E204) value is not valid", msg.str().c_str()); | 92 SC_REPORT_ERROR(sc_core::SC_ID_VALUE_NOT_VALID_, msg.str().c_str()); |
92 sc_core::sc_abort(); // can't recover from here 93} 94 95// constructors 96sc_bit::sc_bit(const sc_logic &a) : m_val(a.to_bool()) // non-VSIA 97{ 98 sc_deprecated_sc_bit(); 99} --- 29 unchanged lines hidden --- | 93 sc_core::sc_abort(); // can't recover from here 94} 95 96// constructors 97sc_bit::sc_bit(const sc_logic &a) : m_val(a.to_bool()) // non-VSIA 98{ 99 sc_deprecated_sc_bit(); 100} --- 29 unchanged lines hidden --- |