X-Git-Url: http://git.joshuawise.com/firearm.git/blobdiff_plain/81a01a2b3225a62f9f0af74e5b2480c51ddbd1fe..a4c270c74d821e221d30d405bca8676963f29340:/Execute.v diff --git a/Execute.v b/Execute.v index ac828a5..6582581 100644 --- a/Execute.v +++ b/Execute.v @@ -258,7 +258,7 @@ module ALU( assign sum = {1'b0, in0} + {1'b0, in1}; assign diff = {1'b0, in0} - {1'b0, in1}; - assign rdiff = {1'b0, in1} + {1'b0, in0}; + assign rdiff = {1'b0, in1} - {1'b0, in0}; assign sum_v = (in0[31] ^~ in1[31]) & (sum[31] ^ in0[31]); assign diff_v = (in0[31] ^ in1[31]) & (diff[31] ^ in0[31]); assign rdiff_v = (in0[31] ^ in1[31]) & (rdiff[31] ^ in1[31]);