scx_signal_unsigned.h (12922:a4f51f3405ac) | scx_signal_unsigned.h (13324:c8b709468e61) |
---|---|
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 --- 1729 unchanged lines hidden (view full) --- 1738 1739//------------------------------------------------------------------------------ 1740//"sc_unsigned_part_if::default methods" 1741// 1742// These versions just produce errors if they are not overloaded but used. 1743//------------------------------------------------------------------------------ 1744sc_dt::sc_unsigned* sc_unsigned_part_if::part_read_target() 1745{ | 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 --- 1729 unchanged lines hidden (view full) --- 1738 1739//------------------------------------------------------------------------------ 1740//"sc_unsigned_part_if::default methods" 1741// 1742// These versions just produce errors if they are not overloaded but used. 1743//------------------------------------------------------------------------------ 1744sc_dt::sc_unsigned* sc_unsigned_part_if::part_read_target() 1745{ |
1746 SC_REPORT_ERROR( "attempted specalized signal operation on " 1747 "non-specialized signal", "int" ); | 1746 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" ); |
1748 return 0; 1749} 1750sc_dt::sc_unsigned sc_unsigned_part_if::read_part( int /*left*/, int /*right*/ ) const 1751{ | 1747 return 0; 1748} 1749sc_dt::sc_unsigned sc_unsigned_part_if::read_part( int /*left*/, int /*right*/ ) const 1750{ |
1752 SC_REPORT_ERROR( "attempted specalized signal operation on " 1753 "non-specialized signal", "int" ); | 1751 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" ); |
1754 return sc_dt::sc_unsigned(1); 1755} 1756sc_unsigned_sigref& sc_unsigned_part_if::select_part(int /*left*/, int /*right*/) 1757{ | 1752 return sc_dt::sc_unsigned(1); 1753} 1754sc_unsigned_sigref& sc_unsigned_part_if::select_part(int /*left*/, int /*right*/) 1755{ |
1758 SC_REPORT_ERROR( "attempted specalized signal operation on " 1759 "non-specialized signal", "int" ); | 1756 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" ); |
1760 return *(sc_unsigned_sigref*)0; 1761} 1762void sc_unsigned_part_if::write_part( sc_dt::int64 v, int /*left*/, int /*right*/ ) 1763{ | 1757 return *(sc_unsigned_sigref*)0; 1758} 1759void sc_unsigned_part_if::write_part( sc_dt::int64 v, int /*left*/, int /*right*/ ) 1760{ |
1764 SC_REPORT_ERROR( "attempted specalized signal operation on " 1765 "non-specialized signal", "int" ); | 1761 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" ); |
1766} 1767void sc_unsigned_part_if::write_part( sc_dt::uint64 v, int /*left*/, int /*right*/ ) 1768{ | 1762} 1763void sc_unsigned_part_if::write_part( sc_dt::uint64 v, int /*left*/, int /*right*/ ) 1764{ |
1769 SC_REPORT_ERROR( "attempted specalized signal operation on " 1770 "non-specialized signal", "int" ); | 1765 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" ); |
1771} 1772void sc_unsigned_part_if::write_part( 1773 const sc_dt::sc_signed& v, int /*left*/, int /*right*/ ) 1774{ | 1766} 1767void sc_unsigned_part_if::write_part( 1768 const sc_dt::sc_signed& v, int /*left*/, int /*right*/ ) 1769{ |
1775 SC_REPORT_ERROR( "attempted specalized signal operation on " 1776 "non-specialized signal", "int" ); | 1770 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" ); |
1777} 1778void sc_unsigned_part_if::write_part( 1779 const sc_dt::sc_unsigned& v, int /*left*/, int /*right*/ ) 1780{ | 1771} 1772void sc_unsigned_part_if::write_part( 1773 const sc_dt::sc_unsigned& v, int /*left*/, int /*right*/ ) 1774{ |
1781 SC_REPORT_ERROR( "attempted specalized signal operation on " 1782 "non-specialized signal", "int" ); | 1775 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" ); |
1783} 1784 1785 1786 1787//------------------------------------------------------------------------------ 1788//"sc_unsigned_sigref::concate_set" 1789// 1790// These methods assign this object instance's value from the supplied --- 44 unchanged lines hidden --- | 1776} 1777 1778 1779 1780//------------------------------------------------------------------------------ 1781//"sc_unsigned_sigref::concate_set" 1782// 1783// These methods assign this object instance's value from the supplied --- 44 unchanged lines hidden --- |