1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

format and comment fixes

Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
Niklas Eiling 2023-01-05 09:51:11 +01:00
parent 418a8dc7a9
commit b66733640a
2 changed files with 5 additions and 4 deletions

View file

@ -50,6 +50,7 @@ const std::shared_ptr<villas::fpga::ip::Node> portStringToStreamVertex(std::stri
return aurora_channels[port];
}
}
// parses a string lik "1->2" or "1<->stdout" and configures the crossbar
void fpga::configCrossBarUsingConnectString(std::string connectString,
std::shared_ptr<villas::fpga::ip::Dma> dma,

View file

@ -33,7 +33,7 @@
using namespace villas;
static std::shared_ptr<kernel::pci::DeviceList> pciDevices;
static auto logger = villas::logging.get("cat");
static auto logger = villas::logging.get("ctrl");
@ -66,9 +66,9 @@ int main(int argc, char* argv[])
return 1;
}
//FIXME: This must be called before card is intialized, because the card descructor
// still accesses the allocated memory. This order ensures that the allocator
// is destroyed AFTER the card.
// This must be called before card is intialized, because the card descructor
// still accesses the allocated memory. This order ensures that the allocator
// is destroyed AFTER the card.
auto &alloc = villas::HostRam::getAllocator();
villas::MemoryAccessor<int32_t> mem[] = {alloc.allocate<int32_t>(0x200), alloc.allocate<int32_t>(0x200)};
const villas::MemoryBlock block[] = {mem[0].getMemoryBlock(), mem[1].getMemoryBlock()};