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.

Problem creating a matrix in verilog from a txt file

Status
Not open for further replies.

always84

Member level 1
Joined
Feb 24, 2010
Messages
39
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
italy
Activity points
1,567
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?
 

Do you have an example of the input file? It is hard to say the best way without seeing exactly with what you are dealing with.
 

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.
 

Hy few minuts ago I have resolved my problem, my program takes differnts files and than create the matrix.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top