aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorclairexen <claire@symbioticeda.com>2020-09-01 17:30:09 +0200
committerGitHub <noreply@github.com>2020-09-01 17:30:09 +0200
commit3e1840d0365666e8cae3f61ff0e0364809ce56f3 (patch)
treedce7c28119a3c68627dbac21c76cc5fbc5ef5f67 /tests
parent452442ac2fcdec92a98a5a0896b2b3866db9e5e9 (diff)
parent6127f227880af506d806179ac622aba44c35fd4b (diff)
downloadyosys-3e1840d0365666e8cae3f61ff0e0364809ce56f3.tar.gz
yosys-3e1840d0365666e8cae3f61ff0e0364809ce56f3.tar.bz2
yosys-3e1840d0365666e8cae3f61ff0e0364809ce56f3.zip
Merge pull request #2353 from zachjs/top-scope
Module name scope support
Diffstat (limited to 'tests')
-rw-r--r--tests/simple/generate.v16
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