I want to generate a .vhd file to load UFM (parallel - read only) with data in Quartus 2 using the wizard. The generated file does not contain the data
Quartus 2 v13.0.1 SP1
Megawizard generating parallel UFM
I want to load the UFM in a EPM240 CPLD with data to be used for a look-up table.
I have finally found the required format (Tab delimited) to load it into 'Hexadecimal(Intel format) File' and have created a file with apparently 1 byte per line (1024 of them + file end).
(Could intel format files with 32bytes per line which I can create elsewhere be used?)
Trying to use the Megawizard to generate a .vhd file incorporating the data from the .HEX file seems to not work. What seems to be the memory blocks in the .vhd file are all '1's in one block and '0's in the other.
The top of the file is:
-- megafunction wizard: %ALTUFM_PARALLEL%
-- GENERATION: STANDARD
-- VERSION: WM1.0
-- MODULE: ALTUFM_PARALLEL
-- ============================================================
-- File Name: BLU_New.vhd
-- Megafunction Name(s):
-- ALTUFM_PARALLEL
--
-- Simulation Library Files(s):
-- maxii
-- ============================================================
Near what I take to be the memory definitions I see:
above the first (all '1's)
'INIT_FILE : STRING := "UNUSED";'
[ 16 lots of 512bits ]
and above the second (all '0's).
'INIT_FILE => "KBReader.hex",' (The file I had specified in the wizard)
[ 16 lots of 512bits ]
Near the end of the file I see:
-- Retrieval info: CONSTANT: INTENDED_DEVICE_FAMILY STRING "MAX II"
-- Retrieval info: CONSTANT: LPM_FILE STRING "KBReader.hex"
-- Retrieval info: CONSTANT: LPM_HINT STRING "UNUSED"
-- Retrieval info: CONSTANT: LPM_TYPE STRING "altufm_parallel"
Is this correct operation and is there something else needed to be done to get the data in the right place?
Thank you (hoping this is the right place)
(Can't seem to upload relevant files - sorry)