aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rtl/rosc.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rtl/rosc.v b/src/rtl/rosc.v
index 522cac6..59ce3b2 100644
--- a/src/rtl/rosc.v
+++ b/src/rtl/rosc.v
@@ -97,7 +97,7 @@ module rosc #(parameter WIDTH = 2)
reg cin;
cin = ~sum[WIDTH];
- sum = opa + opb + cin;
+ sum = opa + opb + {{(WIDTH - 1){1'b0}}, cin};
dout_new = sum[WIDTH];
end
endmodule // rosc