scx_signal_signed.h (12922:a4f51f3405ac) scx_signal_signed.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

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

1739//------------------------------------------------------------------------------
1740//"sc_signed_part_if::default methods"
1741//
1742// These versions just produce errors if they are not overloaded but used.
1743//------------------------------------------------------------------------------
1744
1745sc_signed* sc_signed_part_if::part_read_target()
1746{
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

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

1739//------------------------------------------------------------------------------
1740//"sc_signed_part_if::default methods"
1741//
1742// These versions just produce errors if they are not overloaded but used.
1743//------------------------------------------------------------------------------
1744
1745sc_signed* sc_signed_part_if::part_read_target()
1746{
1747 SC_REPORT_ERROR( "attempted specalized signal operation on "
1748 "non-specialized signal", "int" );
1747 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" );
1749 return 0;
1750}
1751sc_signed sc_signed_part_if::read_part( int /*left*/, int /*right*/ ) const
1752{
1748 return 0;
1749}
1750sc_signed sc_signed_part_if::read_part( int /*left*/, int /*right*/ ) const
1751{
1753 SC_REPORT_ERROR( "attempted specalized signal operation on "
1754 "non-specialized signal", "int" );
1752 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" );
1755 return sc_signed(1);
1756}
1757sc_signed_sigref& sc_signed_part_if::select_part( int /*left*/, int /*right*/ )
1758{
1753 return sc_signed(1);
1754}
1755sc_signed_sigref& sc_signed_part_if::select_part( int /*left*/, int /*right*/ )
1756{
1759 SC_REPORT_ERROR( "attempted specalized signal operation on "
1760 "non-specialized signal", "int" );
1757 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" );
1761 return *(sc_signed_sigref*)0;
1762}
1763void sc_signed_part_if::write_part( int64 v, int /*left*/, int /*right*/ )
1764{
1758 return *(sc_signed_sigref*)0;
1759}
1760void sc_signed_part_if::write_part( int64 v, int /*left*/, int /*right*/ )
1761{
1765 SC_REPORT_ERROR( "attempted specalized signal operation on "
1766 "non-specialized signal", "int" );
1762 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" );
1767}
1768void sc_signed_part_if::write_part( uint64 v, int /*left*/, int /*right*/ )
1769{
1763}
1764void sc_signed_part_if::write_part( uint64 v, int /*left*/, int /*right*/ )
1765{
1770 SC_REPORT_ERROR( "attempted specalized signal operation on "
1771 "non-specialized signal", "int" );
1766 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" );
1772}
1773void sc_signed_part_if::write_part(
1774 const sc_signed& v, int /*left*/, int /*right*/ )
1775{
1767}
1768void sc_signed_part_if::write_part(
1769 const sc_signed& v, int /*left*/, int /*right*/ )
1770{
1776 SC_REPORT_ERROR( "attempted specalized signal operation on "
1777 "non-specialized signal", "int" );
1771 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" );
1778}
1779void sc_signed_part_if::write_part(
1780 const sc_unsigned& v, int /*left*/, int /*right*/ )
1781{
1772}
1773void sc_signed_part_if::write_part(
1774 const sc_unsigned& v, int /*left*/, int /*right*/ )
1775{
1782 SC_REPORT_ERROR( "attempted specalized signal operation on "
1783 "non-specialized signal", "int" );
1776 SC_REPORT_ERROR( SC_ID_OPERATION_ON_NON_SPECIALIZED_SIGNAL_, "int" );
1784}
1785
1786
1787//------------------------------------------------------------------------------
1788//"sc_signed_sigref::concate_set"
1789//
1790// These methods assign this object instance's value from the supplied
1791// value starting at the supplied bit within that value.

--- 42 unchanged lines hidden ---
1777}
1778
1779
1780//------------------------------------------------------------------------------
1781//"sc_signed_sigref::concate_set"
1782//
1783// These methods assign this object instance's value from the supplied
1784// value starting at the supplied bit within that value.

--- 42 unchanged lines hidden ---