Skip to content

Commit 70a5e88

Browse files
committed
Verilog: type of parameter ports
The type checker now applies the type given for a parameter port.
1 parent 5c83c53 commit 70a5e88

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CHANGELOG

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

3+
* Verilog: fix for typed parameter ports
34
* SystemVerilog: fix for type parameters
45
* SMV: word constants
56
* SMV: IVAR declarations
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
KNOWNBUG
2-
parameter_ports5.v
1+
CORE
2+
parameter_ports5.sv
33

44
^EXIT=0$
55
^SIGNAL=0$
66
--
7-
The type of the parameter is ignored.

src/verilog/verilog_elaborate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ verilog_typecheckt::elaborate(const verilog_module_sourcet &module_source)
989989
// At the top level of the module, include the parameter ports.
990990
for(auto &declaration : module_source.parameter_port_decls())
991991
for(auto &declarator : declaration.declarators())
992-
collect_symbols(typet(ID_nil), declarator);
992+
collect_symbols(declaration.type(), declarator);
993993

994994
// At the top level of the module, include the non-parameter module port
995995
// module items.

0 commit comments

Comments
 (0)