Skip to content
Yuxin Wang edited this page Jul 11, 2022 · 5 revisions

ALU Circuit (src/alu.circ)

This ALU is implememted to do 13 operations determined by operator S, with two input X/Y, it can produce result according to the operator S and emit signed and unsigned overflow/Equal signals. The detailed circuit diagram is as below:

alu

Adder Circuit with Overflow Detection

adder_circuit

Register File (src/regfile.circ)

This regfile is implemented to simulate the 32 registers running in the MIPS CPU, with the signals passed to it, it can store data into register according to the given register number, and it can directly load up to two register's data to the port.

Overview

regfile

Clone this wiki locally