Hi. My problem is to create a matrix in verilog. I have to read from a texture file which could be formatted without constraints. Every element that I read from the file is the element of the matrix, so first element read is matrix[0][0] and so on. I'm thinking to create intermediate vectors from reading the file and than to attach them in a matrix. Evreyone knows how can I do?
at the beginning the il file is composed by the repetition of this: {1,2,3,4,5,6,7} there about 10 elements per row (ten colons) and 100 rows. This file has been modified whit another tool like matlab in the way as I want. For example to use easily readmem verilog function I was thinkink to realize a starting file with the elements (without {,}) put in colon,like:
1
2
3
4
5
6
7
8
and so on..with this elements I've to realize the matrix.