Re: Can anybody tell me how to implement the pci to ide card
Have a look at https://www.opencores.org
They have a PCI controller and an ATAPI controller with a common SOC bus (Wishbone). It will not take much effort to interface these two.
If you are looking only for ATA it should be fine. If you are looking for ATAPI, the core supports only DMA. UDMA is not supported.