It is a project of MUST course CO101-Computer Organization, which is a mini-CPU that could run MIPS.
| System | Windows 10 x64 |
| Language | C |
| Test Assembly Language | MIPS |
| IDE | Visual Studio 2019 Community v16.8.3 |
-
Install the Strawberry Perl.
-
Clone the repos:
git clone https://github.com/MUST-SCSE-SE-2018/Single-Cycle-Processor.git
-
Open the command line and enter the root.
cd Single-Cycle-Processor -
Build a
.exefile with GCC.gcc -o scp.exe minicpu.c minicpu.h -
Generate a
.ascfile by Perl command.perl minicpuasm.pl Test/test01.asm > test.asc -
Run the simulation,
incommandis an integrated command file.scp.exe test.asc < incommand -
Run the simulation via separate commands.
scp.exe test.asc -rTypes of commands are shown in the following list.
Command Description c content r show register m show memory p print asc file g control signal h state i capacity (unit: int = 4 bytes) s step q quit x quit
-
test01 & test02
-
Test_lw&sw
-
Test_Negative
-
Test_NOR
-
Test_Halt
-
Test_Halt_Outofboundary
Feel free to open an issue or submit PRs.







