Digilent / vivado-library

MIT License
571 stars 314 forks source link

ip/axi_dynclk_v1_0 missing documentation and driver #14

Open elodg opened 6 years ago

sbobrowicz commented 6 years ago

I have a standalone driver, just not packaged with the IP. The linux driver is here: https://github.com/Digilent/linux-digilent/blob/master/drivers/clk/clk-dglnt-dynclk.c .

I will get a card created to add the standalone driver and documentation in a future sprint.

Edit: For now, if you are interested in using it standalone, see the library found in the dynclk folder here: https://github.com/Digilent/Zybo-Z7-10-HDMI/tree/master/sdk/hdmi/src . See the header for usage instructions and the TODO's for known issues. A big one is that the reference clock has to be 100MHz

elodg commented 6 years ago

I created a stand-alone driver in a feature branch. I also added TCL-propagation of REF_CLK_I frequency into a read-only register. This is read on driver init. It would probably be more appropriate to create a constant in ConfigTable instead with the frequency, but that was just too much TCL for me. If you could test the IP with a Linux project to make sure it works and merge it back to master, that would be great.

The standalone driver only exports a few functions, I only added the minimum I needed. https://github.com/Digilent/vivado-library/tree/feature/axi_dynclk_driver