12i192i1043/pcileech-cmedia-cmi8738 ? reverse-engineered prompt
Reverse engineered prompt
Build me the FPGA firmware for an Artix 7 PCILeech board so it shows up to the computer like a real C Media CMI8738 PCI audio card.
I want the device to look authentic enough that the normal Linux or Windows audio driver installs, the DMA channels negotiate, interrupts fire, and the playback position counters move like real hardware, while PCILeech still keeps working underneath. Please use the real card identity and config space, keep it as a legacy PCI style device with INTx only, and make the BAR0 register behavior match the real chip as closely as possible.
If it helps, you can look up current Vivado docs online. Make it work for the supported boards in this repo, especially Captain DMA 100T and Captain 75T, and include whatever project generation and board specific top level pieces are needed so I can open it in Vivado, synthesize it, and program the board.
Are you gonna build this?
make sure you review the code using coderabbit