mirror of
https://github.com/supleed2/ELEC50010-IAC-CW.git
synced 2024-12-22 21:35:48 +00:00
Fix some errors
j-2.ref.txt fixed and removed square bracket from regfile
This commit is contained in:
parent
49b7fdbe07
commit
cecf5537b0
|
@ -1 +1 @@
|
||||||
3
|
2
|
|
@ -48,7 +48,7 @@ always_ff @(negedge clk) begin
|
||||||
endcase // readdata1[1:0]
|
endcase // readdata1[1:0]
|
||||||
end
|
end
|
||||||
6'b100001: begin //lh, load half-word
|
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'b00: memory[writereg] <= {{16{writedata[15]}}, writedata[15:0]};
|
||||||
2'b10: memory[writereg] <= {{16{writedata[31]}}, writedata[31:16]};
|
2'b10: memory[writereg] <= {{16{writedata[31]}}, writedata[31:16]};
|
||||||
endcase // readdata1[1:0]
|
endcase // readdata1[1:0]
|
||||||
|
|
Loading…
Reference in a new issue