Is your feature request related to a problem? Please describe.
The current namespace and default output file system can be confusing. The default output file name is the function name, and the default namespace is the namespace of the entire Python runtime.
Describe the solution you'd like
The default output file name should be the file in which the function is decorated in(not where it is declared, as the function may want to be imported and then decorated). This will require tracing the source of a function, for AST parsing.
The default namespace should be the namespace specific to the Python file a function is being decorated in. How will this work if someone wants to combine the namespace of two+ files?
Describe alternatives you've considered
Keeping everything the way they are. I don't think it's too common to have multiple modules in the same file in SystemVerilog.
Additional context
Low priority, at last until module can be combined together.
Is your feature request related to a problem? Please describe. The current namespace and default output file system can be confusing. The default output file name is the function name, and the default namespace is the namespace of the entire Python runtime.
Describe the solution you'd like
Describe alternatives you've considered Keeping everything the way they are. I don't think it's too common to have multiple modules in the same file in SystemVerilog.
Additional context Low priority, at last until module can be combined together.