Jump to content

c4brian

Members
  • Content Count

    82
  • Joined

  • Last visited

  • Days Won

    3

c4brian last won the day on April 19 2017

c4brian had the most liked content!

About c4brian

  • Rank
    Advanced Member

Profile Information

  • Gender
    Not Telling
  1. try this. the '-' means left aligned. choose a size larger than your max, for each field, as in my example. class Packet; int seed[]='{54445,745,11209}; string out_str[]='{"imabigstring","tiny","medium"}; int out_num[]='{88,353,1}; function display (); foreach (out_num) $display("TEST%04d: seed=%-8d Out_str: %-16s Out_Num: %-8d", i, seed, out_str, out_num); endfunction endclass https://www.edaplayground.com/x/2_vR
  2. Hi David, The model is untimed; the simulation time is never advanced. I was started on SystemC a year and a half ago modelling this way, and it is all I know. At the same time, I think it does make for a confusing mess if one doesn't understand the scheduler (I do now). The models are primarily for a software team to bang their software against, however they are also used in a UVM environment with a DUT. This complicates things further in regard to "time". Our approach has been to use an untimed, functional SC model that is synchronized via the hardware by passing various synchronizatio
  3. Alan, So you recommend using wait(SC_ZERO_TIME) in general, for most situations? Let me ask you a question about the "runnable set". If the wordage of any of the following is off, please let me know. "The primary effect is that a process waiting for zero-time will resume after all runnable processes have yielded" p75 SystemC: From the Ground up Can the runnable set grow? For example, lets say a blocking transport call performs event.notify(); wait(SC_ZERO_TIME); This places another process into the "runnable set". Can this process also perform event notifications to conti
×
×
  • Create New...