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

Genesys2 #139

Open
barryoakgreen opened this issue Dec 11, 2019 · 3 comments
Open

Genesys2 #139

barryoakgreen opened this issue Dec 11, 2019 · 3 comments

Comments

@barryoakgreen
Copy link

I would like to use IPBus on a Digilent Genesys2 evaluation board. It uses the same FPGA as the KC705 but would require an RGMII interface to the PHY. I can see that each of these is used by different example designs, so suspect it can't be too complicated to customise a project. Is such customisation documented or can you suggest which files I should look at to create a suitable project. I have already successfully created and built various example designs using ipbb.
Thanks
Barry Green

@tswilliams
Copy link
Collaborator

There's no documentation on the website for this level of customisation of the example designs, but I think you should be able to customise the design for your eval board as follows:

  1. Take the KC705 GMII example design as a starting point (board-specific files for that design can be found under boards/kc705/gmii and boards/kc705/common)
  2. Replace the eth_7s_gmii entity in components/kc705/gmii/firmware/hdl/kc705_gmii_infra.vhd with eth_7s_rgmii (source file: components/ipbus_eth/firmware/hdl/eth_7s_rgmii.vhd)
  3. Update the gmii_ ports in kc705_gmii_infra.vhd and top_kc705_gmii.vhd to match the rgmii_ ports from corresponding files in the Enclustra AX3 PM3 design (i.e. enclustra_ax3_pm3_infra.vhd and top_enclustra_ax3_pm3.vhd in boards/enclustra_ax3_pm3/synth/firmware/hdl)
    • kc705_gmii_infra.vhd: lines 54 to 61 and lines 125 to 132
    • top_kc705_gmii.vhd: lines 45 to 52 and lines 82 to 89
  4. Update the pin constraints in components/kc705/gmii/firmware/ucf/kc705_gmii.tcl accordingly.

That said, both of these example designs were written by @dmnewbold , so he'll correct me if there's a flaw in this plan.

@barryoakgreen
Copy link
Author

barryoakgreen commented Dec 12, 2019 via email

@dmnewbold
Copy link
Collaborator

Tom's recipe looks OK to me. One other point is that the RGMII clock constraints for clock-data phase are 'fiddly' and sometimes require adjustment depending on board design; you can find details in the Xilinx MAC core documentation.

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