diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2015-04-13 14:46:30 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2015-04-13 14:46:30 +0200 |
commit | 0cf0f4d3ce999a386715116d5a8bfea0aa050e93 (patch) | |
tree | a689c588c6eda8813c9e8351f28f481f3a069043 /src | |
parent | b4b02140677c27ebb35ec2fdea6e93006d975967 (diff) |
Added a simple parameterized zero extension to squash warnings in ISE and Verilator.
Diffstat (limited to 'src')
-rw-r--r-- | src/rtl/rosc.v | 2 |
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 |