ARC-Lab-UF / testbench-runner

Interactive testbench runner via Modelsim. Integrates with Canvas assignments.
2 stars 1 forks source link

Simulation paths are messed up #15

Closed benjamin051000 closed 1 year ago

benjamin051000 commented 1 year ago

Output:

$ python3 grader.py --lab Lab5 --tcl-out-file modelsim-projects/Lab5/Lab5_out.tcl --tcl-file tcl-templates/lab5.tcl --project-mpf modelsim-projects/Lab5/Lab5.mpf --section [REDACTED] --submissions l5submissions.zip
There should be 8 zip files in the submission dir.

Students Found:
[REDACTED]
[REDACTED]
[REDACTED]
[REDACTED]
[REDACTED]
[REDACTED]
[REDACTED]
[REDACTED]

/home/benjamin/src/DD_Grader
cmd='vsim -c -l "" -do "/home/benjamin/src/DD_Grader/modelsim-projects/Lab5/Lab5_out.tcl"'
Reading pref.tcl

# 2020.1

# do /home/benjamin/src/DD_Grader/modelsim-projects/Lab5/Lab5_out.tcl
# Loading project Lab5
# resume
# ** Error: The file /home/benjamin/src/DD_Grader/modelsim-projects/Lab5/C:/Users/keeth/Desktop/TA folder/Spring 21/DD_Grader/Submissions/Lab5/[REDACTED]/datapath1.vhd is not found within the project.
# Executing ONERROR command at macro /home/benjamin/src/DD_Grader/modelsim-projects/Lab5/Lab5_out.tcl line 81

Enter 'q' to exit
Enter 'n' for next student
Press Control-C to break out if stuck
Now working on [REDACTED] Hit Enter to continue ==> q

It appears that the source files are not being added correctly. I'll investigate and see what's up.

benjamin051000 commented 1 year ago

Glanced at output of scripts.extractor.extract_submissions, looks good. Probably an issue with the TCL.

benjamin051000 commented 1 year ago

Lab5.mpf has a few lines about files that used to exist... when I remove those lines and set the number of project files to 0, it seems to work.

benjamin051000 commented 1 year ago

Looks like removing everything EXCEPT the true testbench works. Not sure why this didn't work before tbh

benjamin051000 commented 1 year ago

image As suspected, these apparently need to be deleted!