data_array.dat File Reference

Overview

A data file is an array of integer or std_logic_vector with a .txt or .dat file extension located in the same directory as the config file and application module files. Some API calls such as the WRITE_FIFO_DATA and the SHARED_REGISTER procedures provide overloads for the std_logic_vector_array and integer_array type inputs and SpeakHDL provides helper functions to read an array from a file. When defined properly, many synthesis tools such as Xilinx Vivado allow constant data arrays created from data files to be synthesized.

Example data_array.dat File

1000000
1111001
0100100
0110000
0011001
0010010
0000010
1111000
0000000
0011000
Note
When defining a data file std_logic_vectors, the data can only 0 or 1 and the data is not surrounded by quotation marks.
See also
Reading From A Data File