EDAboard.com | EDAboard.de | EDAboard.co.uk | WTWH Media

attribute of a record member

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - VHDL Language - attribute of a record member

daltonj
Guest

Sat Aug 03, 2019 5:45 pm   



I am trying to set an attribute for safe state machine encoding in Synplify.
I have a defined all my registers in a record called "registers" and then two signals of type register as shown below.

signal r, rin : registers;

I added the safe encoding attribute with the following code.

attribute syn_encoding: string;
attribute syn_encoding of r.sweep_record_sm : signal is "safe";

@E: CD128 :"\path\to\file:277:29:277:29|Expecting : before class of object(s)

Line 277:29 is just before the "r" in r.sweep_record_sm

Does anyone know why I am getting this error?

Rob Gaddi
Guest

Mon Aug 05, 2019 5:45 pm   



On 8/3/19 9:26 AM, daltonj wrote:
Quote:
I am trying to set an attribute for safe state machine encoding in Synplify.
I have a defined all my registers in a record called "registers" and then two signals of type register as shown below.

signal r, rin : registers;

I added the safe encoding attribute with the following code.

attribute syn_encoding: string;
attribute syn_encoding of r.sweep_record_sm : signal is "safe";

@E: CD128 :"\path\to\file:277:29:277:29|Expecting : before class of object(s)

Line 277:29 is just before the "r" in r.sweep_record_sm

Does anyone know why I am getting this error?


I don't believe you can apply an attribute to a member of a record, only to the
entire record.


--
Rob Gaddi, Highland Technology -- www.highlandtechnology.com
Email address domain is currently out of order. See above to fix.

elektroda.net NewsGroups Forum Index - VHDL Language - attribute of a record member

Ask a question - edaboard.com

Arabic version Bulgarian version Catalan version Czech version Danish version German version Greek version English version Spanish version Finnish version French version Hindi version Croatian version Indonesian version Italian version Hebrew version Japanese version Korean version Lithuanian version Latvian version Dutch version Norwegian version Polish version Portuguese version Romanian version Russian version Slovak version Slovenian version Serbian version Swedish version Tagalog version Ukrainian version Vietnamese version Chinese version Turkish version
EDAboard.com map