Want to store values from a text file into a multidimensional array in sys verilog

Status
Not open for further replies.

manik045

Newbie level 6
Joined
Feb 16, 2010
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Dinajpur
Activity points
1,404
Want to store values from a text file into an multi dimensional array in sys verilog

I have a text file and the name of the file is named.txt. In this file following values are written.

4 5 6 7
8 9 2 1
3 2 4 9
10 10 5 21
I want to store this values in a 4X4 multidimensional array. How can i do this. Please help me.

Thanks in advance.
 

Attachments

  • named.txt
    37 bytes · Views: 67

Re: Want to store values from a text file into an multi dimensional array in sys veri

Use $fscanf
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…