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

Support SPI as bus interface #166

Open
hpretl opened this issue Sep 28, 2023 · 7 comments
Open

Support SPI as bus interface #166

hpretl opened this issue Sep 28, 2023 · 7 comments

Comments

@hpretl
Copy link

hpretl commented Sep 28, 2023

Is your feature request related to a problem? Please describe.
It would be a super feature if rggen could be used to create an SPI-based register file.

Describe the solution you'd like
In addition to apb and wishbone also support spi type.

Describe alternatives you've considered
n/a

Additional context
Can provide this on request.

@taichi-ishitani
Copy link
Member

How about creating your own RgGen plugin to add SPI support?

@hpretl
Copy link
Author

hpretl commented Oct 1, 2023

I was thinking about it, but so far, I am shying the learning curve and the effort. Maybe we start a small project implementing it.

@taichi-ishitani
Copy link
Member

taichi-ishitani commented Oct 2, 2023

I created a plugin template.
https://github.com/taichi-ishitani/rggen-spi

By uisng this plugin, you only have to implement RTL adapter modules below.

You need to tell the path to the repository by using the --plugin switch:

$ rggen --plugin rggen-verilog --plugin rggen-vhdl --plugin PATH/TO/REPO/lib/rggen/spi.rb -c your/config.yaml your/register_map.yaml

If you don't need to generate Verilog RTL/VHDL RTL, you need to remove the related plugin code below.

@taichi-ishitani
Copy link
Member

See https://github.com/rggen/rggen/wiki/Specification-for-RgGen-Bus-Interface-Protocol for the protocol specification of the rggen_bus_if.

@taichi-ishitani
Copy link
Member

@hpretl
Does the plugin template work well for you?

@hpretl
Copy link
Author

hpretl commented Oct 10, 2023

We have not yet looked into it yet, but it is on our todo list.

@taichi-ishitani
Copy link
Member

Ok, I understood.

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

2 participants