diff options
author | Zachary Snow <zach@zachjs.com> | 2020-08-20 20:15:08 -0400 |
---|---|---|
committer | Zachary Snow <zach@zachjs.com> | 2020-08-20 20:15:08 -0400 |
commit | 6127f227880af506d806179ac622aba44c35fd4b (patch) | |
tree | 824f581a72510f97036f1bc3be24565d2ff2098c /tests/simple | |
parent | 082cbcb4c7c4fa6984f86f8edb2e1d16e8ad3a41 (diff) | |
download | yosys-6127f227880af506d806179ac622aba44c35fd4b.tar.gz yosys-6127f227880af506d806179ac622aba44c35fd4b.tar.bz2 yosys-6127f227880af506d806179ac622aba44c35fd4b.zip |
Module name scope support
Diffstat (limited to 'tests/simple')
-rw-r--r-- | tests/simple/generate.v | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/simple/generate.v b/tests/simple/generate.v index dcd450e47..12327b36e 100644 --- a/tests/simple/generate.v +++ b/tests/simple/generate.v @@ -223,6 +223,10 @@ module gen_test8; `ASSERT(A.x == 2) `ASSERT(A.C.x == 1) `ASSERT(A.B.x == 0) + `ASSERT(gen_test8.x == 3) + `ASSERT(gen_test8.A.x == 2) + `ASSERT(gen_test8.A.C.x == 1) + `ASSERT(gen_test8.A.B.x == 0) end begin : C wire [1:0] x = 2'b01; @@ -230,12 +234,20 @@ module gen_test8; `ASSERT(A.x == 2) `ASSERT(A.C.x == 1) `ASSERT(A.B.x == 0) + `ASSERT(gen_test8.x == 3) + `ASSERT(gen_test8.A.x == 2) + `ASSERT(gen_test8.A.C.x == 1) + `ASSERT(gen_test8.A.B.x == 0) end assign x = B.x ^ 2'b11 ^ C.x; `ASSERT(x == 2) `ASSERT(A.x == 2) `ASSERT(A.C.x == 1) `ASSERT(A.B.x == 0) + `ASSERT(gen_test8.x == 3) + `ASSERT(gen_test8.A.x == 2) + `ASSERT(gen_test8.A.C.x == 1) + `ASSERT(gen_test8.A.B.x == 0) end endgenerate @@ -243,4 +255,8 @@ module gen_test8; `ASSERT(A.x == 2) `ASSERT(A.C.x == 1) `ASSERT(A.B.x == 0) + `ASSERT(gen_test8.x == 3) + `ASSERT(gen_test8.A.x == 2) + `ASSERT(gen_test8.A.C.x == 1) + `ASSERT(gen_test8.A.B.x == 0) endmodule |