-
Notifications
You must be signed in to change notification settings - Fork 140
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
How to use the flags --size
, --type
, --pack
?
#468
Comments
Hi @zapta ! i'm out of home now, but check if you are using the right arguments for the new nextpnr or yosys. In nexpnr now you need to pass por example --package hx8k , check if this is correct or we are using old toolchain arguments. |
Reviewing the code, could be the FPGA board selected in the config is not set? as soon as i arrive i'll check it. |
The error happens long before yosys or nextpnr, in the apio process itself, before scons. The parsing is done in these steps
I don't see how the flags --size --type --pack flags can be used, and I presume that icestudio doesn't use them. |
i think the --size is used for example for boards that could have different FPGA chips, for example the same board with ice40 fpga but could exists with size 4k or 8k but not exists ice40 of 32k. If you build for a board with an ice40 fpga configured and specify 32k appears the error "contradictory". In the same way you can't specify size without specify fpga model. And pack is needed for nexpnr (i don't deep in apio but i understood that apio needs to specify the packaging of the fpga chip to nextpnr) |
@cavearr, can you give an example of a useful EDIT: These options are deprecated anyway since the new apio release will support custom fpgas.json in the product dir. I was waiting for icestudio to remove dependency on these flags but since they don't work anyway, I guess it's safe to delete them now. |
At Icestudio i don't use it, the only use is "--package" that i don't know if is the same as "--pack" for exapmple: nextpnr-ice40 --hx8k --package tq144:4k --json hardware.json --asc hardware.asc --report hardware.pnr --pcf main.pcf -q Are you sure we could delete this commands? there are a lot of boards and i don't know if there are neccesary for some of theme. |
I'm reviewing apio code and view that in test/commands/test_build.py there are some examples: One of theme: apio build --fpga iCE40-HX1K-TQ144 --pack tq144 --size 1k 'pack' is the same as nexpnr 'package' as i suppose it, this is important param, the same as size, i don't know if we have now this kind of situation but we need to support --fpga param and with the semane name different flavours identified by "size" |
FPGA fpgas.json
In other words, these two commands are identical:
Here is a test that demonstrates that the two commands result with the same nextpnr command
I still can't see how these three flags are useful, considering that we don't allow them to override values in fpgas.json. Regarding the deletion, these flags where planned to deletion anyway since the new apio allows users to use a custom fpgas.json in their project directory (an idea borrowed from platformio) in case they want to use a new fpga or to override arch, size, type, or pack. Does this make sense? |
@zapta Sorry! I didn't understand you! I thought you were talking about arguments or configurations as a concept, not just the argument. If this is present in celery.ini and the new policy is to remove it from the argument list... I'm all for removing it! |
Thanks Carlos.
BTW, what is the status of this ?
#453
…On Tue, Nov 19, 2024 at 1:38 PM Carlos Venegas Arrabé < ***@***.***> wrote:
@zapta <https://github.com/zapta> Sorry! I didn't understand you! I
thought you were talking about arguments or configurations as a concept,
not just the argument.
If this is present in celery.ini and the new policy is to remove it from
the argument list... I'm all for removing it!
—
Reply to this email directly, view it on GitHub
<#468 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQVMQIWP7VQJRBLVXS5BTT2BOVXBAVCNFSM6AAAAABSCSJGKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBWHAYDKNBQGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I am migrating icestudio to the new system, I have little left, it will take about a week to have it up and running. |
Great! Thanks Carlos.
…On Tue, Nov 19, 2024 at 1:55 PM Carlos Venegas Arrabé < ***@***.***> wrote:
I am migrating icestudio to the new system, I have little left, it will
take about a week to have it up and running.
—
Reply to this email directly, view it on GitHub
<#468 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAQVMQJV3C7VQ4EFO5GDSF32BOXV5AVCNFSM6AAAAABSCSJGKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOBWHAZTEMJQGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@Obijuan, @cavearr,
if I type
apio build --size 32k
I get the errorError: Missing FPGA
, and If I add the--fpga
flag I get the errorError: contradictory arguments: ('8k', '32k')
. It's the same for apio prog (0.9.5) and the latest apio dev.What am I missing?
The relevant code is here
apio/apio/managers/arguments.py
Line 193 in 17c70b0
The text was updated successfully, but these errors were encountered: