what's incorrect ALIAS

  • Thread starter Stefan Schwärzler
  • Start date
S

Stefan Schwärzler

Guest
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
 
On Wed, 03 Aug 2005 17:02:56 +0200, Stefan Schwärzler
<stefan.schwaerzler-spamless@unibw.de> 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:jonathan.bromley@doulos.com
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.
 

Welcome to EDABoard.com

Sponsor

Back
Top