FIFO hdl code

Hi, I need to stream audio data and control info I2C out of my PC into some external hardware and was thinking of using a FIFO to deal with the different clock boundaries.

I was wondering if anyone had some startup verilog code on FIFOs, I am using a Xilinx FPGA

Thanks

Ryan ( snipped-for-privacy@gmail.com)

Reply to
ryan.pinto79
Loading thread data ...

I've done just that using ALtera's tools except I used the graphical design as the input. So I placed a fifo set it width and depth. Then wraped controling logid arround it.

I then had the tools generate VHDL output.

I'm still using the graphical as the master but could switch when necessary.

George

Reply to
GMM50

I agree with "GMM50", don't waste your time writing your own FIFO. Pick one from the Xilinx library. They should have ready-made FIFOs available, if not then switch to Altera.

-JV

Reply to
Jaakko Varteva
[reposting since original posting seem to be gone]

You may want to look at Xilinx application note 175, together with the zip archive containing the HDL code. It has both synchronous and asynchronous FIFOs ready to go.

DJ

Reply to
Dr Justice

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.