- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'd like to change the timeunit for Modelsim. By default Modelsim uses ps, but I'd like to change to ns. Currently if I issue the command run 1000 in the wave window, the time advances 1000ps. I'd like that to run 1000ns.
Where can I define the default time unit to ns? I have tried changing both the Resolution and UserTimeUnit variables in the modelsim.ini file and neither of those did the trick. Is that setting set somewhere else? Thanks, -philLink Copied
7 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
You must execute:run 1000 ns
See the help for the commands like run, you will learn its syntax and its options ;). Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
cs1400, thank you for the reply. I know how to use the command line to change the timescale as you described. What I'm asking is, how can I universally and permanently change the time scale so that units are not necessary during run commands?
-phil- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you cant afaik.
How about changing the testbench so that it halts iteself, so you can always just type: run -all- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- What I'm asking is, how can I universally and permanently change the time scale so that units are not necessary during run commands? --- Quote End --- I have Questasim, but I remember they have the same GUI.
- Go to Tools in the toolbar, and Edit Preferences.
- Go to the second tab named "By name".
- Clic on Exapnd all, then on Find...
- Enter the default value of time that your simulator has, check Value in Field, and clic on Find next
- Postscript : perpage
- Compare : defaultLeadUnits and defaultTrailUnits
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Basically all defaults are set in the vsim section of modelsim .ini
; vopt flow
; Set to turn on automatic optimization of a design.
; Default is off (pre-6.0 flow without vopt).
; VoptFlow = 1
; Simulator resolution
; Set to fs, ps, ns, us, ms, or sec with optional prefix of 1, 10, or 100.
Resolution = ps
; User time unit for run commands
; Set to default, fs, ps, ns, us, ms, or sec. The default is to use the
; unit specified for Resolution. For example, if Resolution is 100ps,
; then UserTimeUnit defaults to ps.
; Should generally be set to default.
UserTimeUnit = default
; Default run length
RunLength = 100
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- Basically all defaults are set in the vsim section of modelsim .ini
; vopt flow
; Set to turn on automatic optimization of a design.
; Default is off (pre-6.0 flow without vopt).
; VoptFlow = 1
; Simulator resolution
; Set to fs, ps, ns, us, ms, or sec with optional prefix of 1, 10, or 100.
Resolution = ps
; User time unit for run commands
; Set to default, fs, ps, ns, us, ms, or sec. The default is to use the
; unit specified for Resolution. For example, if Resolution is 100ps,
; then UserTimeUnit defaults to ps.
; Should generally be set to default.
UserTimeUnit = default
; Default run length
RunLength = 100
--- Quote End --- For some reason, changing the Resolution or UserTime Unit to ns doesn't do what I want. Even though those variables are set to ns in my modelsim.ini, and the perferences dialog reports that ns is the chosen unit, when I issue the command run 100, the simulation advance 100 ps, not 100 ns. -phil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The default settings can be overwritten in the GUI and possibly in a script. Or you are looking to the wrong instance of modelsim.ini.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page