sld-columbia / esp

Embedded Scalable Platforms: Heterogeneous SoC architecture and IP integration made easy
Other
314 stars 102 forks source link

Problem running simulation in tutorial for designing a single core soc #203

Closed HelpDesperatelyNeeded closed 11 months ago

HelpDesperatelyNeeded commented 11 months ago

Describe the bug When I try and run "make run --all" in ModelSim in the gui, as it tells me to do in the tutorial at https://esp.cs.columbia.edu/docs/singlecore/singlecore-guide/ I get an error saying "unrecognized option '--all'".

To Reproduce I have followed the steps in that tutorial up until that point and run the "make sim-gui" command successfully. I then typed "make run --all" in the transcript area of the gui.

Expected behaviour I expected it to complete the simulation.

Continued issue When I instead select "run -all" from the simulation drop down menu in the toolbar, after a while of running, I get "Failure: Program completed!" which then says "Break in Process line__225" at the top.vhd file. I have not edited the the top.vhd file at all. How do I solve this problem?

Desktop

jzuckerman commented 11 months ago

This is a typo in the guide. You should indeed just execute "run -all" or "run -a". The "Failure: Program completed!" is not a problem. This will always print when the processor has finished running the executable that you have specified. Do you see the expected output from the program you're simulating? The default program should print "Hello from ESP!".

HelpDesperatelyNeeded commented 11 months ago

Thank you for the quick response! Yes, I do see "Hello from ESP!" before the failure part. Does that mean everything ran as it should?

jzuckerman commented 11 months ago

Yes, the simulation is running properly then.