Jump to content

Patrick

Members
  • Content Count

    1
  • Joined

  • Last visited

About Patrick

  • Rank
    Member

Profile Information

  • Location
    Oldenburg, Germany

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, while implementing a project I noticed that my calculations using sc_dt::sc_ufix won't get more accurate when increasing the fractional bit width. As you can see in the following example I'm increasing the number of fractional bits and calculate 1/3: #include <iostream> #include <iomanip> #include <systemc.h> int sc_main(int argc, char *argv[]) { { int i = 9; do { sc_fxtype_context evalContext(sc_fxtype_params(i, 8)); sc_dt::sc_ufix a = 1; sc_dt::sc_ufix b = 3; sc_dt::sc_ufix r = a / b; std::cout << std::setw(3) <
×
×
  • Create New...