Jump to content

Search the Community

Showing results for tags 'sc_fix datatype'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Accellera Systems Initiative
    • Information
    • Announcements
    • In the News
  • SystemC
    • SystemC Language
    • SystemC AMS (Analog/Mixed-Signal)
    • SystemC TLM (Transaction-level Modeling)
    • SystemC Verification (UVM-SystemC, SCV)
    • SystemC CCI (Configuration, Control & Inspection)
    • SystemC Datatypes
  • UVM (Universal Verification Methodology)
    • UVM 2017 - Methodology and BCL Forum
    • UVM SystemVerilog Discussions
    • UVM Simulator Specific Issues
    • UVM Commercial Announcements
    • UVM (Pre-IEEE) Methodology and BCL Forum
    • UVM 1.2 Public Review
  • Portable Stimulus
    • Portable Stimulus Pre-Release Discussion
    • Portable Stimulus 1.0
  • IP Security
    • IP Security Assurance Whitepaper Discussion
  • IP-XACT
    • IP-XACT Discussion
  • IEEE 1735/IP Encryption
    • IEEE 1735/IP Encryption Discussion
  • OCP (Open Core Protocol)
  • UCIS (Unified Coverage Interoperability Standard)
  • Commercial Announcements
    • Announcements

Categories

  • SystemC
  • UVM
  • UCIS
  • IEEE 1735/IP Encryption

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Biography


Location


Interests


Occupation


Company

Found 1 result

  1. Hello, please let me ask a trivial question. How to change the integer bit length of "sc_fix" variable dynamically after its initialization? As far as I know "sc_fix" variable can be configured dynamically, though "sc_fixed" is not. Many thanks in advance. int sc_main( int argv, char* argc[]) { sc_fix var_1( 16, 4, SC_RND, SC_SAT); sc_fix var_2( 16, 4, SC_RND, SC_SAT); sc_fix var_3( 16, 4, SC_RND, SC_SAT); var_1 = 0.5; var_2 = 1.125; var_3 = 0.7; var_1 = var_2 + var_3; // *** at this moment, I'd like to change var_1's integer bit length to 8. *** var_1 = sc_fix( 16, 8, SC_RND, SC_SAT); // This does not work. // further processing,...... return 0; }
×
×
  • Create New...