From 50fb7fc8b4dd1dab56f8ec0411c5a7bd7f86c5f0 Mon Sep 17 00:00:00 2001 From: Yutetsu TAKATSUKASA Date: Sun, 2 Feb 2020 09:07:02 +0900 Subject: [PATCH] Tests: Resolve self assignment in t_unoptflat_simple_2, Closes #2149. --- test_regress/t/t_unoptflat_simple_2.v | 4 ++-- test_regress/t/t_unoptflat_simple_2_bad.out | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test_regress/t/t_unoptflat_simple_2.v b/test_regress/t/t_unoptflat_simple_2.v index d3b50d32d..56feec201 100644 --- a/test_regress/t/t_unoptflat_simple_2.v +++ b/test_regress/t/t_unoptflat_simple_2.v @@ -14,7 +14,7 @@ module t (/*AUTOARG*/ wire [2:0] x; assign x[1:0] = { x[0], clk }; - assign x[2:1] = { clk, x[1] }; + assign x[2:1] = x[1:0]; always @(posedge clk or negedge clk) begin @@ -22,7 +22,7 @@ module t (/*AUTOARG*/ $write("x = %x\n", x); `endif - if (x[1] != 0) begin + if (x[2] != 0) begin $write("*-* All Finished *-*\n"); $finish; end diff --git a/test_regress/t/t_unoptflat_simple_2_bad.out b/test_regress/t/t_unoptflat_simple_2_bad.out index d13984a08..f926a30e1 100644 --- a/test_regress/t/t_unoptflat_simple_2_bad.out +++ b/test_regress/t/t_unoptflat_simple_2_bad.out @@ -6,7 +6,7 @@ t/t_unoptflat_simple_2.v:16: Example path: ASSIGNW t/t_unoptflat_simple_2.v:14: Example path: t.x %Warning-UNOPTFLAT: Widest candidate vars to split: -%Warning-UNOPTFLAT: t/t_unoptflat_simple_2.v:14: t.x, width 3, fanout 12 +%Warning-UNOPTFLAT: t/t_unoptflat_simple_2.v:14: t.x, width 3, fanout 10 %Warning-UNOPTFLAT: Most fanned out candidate vars to split: -%Warning-UNOPTFLAT: t/t_unoptflat_simple_2.v:14: t.x, width 3, fanout 12 +%Warning-UNOPTFLAT: t/t_unoptflat_simple_2.v:14: t.x, width 3, fanout 10 %Error: Exiting due to