COAL – Computer Organization (Solution)

$ 20.99
Category:

Description

Lab 2: Single Cycle CPU – Simple Edition
1. Goal
Utilizing the ALU in Lab1 to implement a simple single cycle CPU. CPU is the most important unit in computer system. Reading the document carefully and do the Lab, you will have elementary knowledge of CPU.

2. Demands
a. Please use ModleSim or Xilinx as your HDL simulator.

b. Group member same as Lab1. Just hand in one assignment for one group. Please attach your names and student IDs as comments in each of .v source code, unless you’ll get 0 point.

c. Put .v source files and report into a compressed file.The compressed file you upload on E3 must have the form of “student ID.zip “. (Ex.
0216310_0216077.zip or 0216310.zip)
d. Program Counter, Instruction Memory, Register File and Test Bench are supplied.
e. Instruction set: the following instructions have to running in your designed CPU (80 pts.).
f. For the ones who can’t read testcase txt files or dump result txt file, please change the relative path in testbench and instr_memory file to absolute path.

3. Architecture Diagram

4. Test
There are 2 test patterns, CO_P2_test_data1.txt, CO_P2_test_data2.txt. The default pattern is the first one. Please change the column 39 in the file
“Instr_Memory.v” if you want to test another case. $readmemb(“CO_P2_test_data1.txt”, Instr_Mem)

The following are the assembly code for the test patterns.

The file ”CO_P2_Result.txt” will be generated after executing the Testbench. Check your answer with it.
5. Grade
a. Total score: 100 pts. COPY WILL GET A 0 POINT!

b. Instruction score: 80 pts.

c. Report: 20pts – format is in CO_document.

e. Put .v source files and report into a compressed file.The compressed file must be zip and named by your student ID (ex.0216310.zip for one person and 0216310_0216077.zip for two people).Don’t put all project file into the compressed file,or you’ll get 0 point. If you don’t follow the rule to name the compressed file, also get 0 point. If your upload file isn’t .zip, 0 point.

f. If you don’t follow the architecture diagram, you’ll get 0 point.

g. Late submission: Score*0.8 before 5/11. After 5/11,you will get 0 point.

6. Hand in your assignment
Please upload the assignment to the E3.

Put all of .v source files and report into same compressed file. (Use your student ID to be the name of your compressed file)
7. Q&A
If you have any question, just send email to TAs.
8. Appendix
In lab2, you can use 32bits ALU .

Here is the example of 32bits ALU from textbook

Reviews

There are no reviews yet.

Be the first to review “COAL – Computer Organization (Solution)”

Your email address will not be published. Required fields are marked *