VHDL Error

Discussion in 'VHDL' started by Matt North, Nov 19, 2003.

  1. Matt North

    Matt North Guest

    Hi,

    Has anyone come across these error before;

    line 273: Error, no support for non-constant parameter for attribute POS.
    line 691: Error, left bound of range does not evaluate to a constant.
    line 692: Error, left bound of range does not evaluate to a constant.
    line 276: Error, function ASCII_conv can terminate without a return
    statement.

    the part of the code which is causing the error is;

    process(en_int, rst, info, address)
    begin
    if rst='0' or int_res='0' then
    address<=1;
    pdata<=(others=>'0');
    elsif rising_edge(en_int) then
    if address<=strsize then
    pdata<=ascii_conv(info(address)); --function which holds the
    attribute POS.
    address<=address+1;
    end if;
    end if;
    end process;

    However when address was a loop identifier in a procedure which called the
    function ascii_conv in the same way as above, no errors occurred.
    The function is shown below;

    result:=to_bitvector(std_logic_vector(to_unsigned(character'POS(ch), 8)));

    Thanks,
    Matt
    Matt North, Nov 19, 2003
    #1
    1. Advertising

  2. Matt North wrote:
    > Hi,
    >
    > Has anyone come across these error before;
    >
    > line 273: Error, no support for non-constant parameter for attribute POS.
    > line 691: Error, left bound of range does not evaluate to a constant.


    related thread:
    http://groups.google.com/groups?q=pos lgt_vec


    -- Mike Treseler
    Mike Treseler, Nov 19, 2003
    #2
    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. walala
    Replies:
    3
    Views:
    4,785
    walala
    Sep 18, 2003
  2. Replies:
    2
    Views:
    8,637
    Jim Lewis
    Mar 21, 2006
  3. afd
    Replies:
    1
    Views:
    8,274
    Colin Paul Gloster
    Mar 23, 2007
  4. Replies:
    2
    Views:
    1,457
  5. BlackHelicopter
    Replies:
    2
    Views:
    555
    BlackHelicopter
    Feb 12, 2013
Loading...

Share This Page