2023-12-27 20:46:56 -05:00

26 lines
588 B
Systemverilog

// RISC-V CPU Hart
module hart(clock);
input clock; // the clock. pretty important.
always begin
// instruction fetch
@(posedge clock);
$display("== INSTRUCTION FETCH ==");
// instruction decode
@(posedge clock);
$display("== INSTRUCTION DECODE ==");
// get shit
@(posedge clock);
$display("== GET REGISTERS ==");
// execute
@(posedge clock);
$display("== EXECUTE ==");
// write back
@(posedge clock);
$display("== WRITE REGISTERS ==");
end
endmodule