litex-hub / litex-boards

LiteX boards files
BSD 2-Clause "Simplified" License
380 stars 289 forks source link

RAM and Ethernet support for Zybo #97

Closed rlipperts closed 4 years ago

rlipperts commented 4 years ago

I was working with the Zybo 7z020 and am not sure if there is an easy way to add an ethernet port (for the wishbone-tool) and the RAM to my target (which is using a softcore on the PL). As I still am fairly new in all of this I wondered if you can provide me with some insights.

enjoy-digital commented 4 years ago

Hi @rlipperts,

sorry the delay. I think i did something very similar to what you want to do while testing LiteX on the SDS1104X-E Oscilloscpe: https://twitter.com/enjoy_digital/status/1327212606256541702

You can find the platform file here: https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/sds1104xe.py and target file here: https://github.com/litex-hub/litex-boards/blob/master/litex_boards/targets/sds1104xe.py

Since MIO and DDRAM are fixed and already known by Vivado, providing them is not mandatory, but this can also be done, as it has been done on the ZedBoard: https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/zedboard.py#L60-L97.

For the Zybo Rev.b, if there are some similarity between boards, we could try to add support for both revisions in the same platform, as done for example on the OrangeCrab: https://github.com/litex-hub/litex-boards/blob/master/litex_boards/platforms/orangecrab.py.

rlipperts commented 4 years ago

I appreciate the heads up. I am currently not working with the Zybo anymore (And quite busy with my masters thesis). If I pick up the zybo again I will definetly look into this, thank you!

enjoy-digital commented 4 years ago

@rlipperts thanks for the feedback.