( ESNUG 349 Item 7 ) --------------------------------------------- [4/18/00]

Subject: ( ESNUG 348 #13  )  ... And ModelSim Can't Read The Tcl It Writes!

> Anonymous, please.  I've been using ModelSim (PE, V5.3a), and discovered
> one interesting "feature".  If you have a waveform display up on the
> screen, and want to save the format, it writes a Tcl script for you to
> execute later.  So far so good.
>
> However, if your display includes large virtual signals (eg busses that
> you have built on the display by combining individual signals), the Tcl
> script is not executable when reloaded.  It writes the bus description
> all on one line, with no regard to the buffer length (I've seen lines
> almost 5000 characters long)!  These, naturally, break the ModelSim Tcl
> interpreter when read back in.
>
> I do feel it's rather poor for a tool to write a script that it itself
> cannot read.
>
>     - [ The Cat In The Hat ]


Dear John,

I've noticed the same problem w/ ModelSim EE V5.3c.  It's really a shame!

In my particular version of ModelSim, the only real problem with the
generated Tcl script is a few misplaced spaces.  By removing the excess
spaces, I can get ModelSim to read the script back in again.

        $ perl -pi -e 's/ , /,/g;s/ }}/}}/' tcl_script

This little trick has saved me many, many hours of hair pulling!

    - David Sawey
      Fujitsu                                    Richardson, TX


 Sign up for the DeepChip newsletter.
Email
 Read what EDA tool users really think.


Feedback About Wiretaps ESNUGs SIGN UP! Downloads Trip Reports Advertise

"Relax. This is a discussion. Anything said here is just one engineer's opinion. Email in your dissenting letter and it'll be published, too."
This Web Site Is Modified Every 2-3 Days
Copyright 1991-2024 John Cooley.  All Rights Reserved.
| Contact John Cooley | Webmaster | Legal | Feedback Form |

   !!!     "It's not a BUG,
  /o o\  /  it's a FEATURE!"
 (  >  )
  \ - / 
  _] [_     (jcooley 1991)