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

Write a getting-started guide #16

Open
asinghani opened this issue Jan 30, 2024 · 4 comments
Open

Write a getting-started guide #16

asinghani opened this issue Jan 30, 2024 · 4 comments

Comments

@asinghani
Copy link

It would be super nice to have a tutorial that can walk users through:

  1. Setting up F4PGA and generating a bitstream
  2. Copying it to the Pi and blinking an LED
  3. Modify the design to use a UART (maybe have it be a loopback but it increments the character by 1)
  4. Talk to the design over UART using screen and/or pyserial
  5. Modify the design to use GPIOs (take two 4-bit numbers from GPIOs and add them, output to a third set of 5 GPIOs?)
  6. Use RPi.GPIO library to interface with the GPIOs and pass data back and forth to the FPGA
@CarlFK
Copy link
Owner

CarlFK commented Mar 5, 2024

https://github.com/CarlFK/pici/wiki/Getting-Started
Does 1 and 2.

3,4,5 are beyond getting started. I think this is close enough:
LiteX - tio /dev/ttyUSB1 ... that shows the pi side of how to talk to it, but no fpga details.

for #6: wire 2 fpga pins together, then use python gpio to verify the wire.

@Abhijeettri141
Copy link

Is there anyone currently assigned to this feature? I am eager to contribute.

@CarlFK
Copy link
Owner

CarlFK commented Aug 14, 2024

for #6: wire 2 fpga pins together, then use python gpio to verify the wire.
done!
https://github.com/CarlFK/pici/tree/main/ansible/roles/ci/files/t1

@CarlFK
Copy link
Owner

CarlFK commented Aug 14, 2024

Is there anyone currently assigned to this feature? I am eager to contribute.

I did a bunch of work, I think it is good enough, at least for now. The main problem is it sends the user over to F4PGA examples documentation which is great docs until the part where those docs assume there is a local fpga, and then the user has to stop there can come back here. I'm not really sure how much of a problem this really is. Improving this seems like a lot of work for a little improvement.

I think more stuff, even it is a bit crusty, will be better. It will give people more to do, they will learn more, and in doing this we (you) will likely find things to improve the platform (what is per-installed on the pi.)

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

3 participants