A simulation of a small classical CISC computer
All the classes we need to implement are in ClassProject/src/main/java/com/app/classproject.
Display the user interface (DO NOT CAHNGE).
Receive requests submitted by the front-end, execute the action and return the result. You can add a data interface here for testing. Data are passed in JSON format: Just create a JSONObject, put something in and return it. Usually put a status in the JSON data, 0 → normal and -1 → abnormal.
Models a fully associative, unified cache using a LinkedList data structure. 16 cache lines and FIFO policy
Contains definitions of program instructions. Each instruction takes a 16-bit binary input.
Define the virtual computer, could initialize registers and memory, pre-load and run program.
Links architecture models to UI
Models a 16-bit memory unit. Includes functions to translate from a base 2 binary array to base 10 integer and parse the components of an instruction.
Models a simple 3-stage pipeline. Stage 1- Fetch instruction. Stage 2- Decode instruction and load register values. Stage 3- Execute instruction, memory access, and write back.
Models a program register and provides a constructor to create all required types of registers.
target/classproject-0.0.1-SNAPSHOT.jar