Skip to content

Latest commit

 

History

40 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer emulation in Logisim Evolution

An early stage program showcasing Output

I/O Operation


Hello There! It's a repository showcasing my CSE2114 (Computer Architecture Sessional) project. The task was to build a 29 bit computer with at least 4 instructions. As it was an open ended project I added some extra objectives.

Objectives

  • Building a computer with instruction set similar to RISC-V , in Harvard architecture
  • Make the computer five stage pipelined
  • The computer should support IO device interfacing
  • Design A compiler, the compiler should provide higher level functionalities such as push/pop,mov etc.
  • Code a snake game
  • Design preset bootloader and interrupt set

The Project

Open the CPU.circ file in Logisim Evolution. Write assembly codes following the Assembly Manual and compile/assemble using the compiler (Requires NodeJS).

./translate file.asm

The computer designed in Logisim Evolution

The details on the hardware design can be found here. Learn about the Compiler Design

Notes

  • The r0 has a fixed value : 0 , which is useful for implementing various high level features such as mov or jz. The r16 produces random value.
  • In case of jumps the later 3 instructions must be replaced with nop
  • Cache was not added as it'd require interrupt management system and slow down the computer
  • No register on WB - Memory (As memory already takes one clock extra), May need to add buffer on every IO
  • While debugging hard errors can be detected by checking current status (line status); most hard errors are delay related. In case of soft error / resource conflict, it must be resolved by the assembler (pause command in case of conflict, if placable place other instruction else place nop).

References

About

A 29bit , 5 Stage pipelined RISC computer with dedicated assembler.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages