Skip to content

Transplant μC/OS II Operating System on 89-instructions MIPS dynamic pipeline CPU

Notifications You must be signed in to change notification settings

Kamu1403/Operating-System-Transplant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Operating-System-Transplant

Introduction

Transplant μC/OS II Operating System on 89-instructions MIPS dynamic pipeline CPU

Our work

  • Realized 89 MIPS CPU, GPIO, UART serial port on Digilent Nexys4 FPGA board, and realized DDR2 reading and writing by MIG, SPI FLASH reading, and seven-segment digital tube, and used Wishbone B2 to connect all modules

  • Modified the μC/OS II system, compiled it using the Ubuntu cross-compilation environment, coded it to the flash, and achieved serial port output after running

  • For more information, refer to CPU report and OS report.

Dependencies

  • Vivado 2016.2
  • Digilent Nexys 4 DDR FPGA board
  • Mars 4.5: Mips Assembly and Runtime Simulator

How to use

MIPS CPU

  1. Include all the files in code directory.
  2. Use Vivado to synthesis, implementation, generate bitstream and program to board.
  3. Configure the spi flash data and write it to the binary program file of the μC/OS II operating system. You need to specify the Configuration file.
  1. Serial Port Result
  • Enable serial port debugging, set the baud rate to 19200 BPS, data bit to 8, no parity bit, and stop bit to 1. Run the bit down the board to observe the serial communication
  • I use SSCOM to listen for signals over the serial port, but any serial debugger will work
  1. Digital tube GPIO output, sw[3:0]=6, check gpio output.

Operate system

  1. We provide pre-compiled operating system files here. If you need to modify, you can also follow the steps below
    1. Compile the bootloader
    1. Compile μC/OSII system
    • Since makefiles are built .depend files, you need to run distclean first to clear dependencies.
  2. Configure the spi flash data and write it to the binary program file of the μC/OS II operating system. You need to specify the Configuration file.
  1. Serial Port Result
  • Opens the serial port debugging, sets the baud rate to 19200 BPS, 8 data bits, no parity bits, and 1 stop bit. Run the bit down the board to observe the serial communication
  1. By uart, enter the first operator '5', the operator '-', and the second operator '2' in order. The run ends when the final result is obtained.
  1. You can also try other operators.
  1. Digital tube GPIO output, sw[3:0]=6, check gpio output.

About

Transplant μC/OS II Operating System on 89-instructions MIPS dynamic pipeline CPU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published