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.

dumping values in vhdl to matlab

Status
Not open for further replies.

shringos

Newbie level 2
Joined
Jul 11, 2006
Messages
2
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,309
how can I dump the values generated in vhdl to a normal text file or to matlab?
 

shringos said:
how can I dump the values generated in vhdl to a normal text file or to matlab?
Use VHDL's STD.TEXTIO package (and may be IEEE.STD_LOGIC_TEXTIO as well) to dump VHDL values to a file. But I wonder what you meant by "values generated in vhdl" - generation of values in VHDL (if you mean random number generation kind of stuff) is tricky!

Regards
Ajeetha, CVC
 

generally speaking VHDL dumping data is in bin or hex mode which can not recognized by matlab

my method is dump in bin mode and use matlab function 1)'fscanf' to read to a vector 2)'bin2num' change bin to number that matlab can recognize then youcan use that vector as you wish
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top