Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - std.textio and ieee.std_logic_textio procedure overloading

 
Thread Tools Search this Thread
Old 08-23-2006, 04:14 PM   #1
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?


Magne Munkejord
  Reply With Quote
Old 08-23-2006, 06:24 PM   #2
Magne Munkejord
 
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)


Magne Munkejord
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
MCITP and stored procedure permissions Darrilgibson@gmail.com MCITP 5 06-07-2008 12:37 PM
Ip NAT overloading (VPN is not working) roland1976 Hardware 0 02-25-2008 10:13 AM
Blockbuster: Standard Operating Procedure? Shinner DVD Video 28 01-21-2004 03:57 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46