FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > VHDL

VHDL comp.lang.vhdl newsgroup / Usenet

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-23-2006, 04:14 PM
Magne Munkejord
Guest
 
Posts: n/a
Default std.textio and ieee.std_logic_textio procedure overloading

Hi,

I have problems using both std.textio.all and ieee.std_logic_textio.all
When I try to compile ModelSim gives me an error: Subprogram 'write' is
ambiguous. Suitable definitions exist in packages 'std_logic_textio' and
'textio'.

When i take a look at source code for std_logic_textio it says:
-- Purpose: This package overloads the standard TEXTIO procedures
-- READ and WRITE.

This is exactly what I want it to do. Any tips how to make this happen?
Reply With Quote
  #2 (permalink)  
Old 08-23-2006, 06:24 PM
Magne Munkejord
Guest
 
Posts: n/a
Default Re: std.textio and ieee.std_logic_textio procedure overloading

Magne Munkejord wrote:
> Hi,
>
> I have problems using both std.textio.all and ieee.std_logic_textio.all
> When I try to compile ModelSim gives me an error: Subprogram 'write' is
> ambiguous. Suitable definitions exist in packages 'std_logic_textio' and
> 'textio'.
>
> When i take a look at source code for std_logic_textio it says:
> -- Purpose: This package overloads the standard TEXTIO procedures
> -- READ and WRITE.
>
> This is exactly what I want it to do. Any tips how to make this happen?


I found a solution:
write(my_line, string'("my_string");
instead of:
write(my_line, "my_string");

(my_line is type LINE as defined in std.textio)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What should I do with std.textio.all of ModelSim Weng Tianxiang FPGA 13 10-27-2006 04:19 AM
Vhdl testbench with textio package Teten VHDL 0 09-01-2005 09:43 PM
textio error Pasacco VHDL 3 05-03-2005 09:06 AM
std_logic_textio - in xilinx 5hinka FPGA 0 09-10-2004 03:40 PM
the textio lib and std_logic_textio Pedro Claro VHDL 3 07-28-2003 05:08 PM


All times are GMT +1. The time now is 11:09 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved