Skip to content

Commit

Permalink
wip: plddr axi test
Browse files Browse the repository at this point in the history
  • Loading branch information
patrislav1 committed Apr 11, 2024
1 parent f94b164 commit 1d0b5e9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example/demo_cpp/src/axi_dma_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "DataHandlerPrint.hpp"
#include "UioGpioStatus.hpp"
#include "UioTrafficGen.hpp"
#include "udmaio/FpgaMemBufferOverAxi.hpp"
#include "udmaio/FpgaMemBufferOverXdma.hpp"
#include "udmaio/Logging.hpp"
#include "udmaio/UDmaBuf.hpp"
Expand Down Expand Up @@ -119,7 +120,10 @@ int main(int argc, char* argv[]) {

std::unique_ptr<DmaBufferAbstract> udmabuf;
if (mode == DmaMode::UIO) {
udmabuf = std::make_unique<UDmaBuf>();
UioDeviceLocation plddr_test{"plddr-axi-test", {}};

// udmabuf = std::make_unique<UDmaBuf>();
udmabuf = std::make_unique<FpgaMemBufferOverAxi>(plddr_test);
} else {
udmabuf =
std::make_unique<FpgaMemBufferOverXdma>(dev_path, target_hw_consts::fpga_mem_phys_addr);
Expand Down

0 comments on commit 1d0b5e9

Please sign in to comment.