diff options
author | David Shah <dave@ds0.me> | 2019-11-22 09:21:35 +0000 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2020-02-02 16:12:33 +0000 |
commit | 7e741714df62338a2037d24721ef99ca8a0c6763 (patch) | |
tree | 84a5200af6af1219450f7cbd43d3639b48f99f33 /tests/various | |
parent | a210675d71b30e97bad728d7f418c14ea0eb28ba (diff) | |
download | yosys-7e741714df62338a2037d24721ef99ca8a0c6763.tar.gz yosys-7e741714df62338a2037d24721ef99ca8a0c6763.tar.bz2 yosys-7e741714df62338a2037d24721ef99ca8a0c6763.zip |
hierarchy: Correct handling of wildcard port connections with default values
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'tests/various')
-rwxr-xr-x | tests/various/sv_implicit_ports.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/various/sv_implicit_ports.sh b/tests/various/sv_implicit_ports.sh index 13d39cf8b..2faac2e85 100755 --- a/tests/various/sv_implicit_ports.sh +++ b/tests/various/sv_implicit_ports.sh @@ -54,3 +54,14 @@ module top(input [7:0] a, output [7:0] q); endmodule EOT ) 2>&1 | grep -F "ERROR: Width mismatch between wire (7 bits) and port (8 bits) for implicit port connection \`b' of cell top.add_i (add)." > /dev/null + +# Defaults +../../yosys -f "verilog -sv" -qp "prep -flatten -top top; select -assert-count 1 t:\$add" - <<EOT +module add(input [7:0] a = 8'd00, input [7:0] b = 8'd01, output [7:0] q); +assign q = a + b; +endmodule + +module top(input [7:0] a, output [7:0] q); + add add_i(.*); +endmodule +EOT |