Predefined attributes('Pos & 'Val) support issue in Synplify_pro

Joined
Jan 16, 2009
Messages
1
Reaction score
0
Hi all,

It seems that Synpliy_pro ( Version8.8 ) only supports sequential encoding for the predefined attribute T'Val(nPos) or T'Pos(eVal) supposing 'T' is a VHDL enumeration type. For any other encoding styles, it reports an error like this:

s.srr:mad:E: CD114 :"encoding.vhd":20:24:20:33|type myenum needs a syn_enum_encoding attribute of "sequential".

Example case:

type myEnum is (AA, BB, CC, DD, EE, FF, GG, HH);
attribute syn_enum_encoding : string;
attribute syn_enum_encoding of myEnum : type is "onehot";
...
signal eVal: myEnum;
...
out1 <= myEnum'Pos(eVal); //synplify_pro reports error here

Does anybody know whether higher versions of Synplify support all encoding style for the referred two attributes or it only support sequential encoding as declared in the message?

Regards,
Joshua
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top