├── README.md
├── assignment1
├── MIPSassembler.cpp
├── MIPSassembler.h
├── report.pdf
└── testfile.asm
├── assignment2
├── 3.txt
├── 4.txt
├── MIPSassembler.cpp
├── MIPSassembler.h
├── MIPSsimulator.cpp
├── MIPSsimulator.h
├── adder.txt
├── dataHandler.cpp
├── dataHandler.h
├── fibonacii.txt
└── report.pdf
├── assignment3
├── ALU.v
├── report.pdf
└── test_ALU.v
└── assignment4
├── CPU.v
├── report.pdf
├── test_CPU_1.v
├── test_CPU_2.v
├── test_CPU_data_hazard.v
└── test_CPU_lw_stall.v
/README.md:
--------------------------------------------------------------------------------
1 | # CSC3050 Computer Architecture
2 |
3 | [](https://www.murphysec.com/p/MoyuST/CSC3050-Computer-Architecture)
4 |
5 | This is my favorite course during my undergraduate university life at CUHK(SZ).
6 | This course kind of is the first CSC course introduces me to some real coding.
7 |
8 | I still remembered how struggling it is to do the homework: I always started doing each assignment once it released and worked on it for three whole weeks till the last sec.
9 | But I always handled in each of them just right before the DDL😂.
10 |
11 | I really appreciated all the help I received from my friends at that time which really saved my life.
12 |
13 | To make the new CS students' lives easier, I decided to share my codes with you! Hope it can give you some hints.
14 |
15 | If you do find it helpful, plz gives me a star👍!
16 |
17 |
18 | The assignments and my scores for them are:
19 |
20 | - MIPS Assembler (100/100)
21 | - MIPS Simulator (100/100)
22 | - ALU (100/100)
23 | - pipeline CPU (with hazard handling) (110/110)
24 |
25 | I guess there may be some bugs in my code🤣. You may need to check carefully when looking at my codes.
26 |
27 | Good luck to all CSers and CEers in CUHK(SZ)!
28 |
--------------------------------------------------------------------------------
/assignment1/MIPSassembler.cpp:
--------------------------------------------------------------------------------
1 | #include
2 | #include
3 | #include
4 | #include
5 | #include