DEFAULT : ./WORKwhich will cause compiled files to be placed in the WORK subdirectory. You can either cut and paste the line above or make a copy using the command
cp ~elec464/.synopsys_vss.setup .
vhdlan asg2If your design has syntax errors, edit the source file to correct the errors and run this vhdlan command again.
vhdlan ~elec464/asg2tbwhere the file name will depend on the assignment and question. This command compiles the test bench code and saves the result, an entity called "test", in the WORK subdirectory. You must do this once for each new test bench since they will all have the name "test".
vhdlsim testThe simulator will then prompt you with the # character. Type run to run the test bench. You can get help on other simulator commands by using the command "help". If there are errors then the behaviour of your code does not agree with what the test bench was expecting. You must figure out why, edit your code, analyze it and run the simulator again (the test bench need not be analyzed again). Use the command "quit" to exit the simulator.
Once you are sure that your design works properly you will need to run vhdlsim again and produce a log file that can be be handed in. Use the command:
vhdlsim -s log testto run vhdlsim and produce a log file ("log") of the results.