Pipeline
Pipelined MIPS processor in Verilog
Install / Use
/learn @Menci/PipelineREADME
Pipeline
Pipelined MIPS processor in Verilog. See report for more information.
Supported instructions:
* add, addu, sub, subu, sll, srl, sra, sllv, srlv, srav, and, or, xor, nor, slt, sltu
* addi, addiu, andi, ori, xori, slti, sltiu
* lui
* mult, multu, div, divu, mfhi, mflo, mthi, mtlo
* beq, bne, blez, bgtz, bltz, bgez
* jr, jalr, j, jal
* lb, lbu, lh, lhu, lw, sb, sh, sw
* syscall (issues a $stop to pause simulation)
Advanced features such as exceptions, interrupts, privilege level and paging are NOT supported.
Run it with Vivado. The testbench file is:
module mips_tb;
reg reset, clock;
TopLevel topLevel(.reset(reset), .clock(clock));
integer k;
initial begin
reset = 1;
clock = 0; #1;
clock = 1; #1;
clock = 0; #1;
reset = 0; #1;
$stop;
#1;
for (k = 0; k < 5000; k = k + 1) begin
clock = 1; #5;
clock = 0; #5;
end
$finish;
end
endmodule
Related Skills
node-connect
339.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
339.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.9kCommit, push, and open a PR
