- The example design has a predefined descriptor for the H2C and C2H engine.
- The H2C descriptor has 128 bytes of data, source address (Host) and destination
address (Card).
- The C2H descriptor has 128 bytes of data, source address (Card) and destination
address (Host).
- The test case writes incremental 128 bytes of data to the Host memory source
address.
- The PIO writes to the H2C engine Control register to start the transfer
(
0x0004
).
- The DMA reads data from the Host address and sends it to the Card block RAM
destination address.
- The PIO writes to the C2H engine Control register to start the transfer
(
0x1004
).
- The DMA reads data from the Card block RAM source address and sends it to the
Host destination address.
- The test case compares data for correctness.
- The test case checks for the H2C and C2H descriptor completed count (value of
1).
- The test case then disables the transfer by deasserting the Run bit (bit 0) in
the Control register for the H2C and C2H engine (
0x0004
and
0x1004
).