From 0cf0f4d3ce999a386715116d5a8bfea0aa050e93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Mon, 13 Apr 2015 14:46:30 +0200 Subject: Added a simple parameterized zero extension to squash warnings in ISE and Verilator. --- src/rtl/rosc.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rtl') 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 -- cgit v1.2.3