有人知道是什么导致了这个问题吗?我试图从powershell提供到vcom.exe的完整路径,而vcom正在删除正斜杠:
PS> C:\questasim64_2020.4\win64\vcom.exe -2002 -f "C:/proj1/rtl/files.f"
QuestaSim-64 vcom 2020.4 Compiler 2020.10 Oct 13 2020
Start time: 08:46:02 on Jan 10,2022
vcom.exe -2002 -f "C:/proj1/rtl/files.f
** Error: (vcom-7) Failed to open design unit file "C:proj1rtlfiles.f" in read mode.
No such file or directory. (errno = ENOENT)
End time: 08:46:02 on Jan 10,2022, Elapsed time: 0:00:00
Errors: 1, Warnings: 0cmd.exe也有同样的问题:
PS C:\proj1> cmd
Microsoft Windows [Version 10.0.19043.1202]
(c) Microsoft Corporation. All rights reserved.
C:\proj1> C:\questasim64_2020.4\win64\vcom.exe -2002 -l simout.vhdl.log -f C:/proj1/rtl/files.f
QuestaSim-64 vcom 2020.4 Compiler 2020.10 Oct 13 2020
Start time: 08:46:02 on Jan 10,2022
vcom.exe -2002 -f "C:/proj1/rtl/files.f
** Error: (vcom-7) Failed to open design unit file "C:proj1rtlfiles.f" in read mode.
No such file or directory. (errno = ENOENT)
End time: 08:46:02 on Jan 10,2022, Elapsed time: 0:00:00
Errors: 1, Warnings: 0我不记得这是导师图形之前的问题.好像是个坏虫子?
我再次尝试使用WSL-2和Windows 10下的Ubuntu:
PS> gci C:\Users\wpmoore\Desktop\collins\sandbox\sandbox.vsc.tbwork\out.sim\simout.work.vhd.f
-a---- 1/11/2022 12:28 PM 163 simout.work.vhd.f
PS> bash
$ uname -a
Linux PV3013 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ /mnt/c/questasim64_2020.4/win64/vcom.exe -2002 -l simout.vhdl.log -f " C:/Users/wpmoore/Desktop/collins/sandbox/sandbox.vsc.tbwork/out.sim/simout.work.vhd.f"
** Error: (vcom-7) Failed to open -f file " C:/Users/wpmoore/Desktop/collins/sandbox/sandbox.vsc.tbwork/out.sim/simout.work.vhd.f" in read mode.
Invalid argument. (errno = EINVAL)
QuestaSim-64 vcom 2020.4 Compiler 2020.10 Oct 13 2020
vcom -2002 -l simout.vhdl.log -f C:/Users/wpmoore/Desktop/collins/sandbox/sandbox.vsc.tbwork/out.sim/simout.work.vhd.f
End time: 12:30:28 on Jan 11,2022, Elapsed time: 0:00:00
Errors: 1, Warnings: 0
$ /mnt/c/questasim64_2020.4/win64/vcom.exe -2002 -l simout.vhdl.log -f "C:\\Users\\wpmoore\\Desktop\\collins\\sandbox\\sandbox.vsc.tbwork\\out.sim\\simout.work.vhd.f"
QuestaSim-64 vcom 2020.4 Compiler 2020.10 Oct 13 2020
Start time: 12:32:18 on Jan 11,2022
vcom -2002 -l simout.vhdl.log -f C:\Users\wpmoore\Desktop\collins\sandbox\sandbox.vsc.tbwork\out.sim\simout.work.vhd.f
** Error: (vcom-7) Failed to open design unit file "C:UserswpmooreDesktopcollinssandboxsandbox.vsc.tbworktb_pack2.vhd" in read mode.
No such file or directory. (errno = ENOENT)
End time: 12:32:19 on Jan 11,2022, Elapsed time: 0:00:01
Errors: 1, Warnings: 0发布于 2022-01-11 17:53:48
解决方案是在指定"-f“文件的路径时只使用”正斜杠“,对于"-f”文件中列出的文件也使用。然后,它与powershell.exe和cmd.exe一起工作。
示例:
-f C:/mypath/dir1/dir2/file.f
# content of file.f:
C:/mypath/dir1/dir2/code.vhd
C:/mypath/dir1/dir2/code.v路径中旧的Windows反斜杠不适用于最新的questasim.(在我看来,对于声称在windows下工作的软件来说,这是一个严重的错误)
https://stackoverflow.com/questions/70653498
复制相似问题