Skip to content

Commit e6f0621

Browse files
authored
Merge pull request #969 from diffblue/named_block1
Verilog: KNOWNBUG for declarations inside a named block inside a function
2 parents 3579ca1 + cf0e68b commit e6f0621

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
KNOWNBUG
2+
named_block1.sv
3+
4+
^\[.*\] always main\.foo\(\) == 123: PROVED$
5+
^EXIT=0$
6+
^SIGNAL=0$
7+
--
8+
^warning: ignoring
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module main;
2+
3+
function [31:0] foo;
4+
begin : block_name
5+
reg [31:0] x;
6+
x = 123;
7+
foo = x;
8+
end
9+
endfunction;
10+
11+
assert final (foo() == 123);
12+
13+
endmodule

0 commit comments

Comments
 (0)