mirror of
https://github.com/supleed2/ELEC50010-IAC-CW.git
synced 2024-12-23 05:45:47 +00:00
Merge branch 'main' of https://github.com/supleed2/AM04_CPU into main
This commit is contained in:
commit
56b5b1aa89
|
@ -27,7 +27,7 @@ always_comb begin
|
||||||
readdata2 = memory[readreg2]; //combinatorially output register value based on read port 2 selector
|
readdata2 = memory[readreg2]; //combinatorially output register value based on read port 2 selector
|
||||||
end
|
end
|
||||||
|
|
||||||
always_ff @(posedge clk) begin
|
always_ff @(negedge clk) begin
|
||||||
if (regwrite) begin
|
if (regwrite) begin
|
||||||
case (opcode)
|
case (opcode)
|
||||||
6'b100000: begin //lb, load byte
|
6'b100000: begin //lb, load byte
|
||||||
|
|
Loading…
Reference in a new issue