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

Swd #20

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open

Swd #20

wants to merge 25 commits into from

Conversation

cchr-ledger
Copy link

This adds a SWD controller to the FPGA architecture, and exposes it through the python API.

@cchr-ledger cchr-ledger requested a review from kingofpayne July 30, 2024 09:22
api/tests/test_swd.py Outdated Show resolved Hide resolved
fpga-arch/bsv/Counter.v Outdated Show resolved Hide resolved
fpga-arch/bsv/SWD.bsv Outdated Show resolved Hide resolved
fpga-arch/bsv/SWD.bsv Outdated Show resolved Hide resolved
fpga-arch/bsv/SWD.bsv Outdated Show resolved Hide resolved
fpga-arch/bsv/SWD.bsv Outdated Show resolved Hide resolved

// ONLY do something if there is a valid command registered, and if
// the user is not currently writing to some register.
rule do_idle ((state == IDLE) && (bus_write == 0) && isValid(cmd));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think bus_write == 0 should not be in the condition here. As long as cmd is valid, the SWD peripheral can start working.
In particular, the host may be talking with another Scaffold peripheral at the same time, and this shall not prevent the SWD from working.

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

Successfully merging this pull request may close these issues.

3 participants