Jump to content

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


u24c02

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?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...