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

Discussion in 'VHDL' started by Joshua, Jan 16, 2009.

  1. Joshua

    Joshua

    Joined:
    Jan 16, 2009
    Messages:
    1
    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
    Joshua, Jan 16, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Patrick Guio
    Replies:
    6
    Views:
    3,173
    chris
    Oct 20, 2004
  2. Holger
    Replies:
    11
    Views:
    537
    Gabriel Genellina
    Feb 12, 2007
  3. Michael Neumann

    "val.dup rescue val" sloooow

    Michael Neumann, Oct 27, 2004, in forum: Ruby
    Replies:
    2
    Views:
    126
    Michael Neumann
    Oct 27, 2004
  4. Anita Anita
    Replies:
    2
    Views:
    99
    Gary Wright
    Jan 6, 2009
  5. cmic

    $hash{val} or %hash->{val} ??

    cmic, Jan 15, 2006, in forum: Perl Misc
    Replies:
    8
    Views:
    117
Loading...

Share This Page