- Logisim is a tool which allows you to designing and simulating the digital logic circuits. With the capacity to build larger circuits from the smaller subcircuits.
- RISCV is an open source software standard instruction set architecture (ISA) that has originally designed to support computer architecture research and education.
- Register File
- ALU
- Control Unit
- Control Decode
- Type Decode
- Immediate Generation
- Program Counter/ Instruction Pointer
-Memory
- Instruction Memory (ROM)
- Data Memory (RAM)
- Branch Circuit
Construct the simple single cycle RISCV (RV32I) processor on logisim,by using 32 bit register file, control unit, immediate generation, ALU and use a Logisim ROM for the instruction memory and a Logisim RAM for the data memory.Firstly, create the 32 bit register file,this register file takes 5-bit address to select one of the 32 registers and write data to it using register enable wire.Secondly, make 32 Bit ALU with 4-bit having operations of ADD,SUB,AND,OR,XOR,slt,sltu,srl,sll,sra,DB which selects which operation to perform according to the instruction.Then make a control unit with the combination of type decode and control decode. Also create additional subcircuits, such as branches, jalr and the sign extension and shift 2, to keep your main circuit manageable and connected these components using wires and tunnel.And then provided register file uses the clock of logisim, also need to connect the PC and Data Memory (RAM) to the clock.
- add
- addi
- sub
- xor
- and
- slt
- sltu
- sll
- srl
- sra
- lw
- jalr
- slli
- srli
- srai
- slti
- sltiu
- sw
- auipc
- lui
- li
- beq
- bne
- blt
- bge
- bltu
- bgeu