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.

how can i convert modelsim waveform data into matlab,

Status
Not open for further replies.

junchaoguo51888

Member level 1
Joined
Jun 8, 2003
Messages
38
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
shanghai
Activity points
309
modelsim export waveform

how can i convert modelsim waveform data into matlab,
and simulate it with matlab?

another question is how can i convert decimal fraction into binary,my purpose is multiple two decimal fraction and output it finally with fpga.
 

modelsim with matlab

Hi,

I don't think that you can export waveform data directly to Matlab.
You can build a vhdl component in your thest bench that record the signals you want into a text file. On each event on your selected signal, you record the time value (now) ant the signal value.
Then you can use it as an input table in matlab.

For the fraction multiplier, I will do it in different step :
equation is : A/B * C/D
1) multiply A*C (if A is n bits range and C is m bits range, then the result is m+n bits range) = E
2) multiply B*D = F
3) divide E/F : you can make it by successive substraction (long time algorithm, but simple ...)

I hope this will help you
:wink:
 

matlab waveform convert

Hello,
I don't know if it can help you, but modelsim and matlab has released a new toolbox that help to do co-design. It's modelsim link. you can download a 30 day evaluation at matworks site.
Essentially, matlab woks like a server that send command to modelsim (vsim, force and so on) to do a simulation. The input of your testbench can be a block from simulink and you can use the outputs in matlab to compare and visualize the results.
I hope this will help you.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top