diff options
author | whitequark <whitequark@whitequark.org> | 2021-02-03 09:43:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-03 09:43:23 +0000 |
commit | 4bc6995b9ab5e88013f0ff876a91bdcd398a4e54 (patch) | |
tree | b3ceb0d0b387549570726305b5f1a6f91962f493 /tests | |
parent | beeaad19045f017acb27e38eb452457726932a8f (diff) | |
parent | 84ecb321b4f9f9e6284e4c26eee81759b93f266c (diff) | |
download | yosys-4bc6995b9ab5e88013f0ff876a91bdcd398a4e54.tar.gz yosys-4bc6995b9ab5e88013f0ff876a91bdcd398a4e54.tar.bz2 yosys-4bc6995b9ab5e88013f0ff876a91bdcd398a4e54.zip |
Merge pull request #2436 from dalance/fix_generate
Fix begin/end in generate
Diffstat (limited to 'tests')
-rw-r--r-- | tests/simple/const_branch_finish.v | 3 | ||||
-rw-r--r-- | tests/simple/generate.v | 8 |
2 files changed, 4 insertions, 7 deletions
diff --git a/tests/simple/const_branch_finish.v b/tests/simple/const_branch_finish.v index 8166688e6..f585be87a 100644 --- a/tests/simple/const_branch_finish.v +++ b/tests/simple/const_branch_finish.v @@ -21,9 +21,6 @@ module top; end end generate - begin : unconditional_block - initial `CONSTANT_CHECK - end if (WIDTH == 32) begin : conditional_block initial `CONSTANT_CHECK end diff --git a/tests/simple/generate.v b/tests/simple/generate.v index 12327b36e..667f40096 100644 --- a/tests/simple/generate.v +++ b/tests/simple/generate.v @@ -167,7 +167,7 @@ module gen_test7; reg [2:0] out2; wire [2:0] out3; generate - begin : cond + if (1) begin : cond reg [2:0] sub_out1; reg [2:0] sub_out2; wire [2:0] sub_out3; @@ -215,9 +215,9 @@ module gen_test8; wire [1:0] x = 2'b11; generate - begin : A + if (1) begin : A wire [1:0] x; - begin : B + if (1) begin : B wire [1:0] x = 2'b00; `ASSERT(x == 0) `ASSERT(A.x == 2) @@ -228,7 +228,7 @@ module gen_test8; `ASSERT(gen_test8.A.C.x == 1) `ASSERT(gen_test8.A.B.x == 0) end - begin : C + if (1) begin : C wire [1:0] x = 2'b01; `ASSERT(x == 1) `ASSERT(A.x == 2) |