cambridgehackers / xbsv

connectal (formerly called xbsv) contains a utility to generate bit files for Xilinx Zynq devices from BSV programs.
8 stars 12 forks source link

Reduce knowledge of hardware in pcieportal and zynqportal drivers #7

Open jameyhicks opened 10 years ago

jameyhicks commented 10 years ago

This is really only needed for the PCIe case, but let's keep them consistent.

  1. Move the control interface to offset 0
  2. Add a register for the number of FIFOs and the number of addresses per FIFO
  3. Add a register containing the offset of the first FIFO of the interface
  4. Add a register containing the offset of the next interface

We will still have the address of a small number of registers hardcoded into the software, but we should not have to hardcode the other offsets into the drivers.