write(output, string)

V

valtih1978

Guest
In the MiniMips I have the following code

process
begin
write (output, "Enter the filename : ");

http://opencores.org/websvn,filedetails?repname=minimips&path=%2Fminimips%2Ftrunk%2FminiMIPS%2Fbench%2Fbench_minimips.vhd

It seems that output is the famous file variable, defined in the
std.textio. Yet, I see no write() function that had the first argument
of type 'file'. I wonder why others do not have the problems with
simulating this test bench (e.g. here
http://stackoverflow.com/questions/7003098/vcd-dump-of-only-a-sub-part-of-the-design-via-modelsim
seem to be able consume it)?
 
On 29/04/13 12:31, valtih1978 wrote:
In the MiniMips I have the following code

process
begin
write (output, "Enter the filename : ");

http://opencores.org/websvn,filedetails?repname=minimips&path=%2Fminimips%2Ftrunk%2FminiMIPS%2Fbench%2Fbench_minimips.vhd

It seems that output is the famous file variable, defined in the
std.textio. Yet, I see no write() function that had the first argument
of type 'file'. I wonder why others do not have the problems with
simulating this test bench (e.g. here
http://stackoverflow.com/questions/7003098/vcd-dump-of-only-a-sub-part-of-the-design-via-modelsim
seem to be able consume it)?
Every file type has an implicit read and implicit write procedure
declared - see 1076-2002 3.4.1 File Operations (sorry I don't have the
reference for 1076-2008 handy).

In other words, this is the implicit write procedure for files of type
text *not* the write procedure overloaded in std.textio,

regards
Alan

--
Alan Fitch
 

Welcome to EDABoard.com

Sponsor

Back
Top