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

Reply

VHDL - modelsim, v93, write to file

 
Thread Tools Search this Thread
Old 08-17-2006, 10:44 AM   #1
Default modelsim, v93, write to file


I'm using this procedure :

procedure write_file(int1 : in integer;variable output_file : out
TEXT) is
variable output_line : LINE;
begin
write(output_line,int1);
writeline(output_file,output_line);
end;

with ncsim, v93 everything is fine.
with modelsim however, I'm getting an error :

** Error: generic_lib.vhd(1619): Actual for formal f is not a file.
(line 1619 is << writeline(output_file,output_line); >> )

Any idea ?
please reply to tami.baumer @conexant.com



tami
  Reply With Quote
Old 08-17-2006, 05:49 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: modelsim, v93, write to file
tami wrote:

> ** Error: generic_lib.vhd(1619): Actual for formal f is not a file.
> (line 1619 is << writeline(output_file,output_line); >> )


Let's see your code for the file_open.
Something like.

file_open(my_file, file_name, write_mode);


-- Mike Treseler


Mike Treseler
  Reply With Quote
Old 08-21-2006, 08:34 AM   #3
tami
 
Posts: n/a
Default Re: modelsim, v93, write to file

Mike Treseler wrote:
> tami wrote:
>
> > ** Error: generic_lib.vhd(1619): Actual for formal f is not a file.
> > (line 1619 is << writeline(output_file,output_line); >> )

>
> Let's see your code for the file_open.
> Something like.
>
> file_open(my_file, file_name, write_mode);
>
>
> -- Mike Treseler


Mike
I'm using the file_open command elsewhere. The procedure mentioned
above is part of a package (library) called by the main test bench.

Still, can't compile the package itself.
Tami



tami
  Reply With Quote
Old 08-21-2006, 06:57 PM   #4
Mike Treseler
 
Posts: n/a
Default Re: modelsim, v93, write to file
tami wrote:

> Still, can't compile the package itself.


It compiles for me, but I get:

** Warning: [10] /evtfs/home/tres/vhdl/play/write_file.vhd(15):
(vcom-1135) Subprogram parameter output_file is declared using VHDL 1987
syntax.

Either update to -93 syntax or compile with -87.

-- Mike Treseler


Mike Treseler
  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
SONY DVD RW DW-G120A SOMETIMES FAILS...... atlantic965 DVD Video 0 06-18-2006 10:36 PM
problems backing up dvds Lawrence Traub DVD Video 11 09-27-2005 07:34 PM
Re: Ripping DVDs. Please answer the attached question. - Question.txt Stan Brown DVD Video 19 02-09-2005 11:19 PM
Burn process failed - help! Log file posted for help troubleshooting Michael Mason DVD Video 1 08-16-2004 09:24 PM
Pioneer A05 Problems Bill Stock DVD Video 8 11-28-2003 05:03 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