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.srrE: 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
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.srrE: 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