Jump to content

rayzekus

Members
  • Content Count

    8
  • Joined

  • Last visited

About rayzekus

  • Rank
    Member

Recent Profile Visitors

322 profile views
  1. Hi Ameya, I did have to enable "pthreads" for compiling the SystemC lib with Cygwin ... Do you know if GNU g++ would be better? Thx
  2. Hi Ameya, Thanks, your reply sounds like what is happening ... I am just a novice at this so here is what I know about my build environment ... I am running on a Window7 laptop, I compiled the SystemC library with Cygwin g++ (note: I am now compiling my code with g++ -std=c++11 not just g++) ... I write and compile my code in Eclipse(Neon) ... Q: I didn't quite understand your statement ... Are you saying you are getting random numbers generated with my code (unmodified)? Thx
  3. Netted my code down to a simple example ... all 3 Drivers generate the same sequence of output and it repeats every time the code is run ... foo.h foo_drvr.h foo_mon.h foo_stop.h sc_main.cpp
  4. Hi, I am getting the same sequence of random numbers every time I run my SystemC code ... there is too much code to post here, so I will attempt to describe what I am doing ... I have written a DUT (SC_MODULE) with 9 input ports and I have written a Driver (SC_MODULE) to drive one of those ports, I have instantiated 9 Drivers and 1 DUT in sc_main ... the Driver uses rand() ... Each Driver produces the exact same sequence of random numbers ... I didn't some looking on the C++ forums and tried the following ... 1. Adding srand(time(NULL)) to the Driver ... but it won't c
×
×
  • Create New...