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

lattice_reader.py does not support multiple packages #82

Open
etheory opened this issue Sep 15, 2024 · 1 comment
Open

lattice_reader.py does not support multiple packages #82

etheory opened this issue Sep 15, 2024 · 1 comment

Comments

@etheory
Copy link

etheory commented Sep 15, 2024

Is your feature request related to a problem? Please describe.
When looking at a .csv from lattice, such as the latest official one here: https://www.latticesemi.com/view_document?document_id=51576, which contains a list of multiple packages, the expectation from the user is that this tool would output parts for all the packages, but instead, it only outputs a part for the first. To get the part you want, you need to edit the .csv file.

Describe the solution you'd like
It would be more conventient for the tool to use ALL the .csv data to output parts for ALL included lattice packages, but this doesn't seem possible at the moment since kipart ASSUMES that each plugin returns only one part per .csv file.

Describe alternatives you've considered
Would you be open to me making a PR to support this functionality myself? This will probably involve some deep changes if I do it.

Additional context
For instance, here is a section of the .csv file:

# Pin Out For ECP5U-12,,,,,,,,,,
# Revision 1.1 - Include CABGA256 package,,,,,,,,,,
"# Revised Oct. 17, 2017",,,,,,,,,,
# Revision 2.0 - Include TQFP144 package,,,,,,,,,,
"# Revised Sep. 17, 2021",,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
,,,,,,,,,,
PAD,Pin/Ball Function,Bank,Dual Function,Differential,High Speed,DQS,CABGA381,CSFBGA285,CABGA256,TQFP144

Which I EXPECT would output a package for ,CABGA381,CSFBGA285,CABGA256 and TQFP144, but default only outputs for the first one, i.e. CABGA381.

@devbisme
Copy link
Owner

I don't pay much attention to my KiCad tools any more, so it's fine if you want to modify this one and send me a PR. I'll check to make sure it still passes the tests and then put it on PyPi, but that's about it.

Good luck!

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