Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > what's incorrect ALIAS

Reply
Thread Tools

what's incorrect ALIAS

 
 
=?ISO-8859-15?Q?Stefan_Schw=E4rzler?=
Guest
Posts: n/a
 
      08-03-2005
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
 
Reply With Quote
 
 
 
 
Jonathan Bromley
Guest
Posts: n/a
 
      08-04-2005
On Wed, 03 Aug 2005 17:02:56 +0200, Stefan Schwärzler
<(E-Mail Removed)> 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:(E-Mail Removed)
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reference/alias in perl vs reference/alias in C++ grocery_stocker C++ 9 05-24-2008 04:32 AM
XP X64 Pro, IE7, Delphi 2007, IntraWeb, MS Access, ODBC Alias problem: Insufficient memory for this operation. Alias: SomeDatabase. Skybuck Flying Windows 64bit 13 01-09-2008 07:34 PM
Is it possible to define an alias of a type? TigerJade VHDL 4 08-05-2005 08:25 AM
[vhdl] how to wire two signals together? alias not adequate Khashishi VHDL 3 09-22-2004 10:36 PM
Increasing alias on 6509 Glenn Cisco 0 12-05-2003 07:31 AM



Advertisments