232 Femto 4-bit CPU

232 : Femto 4-bit CPU

Design renderSelect Project123456789ONSW2
  • Author: Majdi Abdul Samad, ECE Dept., American University of Beirut ([email protected])
  • Description: Design of a small single-cycle CPU with simple RISC/Accumulator ISA
  • GitHub repository
  • Clock: 5 Hz

How it works

NOTE: ISA is included in the ReadMe. Contains a register file, ALU, and 7 segment decoder. Instructions are sent in from inputs 7 downto 1 (0 reserved for clk), the register source and destination are sent to the register file (synch write/asynch read). Opcode and register read data are sent to the ALU for the operation. The output data could be stored in the ALU, the reigster file, or sent to the 7 segment decoder to power the LED output. See the ReadMe for more details.

How to test

Design was tested with a ModelSim TCL script, provided here and should be compatible with other TCL accepting simulators. A cocotb testbench will also be made available.

External hardware

None

Picture

IO

#InputOutput
0clocksegment a
1opcode[0]segment b
2opcode[1]segment c
3opcode[2]segment d
4reg_dest[0]segment e
5reg_dest[1]segment f
6reg_src[0]segment g
7reg_src[1]