1
0
Fork 0
mirror of https://github.com/YosysHQ/picorv32.git synced 2025-01-03 03:43:38 -05:00

Bugfix in C.SRAI implementation

This commit is contained in:
Clifford Wolf 2016-04-09 14:27:28 +02:00
parent ef8014eebd
commit aa17d58784

View file

@ -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