Commit f373d31f authored by jinbao chen's avatar jinbao chen
Browse files

fix bugs

parent 9d9a7565
......@@ -100,7 +100,7 @@ if(Op==7'b1110011)begin//csr
CSRAluCtlD <= `SET;
CSRRead <= 1'b1;
RegWriteD <= `LW;
CSRWriteD <= (Rs1D==5'b00000)?1'b0:1'b1;
CSRWriteD <= 1'b1;
end
3'b011:begin//csrrc
RegReadD <= 2'b10;
......@@ -116,7 +116,7 @@ if(Op==7'b1110011)begin//csr
CSRAluCtlD <= `CLEAR;
CSRRead <= 1'b1;
RegWriteD <= `LW;
CSRWriteD <= (Rs1D==5'b00000)?1'b0:1'b1;
CSRWriteD <= 1'b1;
end
default:begin
RegReadD <= 2'b00;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment