chetu
Junior Member level 2
Tcl error
Can u tel me what is this error in the following program..
proc option_read { option } {
set fileid [open "inp.txt",r];
while { [eof $fileid] != 1 } {
gets $fileid line;
set firstline [lindex $line 0];
if {$firstline == $option } {
set return_val [lindex $line 1];
return $return_val;
}
}
close $fileid;
}
set Input_format [option_read "Input_format"];
vcom -2002 s_q_u.vhd;
vcom -2002 test.vhd;
if { $Input_format == 1} {
set seq [ option_read "seq_val1"];
} else {
set seq [ option_read "seq_val2"];
}
============== i am reading some variables from inp.txt file those are user inputs. trying to pass that variables to my vhdl code.
while executing this i got following error...
# ** Error: extra characters after close-quote
# Error in line 13
not getting what is this error since i am new to Tcl.
Can u tel me what is this error in the following program..
proc option_read { option } {
set fileid [open "inp.txt",r];
while { [eof $fileid] != 1 } {
gets $fileid line;
set firstline [lindex $line 0];
if {$firstline == $option } {
set return_val [lindex $line 1];
return $return_val;
}
}
close $fileid;
}
set Input_format [option_read "Input_format"];
vcom -2002 s_q_u.vhd;
vcom -2002 test.vhd;
if { $Input_format == 1} {
set seq [ option_read "seq_val1"];
} else {
set seq [ option_read "seq_val2"];
}
============== i am reading some variables from inp.txt file those are user inputs. trying to pass that variables to my vhdl code.
while executing this i got following error...
# ** Error: extra characters after close-quote
# Error in line 13
not getting what is this error since i am new to Tcl.