Lab Sessions
There are 8 lab sessions designed for the course. Labs are started from Jan. 15. For exact dates please check here. Labs A-D are related to Chapter 2 and 3; Labs K-N are based on Chapter 4. In order to take lab tests, you need to attend to your registered section only. For exact lab dates please check the important date section. Each lab is divided into two half. The first half takes 1.5 hours and assigned for prelabs tutorials. Prelab tutorials contain a series of experiments and questions which you have to do them by yourself and make you ready for the lab test session which is took place right after prelab sessions. During prelab sessions for each lab there are two TAs to help you to understand the prelab materials. In each prelab tutorial, you will develop some codes which you can submit for your reference when you do lab test. During lab tests which takes 75 minutes, your machine is disconnected from the internet and you only have access to your submitted prelab materials and some API links. You can submit your prelab documents using the following command in the Linux terminal:
submit 2021Z prelab <file1> <file2> <file3>
Where <file*> contains your prelab codes. Or submit a directory using
submit 2021Z prelab <directory>
Where <directory> is the name of the folder contains all prelab files. For more information about the submit command in labs, please check here and for submitting from outside labs please check here.
When you submit your files as prelabs activities, make sure they are ASCII files, i.e., only contains printable characters, otherwise they wont be appeared during the lab test session. To make sure your file contains only printable characters use “file” command in the Linux environment. If the file command reports the file is ASCII file your file be accessible during the lab test otherwise you don't have access to them.
Note that the due date for submitting prelabs is 10 minutes before the lab test starts. When the lab test starts, you don't have access to your prelab materials if you have not submit them using the “submit” command.
During the lab test mode in your home directory, you can find a directory named “unsubmit” contains all prelab files. Note that only text files will be accepted to be submitted as prelab works they are marked as read only . To work on files, you need to copy your file in your home directory using:
cp unsubmit/prelab/myfile ~
jedit ~/myfile
During lab tests, TAs are not allowed to answer any question. You need to read the lab question carefully and submit your solution exactly based on the lab question.
Makeup Labs
If for any reason you cannot attend any lab test there are two makeup lab sessions. One makeup lab is assigned for Lab A-D and the other is assigned for K-N. For makeup lab sessions there is no prelab and lab tests are started in the second half of lab times. You can answer as many as labs you have missed but remember you only have 80 minutes for all missed labs.
Mark Rubrics
Mark | Description |
---|---|
3 | Done all requirements and contains enough comments. There is no redundant codes. |
2.5 | The answer is very close to the required answer; only uppercase/lowercase or spaces are missed |
2 | The answer is not correct but the answer is very close to the correct answer. For example the order of the characters is not right or a small part of the required output is missed. |
1 | The answer is not correct. The submission shows enough attempt to solve the problem. |
0 | The code is not compiled or the name of the file is not what is been asked. |
You can find all RISC-V materials from here. You need to download a proper simulator for your operating system. In labs under Linux, you can access the RISC-V simulator by typing rvs039 in labs.
Please find the RISK-V Green Card here
Please find the IO calls supported by the RISK-V simulator here
You can download and install Icarus Verilog for labs K-N for your operating system from:
Acknowledgement: The following tutorials are developed by professor Hamzeh Roumani for MIPS ISA. Lab B-D and M-N are modified by Dr. Nick Sajadi to adopt RISK-V ISA.
RISK-V ISA:
RISK-V Single Cycle Data path: