what this

Discussion in 'VHDL' started by Attila Csosz, Jun 26, 2003.

  1. Attila Csosz

    Attila Csosz Guest

    Hi,

    I've the following function:

    function CONV_UNSIGNED(ARG: UNSIGNED; SIZE: INTEGER) return UNSIGNED is
    constant msb: INTEGER := min(ARG'length, SIZE) - 1;
    subtype rtype is UNSIGNED (SIZE-1 downto 0);
    variable new_bounds: UNSIGNED (ARG'length-1 downto 0);
    variable result: rtype;
    -- synopsys built_in SYN_ZERO_EXTEND
    begin
    -- synopsys synthesis_off
    new_bounds := MAKE_BINARY(ARG);
    if (new_bounds(0) = 'X') then
    result := rtype'(others => 'X');
    return result;
    end if;
    result := rtype'(others => '0');
    result(msb downto 0) := new_bounds(msb downto 0);
    return result;
    -- synopsys synthesis_on
    end;

    In this function what this? I dont understand what is.
    result := rtype'(others => '0');

    Which category is this in the reference manual?
    I use this for reference (00-14):
    http://tech-www.informatik.uni-hamburg.de/vhdl/doc/P1076-2000-D3/P1076_Chap_00.pdf


    Thanks
    Attila
    Attila Csosz, Jun 26, 2003
    #1
    1. Advertising

  2. Attila Csosz

    Attila Csosz Guest

    ok i found it: this is
    7.3.4 Qualified expressions
    Attila Csosz, Jun 26, 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.

Share This Page