Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
The Intel sign-in experience is changing in February to support enhanced security controls. If you sign in, click here for more information.
15811 Discussions

Unable to use Quartus-ModelSim on Ubuntu 20.04

miyagi
Beginner
394 Views
Hi, I wanted to test my Quartus and ModelSim installation on Ubuntu 20.04. I am facing two issues right now (not sure if they are related). 1. I get an error message with regards to sockets. "Error: couldn't open socket: address already in useTrouble making server." 2. I am unable to open the msim.vcd file "Unable to open /home/user/Documents/Quartus/test/simulation/qsim/test.msim.vcd Error. " When I further look into the test.msim.vcd file, I only see: "#1000000" I have tried to use the following solutions to the above two issues, but to no avail 1. https://community.intel.com/t5/Intel-Quartus-Prime-Software/Modelsim-crash-in-ubuntu-12-04/m-p/13667... 2. https://community.intel.com/t5/Intel-Quartus-Prime-Software/Can-t-open-msim-vcd/m-p/1354255 Any help will be appreciated.
0 Kudos
6 Replies
RichardTanSY_Intel
369 Views

From what I understand from the thread below, it seems that the port that you are trying to allocate is already occupied.

Try to stop any process that uses the specific port.

https://stackoverflow.com/questions/15198834/bind-failed-address-already-in-use


RichardTanSY_Intel
367 Views

For the second question, try to check whether the file path name is correct (no typo) and the file do exist in the specific folder.


RichardTanSY_Intel
352 Views

May I know does my latest replies help in your inquiries?


RichardTanSY_Intel
314 Views

I have yet to receive any response from you to the previous question/reply/answer that I have provided but I believed that I have answered your question. 

With that, I will now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.


Best Regards,

Richard Tan


p/s: If any answer from the community or Intel support are helpful, please feel free to give Kudos. 


kawk
Beginner
238 Views

I found this discussion because I experience a similar problem (address already in use) trying to run vsim. Looking at the system calls made by vsim, it may be related to a host lookup, but I don't know why. It tries to bind the socket to a port itself already uses since a call made immediately beforehand.  How can I find out what it's trying to do? What for is that socket connection? Excerpt from strace (it does more, including setting SO_REUSEADDR, but it doesn't seem to help):

 

socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) = 11
...
setsockopt(11, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(11, {sa_family=AF_INET, sin_port=htons(0), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
getsockname(11, {sa_family=AF_INET, sin_port=htons(44223), sin_addr=inet_addr("127.0.0.1")}, [128->16]) = 0
listen(11, 128) = 0
socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) = 12
...
setsockopt(12, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(12, {sa_family=AF_INET, sin_port=htons(44223), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EADDRINUSE
close(12) = 0
close(11) = 0

 

Regards,

Kolja

 

 

 

kawk
Beginner
232 Views

Solved:

With the final hint from https://community.intel.com/t5/Intel-Quartus-Prime-Software/Modelsim-crash-in-ubuntu-12-04/m-p/13667... ("Modelsim crash in ubuntu 12.04"), I found that in my /etc/hosts there were two redundant entries

127.0.0.1 localhost
127.0.0.1 localhost

After simply removing one of the lines, vsim runs without problems.

Kolja

Reply