5set proj_dir [get_property DIRECTORY [current_project]]
6set proj_name [get_property NAME [current_project]]
7set archivo_reporte
"${proj_dir}/${proj_name}.sim/sim_1/behav/xsim/reporte_final_1.txt"
10if {[file exists $archivo_reporte]} {
11 file delete -force $archivo_reporte
22puts
"\n======================================="
23puts
" REPORTE Y MARCADORES"
24puts
"=======================================\n"
26if {[file exists $archivo_reporte]} {
29 catch { delete_objects [get_markers] }
31 set fp [open $archivo_reporte r]
32 set contenido [read $fp]
35 set lineas [split $contenido
"\n"]
37 foreach linea $lineas {
38 if {[string length [string trim $linea]] > 0} {
43 if {[regexp {\[(.*?)\]} $linea -> timestamp]} {
45 set clean_time [string map {
" " ""} $timestamp]
58 catch { gui_zoom_full }
61 puts
"ERROR: No se encontró el archivo $archivo_reporte"
63puts
"\n======================================="