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

Create a etherbone+litex rust library #11

Open
1 of 3 tasks
mithro opened this issue Jan 12, 2020 · 4 comments
Open
1 of 3 tasks

Create a etherbone+litex rust library #11

mithro opened this issue Jan 12, 2020 · 4 comments
Assignees
Labels
wishbone-tool Issues related to @xobs' wishbone-tool.

Comments

@mithro
Copy link
Contributor

mithro commented Jan 12, 2020

It would be nice if the etherbone+litex functionality in wishbone tool was extracted into a library (crate?) that other tools could build on the top of.

Functionality which makes sense to me;

  • Reading & Writing to wishbone busses
  • Reading & Writing to LiteX CSR registers, including loading the CSR names and info from .csv or .json files.
  • Setting up triggers, watching the triggering and reading the data from LiteScope.
@mithro
Copy link
Contributor Author

mithro commented Jan 12, 2020

@xobs - What do you think?

@xobs
Copy link
Member

xobs commented Jan 15, 2020

That does make sense.

The basic wishbone peek/poke functionality should be pulled out into its own crate. This will also require separating configuration data out -- right now config is one big giant struct that individual bridges refer to.

@mithro mithro added the wishbone-tool Issues related to @xobs' wishbone-tool. label Jan 22, 2020
@xobs
Copy link
Member

xobs commented Jul 6, 2020

We now have a new crate called wishbone-bridge that is documented on docs.rs. This supports the first point.

Is there a specification for how a .json file looks? Right now the csr.csv parsing is mostly hand-rolled in https://docs.rs/wishbone-bridge/1.0.0/wishbone_bridge/ and I think it could be improved. Support for json could be added at the same time.

For LiteScope support, I'd need to know what triggers look like.

@mithro
Copy link
Contributor Author

mithro commented Jul 6, 2020

@xobs - Maybe we should create https://json-schema.org/ for the csr.json file or something?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wishbone-tool Issues related to @xobs' wishbone-tool.
Projects
None yet
Development

No branches or pull requests

2 participants