Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export SystemVerilog modules to multiple files? #68

Closed
pmerz1 opened this issue Dec 8, 2023 · 5 comments
Closed

export SystemVerilog modules to multiple files? #68

pmerz1 opened this issue Dec 8, 2023 · 5 comments

Comments

@pmerz1
Copy link

pmerz1 commented Dec 8, 2023

Is there a way for ICSC not to write all SystemVerilog modules to one file?

I think sometimes it would be more convenient to split the modules into several files to make them easier to read.

What do you think?

@mikhailmoiseev
Copy link
Contributor

mikhailmoiseev commented Dec 9, 2023

No, only one SV file is generated. From my expirience working with one file is more convinient, specially for designs with hundreds of mudules.
What advantages of multiple files do you see?

There is also a problem with template modules and modules with constructor parameters -- that lead to different SV modules generated.

@pmerz1
Copy link
Author

pmerz1 commented Dec 11, 2023

I do understand that handling one file is more convinient if you are generating SystemVerilog for a large set of modules.

I had the experience, that I had to track issues in the generated SystemVerilog modules. For tracing and verificating the behaviour I prefer having several files for several modules. Sometimes I got lost in the file with hundreds to thousands of lines.. So it's actually a personal preference.

My suggestion would be to use a flag that indexes if you want to have multiple files.
Perhaps you could sort the files according to the SystemC modules and write all derived SystemVerilog modules in one file.

@mikhailmoiseev
Copy link
Contributor

Do you think it is possible to write a script to split one SV file into multiple files by keywords module/endmodule?
I could add a low priority ticket for that, but cannot promise to implement it soon.

@pmerz1
Copy link
Author

pmerz1 commented Dec 13, 2023

I am using a short script doing this as a workaround.

And I have no problem if you create a low priority ticket for this.

@mikhailmoiseev
Copy link
Contributor

Sounds good. Will update you when it is completed.

@mikhailmoiseev mikhailmoiseev closed this as not planned Won't fix, can't repro, duplicate, stale Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants