Closed likeamahoney closed 1 month ago
This is correct. From 23.4:
Nested modules with no ports that are not explicitly instantiated shall be implicitly instantiated once with an
instance name identical to the module name. Otherwise, if they have ports and are not explicitly instantiated,
they are ignored.
Hi! There is a difference between constructed AST by
slang
if nested submodule declaration contains the ports or not. For example if we have a nested submodule without declared ports:It gives such AST with
foo
function declared andtest1
module instantiated:But if we add a simple port into module
test1
declaration:slang
generates an AST without any instance oftest1
norfoo
declaration:Is this behaviour is correct?