aboutsummaryrefslogtreecommitdiffstats
path: root/tests/arch/common/shifter.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/arch/common/shifter.v')
-rw-r--r--tests/arch/common/shifter.v8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/arch/common/shifter.v b/tests/arch/common/shifter.v
index 3030608ab..06e63c9af 100644
--- a/tests/arch/common/shifter.v
+++ b/tests/arch/common/shifter.v
@@ -1,7 +1,13 @@
module top(out, clk, in);
output [7:0] out;
input signed clk, in;
- reg signed [7:0] out = 0;
+ reg signed [7:0] out;
+
+`ifndef NO_INIT
+ initial begin
+ out = 0;
+ end
+`endif
always @(posedge clk)
begin