Jump to content
Sign in to follow this  
u24c02

how does a variable to be decided it's value without it's initialize in systemverilog?

Recommended Posts

Dear all.

Now I'm trying to digging the systemverilog as the below

 

  denaliCdn_ahbTransaction burst1;

   task sendTransfers;
   
      burst1= new;       
      burst1.Direction = DENALI_CDN_AHB_DIRECTION_WRITE;
      burst1.FirstAddress = 32'h4020;//16416 M3 and M0 to S1
      burst1.Kind = DENALI_CDN_AHB_BURSTKIND_INCR4;
      burst1.Size = DENALI_CDN_AHB_TRANSFERSIZE_HALFWORD;
      burst1.Data = new [8];

      foreach (burst1.Data[ii])
       burst1.Data[ii] = ii;

      
      void'(activeMaster1.transAdd(burst1,0));

        ....

        endtask

From here , how does ii be decided it's value without initialized ?

 

 

how does a variable to be decided it's value without it's initialize in systemverilog?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×