Skip to content

Commit 1876bfd

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

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed
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)