-
Notifications
You must be signed in to change notification settings - Fork 111
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
[GSoC] Common Python Simulation module #226
[GSoC] Common Python Simulation module #226
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see a lot of changes. Let me review it one by one.
@saicharan0112 any update on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
.github/workflows/test_code.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this file be renamed in a better way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renaming files might break other flows. @saicharan0112, could you please confirm if it is ok to rename this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that shouldn't be a problem
docs/source/common-python-api.rst
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably rename this as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we using Xyce?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a option to use it (a CLI argument) but I am not sure if it is actually used anywhere or if it is working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are installing Xyce as part of the installation script. I remember having problems with the simulations using Xyce but I don't know if there is any progress on that side in general inside OpenFASoC
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are regression tests for the common-api? the naming is kind of weird.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the expected SPICE files generated from template.sp
. There are 8 possible combinations of parameters, and hence 8 different configurations are generated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The regression test checks if the correct configurations are generated by comparing the file generated during the testing to the expected file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@msaligane I don't think these are actually problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@harshkhandeparkar I think the refactoring the simulation part of the generators can be made compatible with the CI. My only concern is the independence of the functions that were previously in separate files such as result.py
and result_error.py
. Are these refactored functions standalone and can be initialized directly in a different python file or does it expect any declarations that are only known inside the newly developed simulation.py
?
As far as I remember, the functionality is intact and modular. The functions were moved (and might be renamed) to |
@harshkhandeparkar can you pull the changes from the main repo. |
docs: updated parameters documentation docs: added docs for the top level simulation function docs: fixed errors in simulation module docs
* refactored result.py and result_error.py into simulation_result.py * exported functions to calculate the simulation results instead of directly calculating * calculate and write the values to the result files in simulation.py * refactored and cleaned temp-sense-gen.py simulation code * made independent of simulation_result.py temperature range * removed any hardcoded values
4e387fa
to
e8a3a8d
Compare
Done. |
@harshkhandeparkar looks like the simulation module changes are not working from the beginning? (another fault of CI is detected thanks to this). not sure how the python tests didn't see this as well. Can you try running the temp-sense-gen again at your side please? Just run |
I just tested it and it works on my system locally but it does not work in the Also I think I made a big mistake in #233 which caused the CI to not run at all. |
Yes but I handled it in #240 . Regarding the python version, I am not sure. The entire environment is kind of pinned to 3.7. I think there is a way to use 3.8 (something that I am looking into #237) but 3.10 is something I am not sure about. |
I think I am able to find a way to install all tools in python 3.10. I still need to test the generators with latest openroad (not sure how big that will blow) but I will update the docker image to give you the python version that you need for your code. |
I can try to make it compatible with |
no 3.7 is quite old and miniconda not supporting 3.7 is a sign for developers not use it anymore. Also since now all dependencies are working in 3.10 env, there should be no problem in handling such stuff. |
Related to #211
Changes
docs/
that is hosted on ReadTheDocs) for the module.Features of the Simulation Module
Simulations for the DC-DC generator will be based on this.
Screenshots