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

fix RTDS IP unit test

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel 2022-12-14 09:24:01 +01:00 committed by Niklas Eiling
parent c678fe36fc
commit eff0f2e83f
2 changed files with 4 additions and 3 deletions

View file

@ -183,6 +183,7 @@ virtual
}
private:
// Get a VLNV identifier for which this IP / Node type can be used.
virtual
Vlnv getCompatibleVlnv() const
{
@ -193,7 +194,7 @@ private:
Core* make() const
{
return new T;
};
}
};
} /* namespace ip */

View file

@ -46,12 +46,12 @@ Test(fpga, rtds, .description = "RTDS")
{
auto logger = villas::logging.get("unit-test:rtds");
std::list<villas::fpga::ip::Rtds*> rtdsIps;
std::list<villas::fpga::ip::RtdsGtfpga*> rtdsIps;
std::list<villas::fpga::ip::Dma*> dmaIps;
for (auto &ip : state.cards.front()->ips) {
if (*ip == villas::fpga::Vlnv("acs.eonerc.rwth-aachen.de:user:rtds_axis:")) {
auto rtds = reinterpret_cast<villas::fpga::ip::Rtds*>(ip.get());
auto rtds = reinterpret_cast<villas::fpga::ip::RtdsGtfpga*>(ip.get());
rtdsIps.push_back(rtds);
}