Aaron Shi

An interactive single cycle rv32i datapath. comb read, clocked write memories and register file. click and drag the circles and lines around for fun :) , and toggle the move slider to reshape the datapath and wires.

Datapath

speed 1.0×
cycle 0
ready
pc 0x0
ready

rv32i (single cycle)

Program
Registers
Data memory
Supported

Radd sub sll slt sltu xor srl sra or and

Mmul mulh div divu rem remu

Iaddi slti sltiu xori ori andi slli srli srai

Loadlb lh lw lbu lhu

Storesb sh sw

Branchbeq bne blt bge bltu bgeu

Jumpjal jalr

Upperlui auipc

Pseudoli mv not neg nop j jr ret ble bgt bleu bgtu beqz bnez blez bgez bltz bgtz

Stopecall ebreak