Skip to content

MUST-SCSE-SE-2018/Single-Cycle-Processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Single-Cycle-Processor

description   stars   forks   contributors

   

It is a project of MUST course CO101-Computer Organization, which is a mini-CPU that could run MIPS.

Table of Contents

Development Environment

System Windows 10 x64
Language C
Test Assembly Language MIPS
IDE Visual Studio 2019 Community v16.8.3

Install

  • Install the Strawberry Perl.

  • Clone the repos:

    git clone https://github.com/MUST-SCSE-SE-2018/Single-Cycle-Processor.git
    

Usage

  1. Open the command line and enter the root.

    cd Single-Cycle-Processor
    
  2. Build a .exe file with GCC.

    gcc -o scp.exe minicpu.c minicpu.h
    
  3. Generate a .asc file by Perl command.

    perl minicpuasm.pl Test/test01.asm > test.asc
    
  4. Run the simulation, incommand is an integrated command file.

    scp.exe test.asc < incommand
    
  5. Run the simulation via separate commands.

    scp.exe test.asc -r
    

    Types 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

Tests

  • test01 & test02

     
  • Test_lw&sw

  • Test_Negative

  • Test_NOR

  • Test_Halt

  • Test_Halt_Outofboundary

Maintainers

badge @KennardWang

Contributing

Feel free to open an issue or submit PRs.

License

license © Kennard Wang ( 2020.11.4 )