synthesizable wildcard conversion

This commit is contained in:
Zachary Snow
2020-07-13 23:15:06 -06:00
parent 51f2d2bb33
commit 2d3973e624
2 changed files with 42 additions and 33 deletions
+6 -1
View File
@@ -14,9 +14,14 @@ module top;
initial $display("D", 3'bz11 inside {3'b1?1, 3'b011});
initial $display("E", 3'bz11 inside {3'b?01, 3'b011});
generate
begin : patterns
localparam A = 3'b1?1;
end
endgenerate
function test1;
input logic [2:0] inp;
return inp inside {3'b1?1};
return inp inside {patterns.A};
endfunction
initial begin
// should match