From aa17d587843a78e3d49b5e24bc5e4ab76e8c6383 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 9 Apr 2016 14:27:28 +0200 Subject: [PATCH] Bugfix in C.SRAI implementation --- picorv32.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picorv32.v b/picorv32.v index 8d40052..05c67ba 100644 --- a/picorv32.v +++ b/picorv32.v @@ -276,7 +276,7 @@ module picorv32 #( mem_rdata_q[31:25] <= 7'b0000000; mem_rdata_q[14:12] <= 3'b 101; end - if (mem_rdata_latched[11:10] == 2'b00) begin // C.SRAI + if (mem_rdata_latched[11:10] == 2'b01) begin // C.SRAI mem_rdata_q[31:25] <= 7'b0100000; mem_rdata_q[14:12] <= 3'b 101; end