enjoy-digital / litex

Build your hardware, easily!
Other
3.02k stars 572 forks source link

IO pin problem with Serdes of ECP5 (Butterstick) #1570

Open Prigana opened 1 year ago

Prigana commented 1 year ago

I want to use the Serdes pins of my ECP5 to generate a clock at 100Mhz in differential pair but when compiling, the console gives me an error. image

To use the serdes, I based myself on this code: https://github.com/enjoy-digital/liteiclink/blob/master/bench/serdes/versa_ecp5.py.

So I defined my pins in the same way: image image

Then the error is caused when I call my object: image

Can you help me understand my mistake? What should I do to generate a clock on a differential pair of my serdes?

enjoy-digital commented 1 year ago

The SerDes IO are not classical IOs, so you need to use the SerDes primitive to drive the TX Pads. Are you able to compile the Versa ECP5 design adapted for your board? Can you share minimal design to reproduce the issue?