Skip to content

Commit 445ac04

Browse files
authored
Merge pull request #1342 from diffblue/ports9-fix
Verilog: fix for port direction of output register ports
2 parents 839add1 + 6503624 commit 445ac04

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# EBMC 5.8
22

33
* SystemVerilog: cover sequence
4+
* Verilog: semantic fix for output register ports
45

56
# EBMC 5.7
67

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
KNOWNBUG
1+
CORE
22
ports9.sv
33
--bound 1
44
^EXIT=0$
55
^SIGNAL=0$
66
--
77
^warning: ignoring
88
--
9-
This gives the wrong answer.

src/verilog/verilog_interfaces.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ void verilog_typecheckt::check_module_ports(
108108
else
109109
direction = ID_inout;
110110
}
111+
else if(direction == ID_output_register)
112+
{
113+
direction = ID_output;
114+
}
111115

112116
ports.emplace_back(identifier, port_symbol->type, direction);
113117

0 commit comments

Comments
 (0)