3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-20 21:03:40 +00:00

Fixed sign handling in ternary operator

This commit is contained in:
Clifford Wolf 2013-07-12 01:15:37 +02:00
parent 3cd97a205f
commit ded769c98c
2 changed files with 10 additions and 2 deletions

View file

@ -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