Forum Discussion

miyagi's avatar
miyagi
Icon for New Contributor rankNew Contributor
4 years ago

Unable to use Quartus-ModelSim on Ubuntu 20.04

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/136674 2. https://community.intel.com/t5/Intel-Quartus-Prime-Software/Can-t-open-msim-vcd/m-p/1354255 Any help will be appreciated.

6 Replies

  • 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.


  • 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's avatar
    kawk
    Icon for New Contributor rankNew Contributor

    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