Fix some errors

j-2.ref.txt fixed and removed square bracket from regfile
This commit is contained in:
jl7719 2020-12-19 10:41:05 +00:00
parent 49b7fdbe07
commit cecf5537b0
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
3
2

View file

@ -48,7 +48,7 @@ always_ff @(negedge clk) begin
endcase // readdata1[1:0]
end
6'b100001: begin //lh, load half-word
case (vaddr]) // must be half-word aligned, readdata1[0] = 0
case (vaddr) // must be half-word aligned, readdata1[0] = 0
2'b00: memory[writereg] <= {{16{writedata[15]}}, writedata[15:0]};
2'b10: memory[writereg] <= {{16{writedata[31]}}, writedata[31:16]};
endcase // readdata1[1:0]