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

Great code, one question #20

Open
rjacobs1969 opened this issue Feb 12, 2024 · 2 comments
Open

Great code, one question #20

rjacobs1969 opened this issue Feb 12, 2024 · 2 comments

Comments

@rjacobs1969
Copy link

Thanks for making this repo, I'm interested in using the usb_serial(2) port in my homebrew 8 bit retro computer project
I've one doubt though:

While the serial code can signal to can accept the byte I want to send from the device to the host ( send_ready )
I don't see any way to signal whether the device can accept received bytes, as my 8 bit computer is slower than the USB connection and is not always polling the port, if there a way to implement a input wire to flag the host it's allowed to send?

@mauriliomauri
Copy link

Maybe https://github.com/ulixxe/usb_cdc is what you are looking for.
It has data control flow for both IN and OUT. Furthermore you can choose how many channels to use.

@churchmice
Copy link

A simple way is to add the backpressure signal around line 239 of usbfs_transaction.v.
If your SOC side is unable to accept the data, return PID_NAK instead of PID_ACK.

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