Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

ModelSim and filename length limit

Hi,

I'm currently trying to simulate the Hard memory controller example, and the files in "vhdl/submodules" are very long. For some reason modelsim fails to read any of the files with filenames greater than 83 characters !?? I'm running Quartus/modelsim under Windows XP 64 bit, a work colleague has Windows 7 64 bit, and modelsim has no problems reading the same files !

Any help would be much appreciated

Thanks

Lee

9 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    put your project into a subfolder directly over a HDD for example D:\ms\

    --- Quote End ---

    Hi, just tried that, still the same.

    Lee
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Transcript is :-

    # -- Loading package STANDARD

    # -- Loading package TEXTIO

    # -- Loading package std_logic_1164

    # -- Compiling entity ddr_uniphy_hc_example_sim_e0_if0_id_router

    # -- Compiling architecture RTL of ddr_uniphy_hc_example_sim_e0_if0_id_router

    # Model Technology ModelSim ALTERA vcom 10.1d Compiler 2012.11 Nov 2 2012

    # -- Loading package STANDARD

    # -- Loading package TEXTIO

    # -- Loading package std_logic_1164

    # -- Compiling entity ddr_uniphy_hc_example_sim_e0_if0_addr_router

    # -- Compiling architecture RTL of ddr_uniphy_hc_example_sim_e0_if0_addr_router

    # Model Technology ModelSim ALTERA vcom 10.1d Compiler 2012.11 Nov 2 2012

    # ** Error: (vcom-7) Failed to open design unit file "./..//submodules/ddr_uniphy_hc_example_sim_e0_if0_c0_csr_translator_avalon_universal_slave_0_agent_rdata_fifo.vho" in read mode.

    #

    # No such file or directory. (errno = ENOENT)

    # ** Error: C:/altera/13.0/modelsim_ase/win32aloem/vcom failed.

    # Error in macro ./run.do line 11

    # C:/altera/13.0/modelsim_ase/win32aloem/vcom failed.

    # while executing

    # "vcom "$QSYS_SIMDIR/submodules/ddr_uniphy_hc_example_sim_e0_if0_c0_csr_translator_avalon_universal_slave_0_agent_rdata_fifo.vho" "

    # ("eval" body line 42)

    # invoked from within

    # "com"

    # invoked from within

    # "if {[file exists msim_setup.tcl]} {

    # source msim_setup.tcl

    # dev_com

    # com

    # # the "elab_debug" macro avoids optimizations which preserves signals so tha..."
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    If I shorten "ddr_uniphy_hc_example_sim_e0_if0_c0_csr_translator _avalon_universal_slave_0_agent_rdata_fifo.vho" to "ddr_uniphy_hc_example_sim_e0_if0_c0_csr_translator _avalon_universal_slave_0_agent_r.vho" (83 characters) it finds it !

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Windows XP has a limit on the total pathname length of 250 chars, not on the filename length. The pathname includes the starting "C:\" and null and the end of the path.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Windows XP has a limit on the total pathname length of 250 chars, not on the filename length. The pathname includes the starting "C:\" and null and the end of the path.

    --- Quote End ---

    Thanks to both you (dave_59) and Taz1984, I forgot to rename the vho file back to its original name, after doing this all files are now found if I move the sim project to say c:\ms\ to minimise total pathname length :-)

    Many Thanks

    Lee
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks, made interesting reading, same problem I had, I also can't believe the filenames have to be so long either !

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yep, not only did they leave their brains at home on the day that they created those long filenames but there was an astonishing lack of testing.