what's incorrect ALIAS

Discussion in 'VHDL' started by =?ISO-8859-15?Q?Stefan_Schw=E4rzler?=, Aug 3, 2005.

  1. in my code i wan' to use the alias
    library IEEE;
    use IEEE.STD_LOGIC_1164.ALL;
    use IEEE.STD_LOGIC_ARITH.ALL;
    use IEEE.STD_LOGIC_UNSIGNED.ALL;
    use IEEE.std_logic_textio.ALL;
    use STD.textio.all;

    alias swrite is write [line, string, side, width] ;
    swrite(my_line, "divs=");


    ERROR MESSAGE:
    ERROR:HDLParsers:3246 - "D:/projekte/lemos/divide/testdiv.vhd" Line 46.
    ALIAS
    declarations without subtype specified are not supported
    =?ISO-8859-15?Q?Stefan_Schw=E4rzler?=, Aug 3, 2005
    #1
    1. Advertising

  2. On Wed, 03 Aug 2005 17:02:56 +0200, Stefan Schwärzler
    <> wrote:

    >in my code i wan' to use the alias

    [...]
    >alias swrite is write [line, string, side, width] ;
    >swrite(my_line, "divs=");


    Looks good to me.

    >ERROR:HDLParsers:3246 - "D:/projekte/lemos/divide/testdiv.vhd" Line 46.
    >ALIAS
    > declarations without subtype specified are not supported


    Oh dear. Like the message says - your tool doesn't support it.

    Easy workaround:

    procedure swrite (
    L : inout line;
    S: string;
    J: side := left;
    W: width := 0
    ) is begin
    write(L, S, J, W);
    end;

    Definitely better than...
    write (L, string'("divs=") );
    --
    Jonathan Bromley, Consultant

    DOULOS - Developing Design Know-how
    VHDL, Verilog, SystemC, Perl, Tcl/Tk, Verification, Project Services

    Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, BH24 1AW, UK
    Tel: +44 (0)1425 471223 mail:
    Fax: +44 (0)1425 471573 Web: http://www.doulos.com

    The contents of this message may contain personal views which
    are not the views of Doulos Ltd., unless specifically stated.
    Jonathan Bromley, Aug 4, 2005
    #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. Khashishi
    Replies:
    3
    Views:
    5,603
    Weng Tianxiang
    Sep 22, 2004
  2. TigerJade
    Replies:
    4
    Views:
    488
    Jonathan Bromley
    Aug 5, 2005
  3. Maziar Aflatoun

    asp.net domain alias.. redirectors

    Maziar Aflatoun, Nov 2, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    422
    Alvin Bruney
    Nov 2, 2003
  4. atulmanvar
    Replies:
    0
    Views:
    537
    atulmanvar
    Oct 8, 2004
  5. grocery_stocker
    Replies:
    9
    Views:
    733
    grocery_stocker
    May 24, 2008
Loading...

Share This Page