Skip to content

Commit 0c7f1c0

Browse files
committed
systemverilog-plugin: update comment
Signed-off-by: Kamil Rakoczy <krakoczy@antmicro.com>
1 parent 83ad47a commit 0c7f1c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

systemverilog-plugin/UhdmAst.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,11 +1918,12 @@ void UhdmAst::process_module()
19181918
delete node;
19191919
}
19201920
});
1921+
// We need to rename module to prevent name collision with the same module, but with different parameters
19211922
std::string module_name = !parameters.empty() ? AST::derived_module_name(type, parameters).c_str() : type;
19221923
auto module_node = shared.top_nodes[module_name];
1923-
// true, when Surelog don't have definition of module
1924-
// if so, we are left setting module parameters to yosys
1925-
// and don't rename module
1924+
// true, when Surelog don't have definition of module while parsing design
1925+
// if so, we leaving module parameters to yosys and don't rename module
1926+
// as it will be done by yosys
19261927
bool isPrimitive = false;
19271928
if (!module_node) {
19281929
module_node = shared.top_nodes[type];

0 commit comments

Comments
 (0)