Skip to content
New issue

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

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

Already on GitHub? # to your account

Add support for using python builder invoke with integer literals #1849

Merged
merged 4 commits into from
Jan 21, 2024

Conversation

nathanielnrn
Copy link
Contributor

Was messing around building AXI implementations in python and thought this could be nice. If there are downstream effects I'm not aware of please let me know and I'll try to address them or stop pursuing this if it doesn't seem worth it.

Previously we had to write things like

    invoke_txn_count = invoke(txn_count, in_in=const(32,0))

This PR lets us write write the above as

    invoke_txn_count = invoke(txn_count, in_in=0)

which is what I initially did before being surprised that it didn't work.

Not sure who has been taking charge of builder stuff so
cc @anshumanmohan @rachitnigam @sampsyo

@nathanielnrn
Copy link
Contributor Author

Don't think this can do any harm so merging

@nathanielnrn nathanielnrn merged commit 0f7389b into main Jan 21, 2024
7 checks passed
@nathanielnrn nathanielnrn deleted the invoke-literals branch January 21, 2024 03:25
@sampsyo
Copy link
Contributor

sampsyo commented Jan 22, 2024

Wahoo; that'll do nicely! Seems like the right thing to add width inference anywhere we can muster.

rachitnigam pushed a commit that referenced this pull request Feb 16, 2024
…1849)

* Add support for invoking with integer literals

* Update invoke example to have consts

* Change example to have a literal instead of const
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants