You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Back to TOC Prev: Day7$~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~$Next: Day9
Day 8: Basic RISC-V CPU Microarchitecture
Our objective is to implement a basic RISC-V CPU core (RV32I Base Instruction set except the instructions - FENCE, ECALL & EBREAK).
The following diagrams show the general block diagram of the CPU and the initial implementation pipeline diagram using TL-Verilog:
CPU Block Diagram
TL-Verilog based implementation pipeline/ flow diagram
The implementation is done stage-by-stage verifying the functionality at each step in the Makerchip IDE. The following logic blocks are implemented and verified:
Program Counter (PC)
Instruction Fetch from Instruction Memory (IMEM Read)
Instruction Decoder
Instruction Type Decode (I, R, S, B, U, J)
Instruction Immediate Value Decoding
Instruction Field Decoding
Complete Instruction Decoding
Register File Read
Arithmetic & Logic Unit (ALU)
Register File Write
Branch Instructions
(Modifying PC logic and adding additional logic to handle the Branch instructions)