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

Reply

VHDL - VHDL - Second argument of writeline must have a constant value.

 
Thread Tools Search this Thread
Old 06-01-2008, 10:07 AM   #1
Default VHDL - Second argument of writeline must have a constant value.


Hello,
Please see this piece of code

The VHDL Code goes like this...................
.........................

entity dwt_1d_file is
generic(file_in : string := "data.txt";
file_out : string := "result.txt");
port (clk : in std_logic;
rst : in std_logic);
end dwt_1d_file;

architecture dwt_1d_file of dwt_1d_file is
file pix_file : text open read_mode is file_in;
file temp_file: text;
file res_file : text;
signal temp_1 : std_logic_vector(7 downto 0);
signal hpc_1 : std_logic_vector(7 downto 0);
signal lpc_1 : std_logic_vector(7 downto 0);
begin
dwt_1d_quant_1:dwt_1d_quant
port map(input=>temp_1,clk=>clk,rst=>rst,hpc=>hpc_1,lpc =>lpc_1);
process(clk,rst)
variable pix_line:line;
variable lpc_line:line;
variable hpc_line:line;
variable res_line:line;
variable open_ok:file_open_status;
variable read_ok:boolean;
variable i:integer range 0 to 14:=14;
variable pix_val:boundary_pix_array;
variable temp_2:bit_vector(7 downto 0);
begin
if (rst='1') then temp_1<=(others=>'0');
file_open(open_ok,res_file,file_out,write_mode);
file_close(res_file);
elsif (clk='1' and clk'event) then
if (not endfile(pix_file)) then
if (not(read_ok) and i=14) then
file_open(open_ok,temp_file,"temp.txt",write_mode) ;
writeline(temp_file,lpc_line);
writeline(temp_file,hpc_line);
.
.
.
.
.
Here i get a problem with HDL Analyzer.
The problem is "Second argument of writeline must have a constant value"
How to overcome this?
Please send me some solution for this.
Thank You.


srajendar
srajendar is offline   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
Invalid postback or callback argument chaitrak Software 0 06-27-2007 10:01 AM
DVD Verdict reviews: THE CONSTANT GARDENER, TRANSPORTER 2, and more! DVD Verdict DVD Video 0 01-10-2006 09:21 AM
Re: Landing on the Moon Abraxas DVD Video 14 12-12-2003 01:55 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