Burning bin file to FPGA
You need to convert your data into one of the supported formats for memory initialization. Then you can specify the file when you configure the RAM.

A .mif file for an Intel FPGA, for example, looks like this:

DEPTH = 32;            % Memory depth and width are required   %
                       % DEPTH is the number of addresses      %
WIDTH = 14;            % WIDTH is the number of bits of data per word %
%  DEPTH and WIDTH should be entered as decimal numbers        %

ADDRESS_RADIX = HEX;   % Address and value radixes are required  %
DATA_RADIX = HEX;      % Enter BIN, DEC, HEX, OCT, or UNS; unless  %
                       % otherwise specified, radixes = HEX    %
-- Specify values for addresses, which can be single address or range
CONTENT
BEGIN
[0..F]: 3FFF;   % Range--Every address from 0 to F = 3FFF  %
6     : F;      % Single address--Address 6 = F %
8     : F E 5;  % Range starting from specific address %
                % Addr[8] = F, Addr[9] = E, Addr[A] = 5 %
--
END;


source