UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 22969

8.1 AccelDSP Synthesis Tool - How can I load MATLAB data files in the design function?

Description

How can I load MATLAB data files in the design function?

Solution

You can load ASCII text files in the design function, but you must assign them to a variable, as follows: 

 

1. Save the data to an ASCII file. For example, in the script file you might have a statement such as the following: 

save myrom.txt -ascii myrom; 

2. In the design function, load the data and assign it to a variable: 

sinerom = load('sinerom.txt'); 

The ASCII files allows the quantizer to see the values.  

You cannot load binary files or use a statement such as "load -ascii myrom.mat" that does not assign the data to a variable. If there is a problem, it is reported in the Analyze step.

AR# 22969
Date Created 09/04/2007
Last Updated 05/20/2014
Status Archive
Type General Article