u24c02 Posted November 30, 2017 Report Share Posted November 30, 2017 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.