Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sharierhea/processor
A simple CPU replicated in Java, for ICSI 404 Spring 24.
https://github.com/sharierhea/processor
Last synced: about 2 months ago
JSON representation
A simple CPU replicated in Java, for ICSI 404 Spring 24.
- Host: GitHub
- URL: https://github.com/sharierhea/processor
- Owner: SharieRhea
- Created: 2024-01-19T15:47:23.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-05-17T00:50:05.000Z (8 months ago)
- Last Synced: 2024-05-17T02:49:30.068Z (8 months ago)
- Language: Java
- Homepage:
- Size: 821 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Processor
This project replicates a 32-bit processor in Java based entirely on two core classes: Bit and Word. The processor uses a custom assembly language SIA32, for which an interpreter is provided. Some sample programs are available.The processor has two basic caches. There is a level 1 instruction cache and a level 2 cache that holds both instructions and data. After a program runs, the total number of clock cycles is printed to the console.
This project was created as part of the Computer Architecture and Organization class ICSI 404 Spring 2024.
## Use
1. Clone the repository and build the project.
2. Write an assembly program.
3. Run the main class, passing the path to your assembly file as an argument.
4. Watch it run!## UML
Note: Classes related to unit testing, lexing, parsing, and interpreting have been removed for brevity.
![A UML diagram that includes the core classes in the project](Processor.png)