From ded769c98cffe5682c0211dba08abc4a1efe3d5a Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Fri, 12 Jul 2013 01:15:37 +0200 Subject: Fixed sign handling in ternary operator --- tests/simple/vloghammer.v | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') diff --git a/tests/simple/vloghammer.v b/tests/simple/vloghammer.v index eb0e15d0..c97a2be5 100644 --- a/tests/simple/vloghammer.v +++ b/tests/simple/vloghammer.v @@ -57,3 +57,11 @@ module test08(a, b, y); assign y = a == ($signed(b) >>> 1); endmodule +module test09(a, b, c, y); + input a; + input signed [1:0] b; + input signed [2:0] c; + output [3:0] y; + assign y = a ? b : c; +endmodule + -- cgit v1.2.3