sc_lv_base.cc (13138:31951157e41e) | sc_lv_base.cc (13322:7391057615bd) |
---|---|
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 --- 37 unchanged lines hidden (view full) --- 46// Revision 1.3 2006/01/13 18:53:53 acg 47// Andy Goodrich: added $Log command so that CVS comments are reproduced in 48// the source. 49// 50 51#include <sstream> 52 53#include "systemc/ext/dt/bit/sc_lv_base.hh" | 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 --- 37 unchanged lines hidden (view full) --- 46// Revision 1.3 2006/01/13 18:53:53 acg 47// Andy Goodrich: added $Log command so that CVS comments are reproduced in 48// the source. 49// 50 51#include <sstream> 52 53#include "systemc/ext/dt/bit/sc_lv_base.hh" |
54#include "systemc/ext/utils/messages.hh" |
|
54 55namespace sc_dt 56{ 57 58// explicit template instantiations 59template class sc_proxy<sc_lv_base>; 60template class sc_proxy<sc_bv_base>; 61 62void 63sc_proxy_out_of_bounds(const char *msg, int64 val) 64{ 65 std::stringstream ss; 66 if (msg != NULL) 67 ss << msg; 68 if (val != 0) 69 ss << val; | 55 56namespace sc_dt 57{ 58 59// explicit template instantiations 60template class sc_proxy<sc_lv_base>; 61template class sc_proxy<sc_bv_base>; 62 63void 64sc_proxy_out_of_bounds(const char *msg, int64 val) 65{ 66 std::stringstream ss; 67 if (msg != NULL) 68 ss << msg; 69 if (val != 0) 70 ss << val; |
70 SC_REPORT_ERROR("(E5) out of bounds", ss.str().c_str()); | 71 SC_REPORT_ERROR(sc_core::SC_ID_OUT_OF_BOUNDS_, ss.str().c_str()); |
71} 72 73// ---------------------------------------------------------------------------- 74// CLASS : sc_lv_base 75// 76// Arbitrary size logic vector base class. 77// ---------------------------------------------------------------------------- 78 --- 102 unchanged lines hidden --- | 72} 73 74// ---------------------------------------------------------------------------- 75// CLASS : sc_lv_base 76// 77// Arbitrary size logic vector base class. 78// ---------------------------------------------------------------------------- 79 --- 102 unchanged lines hidden --- |