load (word only) appears to be working

This commit is contained in:
2020-11-14 23:13:24 -07:00
parent 4a25ca6def
commit f0166f1954
3 changed files with 45 additions and 28 deletions

View File

@ -256,9 +256,12 @@ always @(*) begin
default: s_id_invalid = 1;
endcase
end
// OP_LOAD: begin
// end
OP_LOAD: begin
s_id_load = 1;
s_id_s1 = regfile[s_id_rs1];
s_id_s2 = s_id_immed_itype;
// TODO: finish parsing (byte vs word. For now always assume word)
end
OP_STORE: begin
s_id_store = 1;
s_id_s1 = regfile[s_id_rs1];