Ubuntu11.10 configure Modlesim6.5

Source: Internet
Author: User
Tags ftp site
Modelsim is used for Hybrid Simulation of Systemc and SystemVerilog recently. It is installed and configured in Ubuntu11.10. First, for the installation process, refer to other people's: 1. Download the installation package: directly go to the official modelsim website. Here, give an address to the lazy student, after entering some information, you can download the file through FTp. Http://model.com/content/modelsim-se-high-pe recently completed the need to use Modelsim for Systemc and systemopengl hybrid simulation, Ubuntu 11.10 for installation and simple configuration.

First, the installation process should refer to other people's:

1. Download the installation package: 

Go directly to the official modelsim website and give an address to the lazy student. You need to enter some information before downloading it through FTp. Http://model.com/content/modelsim-se-high-performance-simulation-and-debugthis is the name of Modelsim se. We recommend that you do not download the latest version, which may cause a problem. I will download the latest version 6.5b.

By the way, we also need to remind you that linux needs to download five files: install. linux modelsim-base.mis modelsim-docs.mis modelsim-gcc-linux_x86_64.mis modelsim-linux_x86_64.mis modelsim-gcc-linux.mis (the next two because of the 64-bit system I installed, if not, download i386) and also need to download. (I despise modelsim's official website again. Every time it enters the downloaded ftp site, it needs to fill in personal information, which is too troublesome, and the site is still slow and easy to drop, it is best to get all the items to be downloaded at one time .)


2. installation:

Run install. linux in shell. The GUI is simple after execution. Run the code in the directory of the downloaded file:

Code:Cd ~ /Download/modelsim(This is my downloaded file directory)

Code:Sudo./install. linux
3. It is the most important Harmony: 

First, there are two methods to use the cracking software in linux: Install a virtual machine to simulate windows, and use wine to directly execute it in linux. I suggest using the second method. First install wine

Code:Sudo apt-get install wine

Then download mentorkg.exe this crack file http://bbs.eetop.cn/viewthread.php? Tid = 223722 is available in this forum. If not, contact me.

Run the following command in the downloaded and decompressed file directory:

Code:Wine/data/Soft_backup/6.5b/ModelSim6_5_KeyGen/MentorKG.exe(This is my directory)

There may be some errors, but no matter what it is, you only need to generate the LICENSE. TXT file. Put it in the installation directory of modelsim (of course it doesn't matter where it is ). However, be sure to perform this operation in the EXT2 partition. Otherwise, the generated file must have permission issues. This is also the reason why I have installed it before.


The last step is to modify the environment variable.
Code:Sudo gedit ~ /. BashrcAdd

Export LM_LICENSE_FILE = (the directory where you put LICENSE. TXT)/LICENSE. TXT

Export PATH = $ PATH :( installation directory of modelsim)/bin

Refer to my

Export LM_LICENSE_FILE =/opt/modeltech/LICENSE. TXT

Export PATH = $ PATH:/opt/modeltech/bin

Save and exit.
Code:Source ~ /. BashrcLast Input
Code:VsimNo problem.

After the installation is completed according to the above procedures, the system can identify the vsim series commands, but the execution fails.

---------------------- @ Ubuntu :~ $ Vsim
Error: cannot find/host/modelsim/modeltech/bin/../linux_RL4/vsim

After analysis, in the installation path, all the files in the bin directory are linked to a script file vco in the installation path, while the actual running program is in the linux directory. In the vco script, the system will be analyzed, of which 186 ~ 192 is classified by kernel version. Because Ubuntu version is too high, it is assigned to the lowest system version. After modification, the vsim can be started properly.

After modelsim is started normally, a small error occurs while running an example. All the language in the language can be correctly compiled, but the compilation of the cpp file in systemc has an error:

Modlesim> sccom *. cpp

#

# Model Technology ModelSim SE sccom 6.5 compiler 2009.01 Jan 22 2009

# ** Error: (sccom-94) Unsupported operating system-Ubuntu 11.10 \ n \ l. Refer to the ModelSim release notes for a list of supported operating systems.

Obviously, this is related to the operating system version. After reading the materials, the solution is as follows:

Create a file named RedHat-release in the/etc directory, add a line of Red Hat Enterprise Linux ES release 4R to the file, save the file, and restart vsim compilation *. cpp to pass.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.