Error In Tcl Script Modelsim
Forum General General Altera Discussion Error in Tcl Script If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to 9 of 9 Thread: Error in Tcl Script Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode August 31st, 2015,06:44 AM #1 Himanshu123456789 View Profile View Forum Posts Altera Beginner Join Date Aug 2015 Posts 4 Rep Power 1 Error in Tcl Script I am using ModelSim Altera 10.3d Quartus II !5.0 starter edition. When I open it I get an error message. can't read "_clients()": no such variable. On viewing details can't read "_clients()": no such variable can't read "_clients()": no such variable while executing "set _currObj $_clients($cid)" (object "::.bookmarkmgr" method "::vsimwidgets::bookmarkmgr::_setcurrent" body line 11) invoked from within "_setcurrent $cid" (object "::.bookmarkmgr" method "::vsimwidgets::bookmarkmgr::_menu_prepost" body line 16) invoked from within "::.bookmarkmgr _menu_prepost .mBar.bookmarks 1 {} 1" (in namespace inscope "::vsimwidgets::bookmarkmgr" script line 1) invoked from within "namespace inscope ::vsimwidgets::bookmarkmgr {::.bookmarkmgr _menu_prepost .mBar.bookmarks 1 {} 1}" ("eval" body line 1) invoked from within "eval $post_cmd" (procedure "::Vsimmenu:efaultMenuPostCmd" line 41) invoked from within "::Vsimmenu:efaultMenuPostCmd .mBar.bookmarks {namespace inscope ::vsimwidgets::bookmarkmgr {::.bookmarkmgr _menu_prepost .mBar.bookmarks 1 {} 1}} Se..." (menu preprocess) How to re
All CPLDs » Configuration Program Storage Power PowerSoC Converters DDR Memory Termination All Devices » Intellectual Property What's New in http://www.alteraforum.com/forum/showthread.php?t=49553 IP Best in Class IP Nios II Processor Find IP Reference Designs Boards & Kits Development Kits Daughter Cards Cables & Adapters SoC System-on-Modules Design Software What's New Quartus Prime Software Altera SDK https://www.altera.com/support/support-resources/knowledge-base/solutions/rd12022004_6882.html for OpenCL DSP Builder SoC Development Tools SoC EDS ARM DS-5 AE All Products Industry Solutions Automotive Broadcast Computer & Storage Consumer Industrial Medical Military, Aerospace & Gov Test & Measurement Wireless Wireline Technology Heterogeneous Integration Machine Learning Digital Signal Processing External Memory Security Transceivers Intelligent Vision & Video Internet of Things Partners Design Solutions Network COTS Board Partners EDA Partners End Market Partners Mathworks Partnership OpenCL Partners SoC Partners Training Partners System Design Journal Help and solutions for tomorrow's design.by Ron Wilson,Editor-in-Chief Design Solutions New to FPGAs Product Selector Design Store All Solutions
solutions) for these msgs. See also Common Tk Error Messages and Possible Explanations.In many cases, the Tcl error messages http://wiki.tcl.tk/1630 are so clear that by reading the words carefully, one can https://www.doulos.com/knowhow/tcltk/examples/modelsim/ pretty much figure out what is needed. However, there are occasionally times when this is not the case. Also, sometimes the error msg in question is from the operating system, but it appears as though the error is coming from Tcl. This page is intended error in to provide some assistance in those cases.From http://www.psg.com/~joem/tcl/faq.html#SectionD I start with these questions and answers:"not found" or "Command not found"This error message comes from your shell, not Tcl. The script probably starts with a #! that is followed by a path to the Tcl interpreter that is too long for your system. Many Unix systems are error in tcl limited to 32 characters (including the #!) in this regard. So, something like this will fail: #! /usr/home/homedir/very/long/path/tclsh # rest of scriptYou can either shorten the path by moving the tclsh executable to a different directory or by using symbolic links. Another option is to not specify the path at all. See the question "How do I make my script executable regardless of the location of tclsh?" for an example of how to do this.invalid command name "}"You have probably commented out a line that ends with an open curly brace. See http://www.psg.com/~joem/tcl/faq.html#CommentStrangeness for more info.Another common cause can be the difference between interactive and command modes for Tcl. When you start up a Tcl interpreter, get a prompt, and type in commands to Tcl, this is called interactive mode. In this mode, Tcl does a few extra things for you. For instance, if you type ls, and you have no proc called ls defined, Tcl will try to exec a command called ls. This some
EmbeddedVideo Gallery Products ReferenceGuidesBuyOnlinePricingRefund Policy myDoulos Developing & Delivering KnowHow VHDL FPGA Verilog SystemC TLM-2.0 SystemVerilog OVM UVM VMM PSL Perl Tcl/Tk ARM / Embedded Video Gallery Home > Knowhow > Tcltk > Examples > ModelSim Compile ScriptModelSim Compile Script This is a general script for compiling, recompiling and simulating VHDL/Verilog code using ModelSim. It is intended for rapid code writing and testing where small code modifications can be checked very quickly using few keystrokes. Once ModelSim is running in GUI mode and the script has been sourced then recompiling out-of-date files and rerunning a simulation requires two keystrokes: r for recompile and press the Enter key. The key features are: Support for one or more libraries Simple mechanism for recompiling out-of-date and dependent files Easily specify waveforms for viewing Easily specify waveform radices Simple project time report Specify SDF file for timing simulations Here's the script. There's a zip file to download it with some example VHDL/Verilog at the end. puts { ModelSimSE general compile script version 1.1 Copyright (c) Doulos June 2004, SD } # Simply change the project settings in this section # for each new project. There should be no need to # modify the rest of the script. set library_file_list { design_library {counter.vhd} test_library {countertb.vhd countercf.vhd} } set top_level test_library.Cfg_CounterTB set wave_patterns { /* } set wave_radices { hexadecimal {data q} } # After sourcing the script from ModelSim for the # first time use these commands to recompile. proc r {} {uplevel #0 source compile.tcl} proc rr {} {global last_compile_time set last_compile_time 0 r } proc q {} {quit -force } #Does this installation support Tk? set tk_ok 1 if [catch {package require Tk}] {set tk_ok 0} # Prefer a fixed point font for the transcript set PrefMain(font) {Courier 10 roman normal} # Compile out of date files set time_now [clock seconds] if [catch {set last_compile_time}] { set last_compile_time 0 } foreach {library file_list} $library_file_list { vlib $library vmap work $library foreach file $file_list { if { $last_compile_time < [fi