Add test case from #997
authorClifford Wolf <clifford@clifford.at>
Tue, 7 May 2019 17:58:04 +0000 (19:58 +0200)
committerClifford Wolf <clifford@clifford.at>
Tue, 7 May 2019 17:58:04 +0000 (19:58 +0200)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
tests/simple/dff_init.v

index be947042eaac14fde06e0ebf4d97e79aaa71daf9..375ea5c4dc2398e0ae7477ef09b264fa88ff1428 100644 (file)
@@ -40,3 +40,15 @@ module dff1a_test(n1, n1_inv, clk);
       n1 <= n1_inv;
   assign n1_inv = ~n1;
 endmodule
+
+module dff_test_997 (y, clk, wire4);
+// https://github.com/YosysHQ/yosys/issues/997
+   output wire [1:0] y;
+   input             clk;
+   input signed      wire4;
+   reg [1:0]  reg10 = 0;
+   always @(posedge clk) begin
+      reg10 <= wire4;
+   end
+   assign y = reg10;
+endmodule