For a project, i need to take sine samples in MATLAB and somehow i need to call it in Xilinx ISE testbench, so that i can use them for further operations. Please tell me how to do it?
Electrical – how to import data from MATLAB to ISE XILINX testbench
MATLABvhdlxilinx
Related Topic
- About Synplify VHDL (code imported from Xilinx ISE)
- Electronic – Determine version of Xilinx ISE programatically
- Electronic – How to assign physical pins of FPGA to Xilinx ISE Verilog modules
- PAR taking too long – Xilinx ISE
- Electronic – the purpose of a “BUF” in Xilinx ISE schematic
- Electronic – How to reduce the process delay using VHDL in xilinx
- Electronic – Import Parametric Sweep data from LTSPice into Matlab
Best Answer
You want to create input stimulus in Matlab and use them in your Xilinx ISE simulator. First, you need to put your Matlab data into a file. The easiest way is just to write the data to file line by line. Example:
Now you need to use that data in VHDL. I have mostly got examples in Verilog, but in VHDL you can use something like this:
How to read a text file using vhdl
Use file_open to open the file:
And readline and read to read a line and get its contents:
You'd need to cast your number into whatever type you need it as and generate the valids/surrounding signals accordingly.