Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

reading float number from text file into a vector in verilog

Status
Not open for further replies.

DoriTheWCCANerd

Newbie level 1
Joined
Apr 14, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Chicago, US
Activity points
1,299
Hi,

need to read the 200 following numbers from text file and store them in a vector. the numbers in the text file can be in one line or one column or like the following:

0.00000 1.78818 1.97924 2.10987 2.20888 2.28841 2.35471 2.41144 2.46093 2.50474 2.54398 2.57948 2.61183 2.64153 2.66893 2.69435 2.71802 2.74016 2.76093 2.78047 2.79891 2.81635 2.83288 2.84858 2.86352 2.87776 2.89136 2.90436 2.91680 2.92873 2.94018 2.95117 2.96175 2.97192 2.98173 2.99119 3.00031 3.00913 3.01764 3.02588 3.03385 3.04157 3.04904 3.05629 3.06332 3.07014 3.07677 3.08320 3.08945 3.09553 3.10144 3.10719 3.11278 3.11823 3.12353 3.12870 3.13374 3.13865 3.14344 3.14811 3.15266 3.15711 3.16145 3.16569 3.16983 3.17387 3.17782 3.18168 3.18546 3.18915 3.19276 3.19628 3.19974 3.20311 3.20642 3.20966 3.21282 3.21592 3.21896 3.22193 3.22484 3.22770 3.23049 3.23323 3.23592 3.23855 3.24112 3.24365 3.24613 3.24856 3.25095 3.25329 3.25558 3.25783 3.26004 3.26220 3.26433 3.26641 3.26846 3.27047 3.27244 3.27438 3.27628 3.27815 3.27998 3.28178 3.28355 3.28529 3.28699 3.28867 3.29032 3.29193 3.29352 3.29508 3.29662 3.29812 3.29961 3.30106 3.30249 3.30390 3.30528 3.30664 3.30798 3.30929 3.31058 3.31185 3.31310 3.31433 3.31554 3.31672 3.31789 3.31904 3.32017 3.32128 3.32237 3.32344 3.32450 3.32554 3.32656 3.32757 3.32856 3.32953 3.33049 3.33143 3.33236 3.33327 3.33417 3.33506 3.33593 3.33678 3.33762 3.33845 3.33927 3.34007 3.34086 3.34164 3.34240 3.34315 3.34390 3.34463 3.34534 3.34605 3.34675 3.34743 3.34811 3.34877 3.34942 3.35007 3.35070 3.35132 3.35194 3.35254 3.35313 3.35372 3.35430 3.35486 3.35542 3.35597 3.35652 3.35705 3.35757 3.35809 3.35860 3.35910 3.35960 3.36008 3.36056 3.36103 3.36150 3.36195 3.36240 3.36285 3.36328 3.36371 3.36414 3.36455 3.36496 3.36537 3.36577 3.36616

please let me know how to do it. I used the $fopen and $fdisplay in several ways but it didn't work!!

thank you :-?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top