Could you please give some examples on the coding or the reference to
the manual on how to do it?
hi Weng
What do you want to do? (Sorry, I missed the first
part of this thread somehow.) If you want to create
an output file, something like this...
# Put this into a .do file and source it into ModelSim
proc filename_from_date {prefix} {
set t [clock seconds]
append prefix [clock format $t -format "%Y-%m-%d_%H-%M"]
return $prefix
}
########################################
Now, when you type the command
filename_from_date Report_File_
you will get a result like
Report_File_2006-09-21_21-45
And you can use this result as the name of a file to open in Tcl...
set file_handle [open [filename_from_date Report_File_] w]
puts $file_handle "This is line 1 of the file"
puts $file_handle "This is line 2"
close $file_handle
Is this anything like what you need?????
--
Jonathan Bromley, Consultant
DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services
Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK
(e-mail address removed)
http://www.MYCOMPANY.com
The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.