I cannot find how to map a "record type" in my ucf file.

May 19, 2008 3 Replies

this is my code:



entity Top_Module is port ( o_DSP0 : out MyRecordType ); end Top_Module;


whe o_DSP0 is:



type MyRecordType is record int4 : std_logic; int5 : std_logic; int6 : std_logic; int7 : std_logic; end record;


---------------



How is o_DSP0 declared in ucf file?


A vhdl port type is declared in a package file. The package file must be listed in the synthesis file list, above all files using the package.

-- Mike Treseler

RecordType

Most likely the 'o_DSP0' signal will get synthesized to a 'flattened' set of names like 'o_DSP0_int4', 'o_DSP0_int5', etc. Check the output of your synthesis result to find out how the record type signal elements got renamed.

KJ

I tried this recently and had that result: I had wanted the signal names "int4", "int5", etc., but got the "flattened" names. -Kevin

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required