Altera_Forum
Honored Contributor
11 years agoIssues reading testvector file using Modelsim
Hello everyone!
I am trying to run a testvector from my code using SystemVerilog but I'm having an issue reading the file. My code is as follows:logic testvectors;
$readmemb("C:\Users\jbrookley\Desktop\EECS X497.2\Week 5\Q2\w5q2tv.tv",testvectors); The error I am getting is: --- Quote Start --- # ** Warning: (vsim-7) Failed to open readmem file "C:UsersjbrookleyDesktopEECS X497.2Week 5Q2w5q2tv.tv" in read mode.# # No such file or directory. (errno = ENOENT) : C:/Users/jbrookley/Desktop/EECS X497.2/Week 5/Q2/W5Q2tb.sv(18) --- Quote End --- I know the file exists because I can copy and paste the location given and it will launch the file so that doesn't appear to be the issue. The code itself is more or less taken straight from a book (Digital Design and Architecture) so I wouldn't anticipate there being issues but clearly, something odd is going on (I had similar problems with previous code segments where my solution was to hard code the directory as I did here). Has anyone seen this problem before? Any help would be greatly appreciated. Thanks!