mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fpga: clean up debug outputs
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
parent
35a08122ae
commit
1995bffe8d
1 changed files with 0 additions and 9 deletions
|
@ -173,8 +173,6 @@ int FpgaNode::start() {
|
|||
return Node::start();
|
||||
}
|
||||
|
||||
struct timeval tv = {0, 0};
|
||||
|
||||
int FpgaNode::_read(Sample *smps[], unsigned cnt) {
|
||||
static size_t cur = 0, next = 1;
|
||||
unsigned read;
|
||||
|
@ -184,7 +182,6 @@ int FpgaNode::_read(Sample *smps[], unsigned cnt) {
|
|||
|
||||
dma->read(*(blockRx[next]), blockRx[next]->getSize()); // TODO: calc size
|
||||
auto c = dma->readComplete();
|
||||
gettimeofday(&tv, NULL);
|
||||
|
||||
read = c.bytes / sizeof(float);
|
||||
|
||||
|
@ -225,18 +222,12 @@ int FpgaNode::_write(Sample *smps[], unsigned cnt) {
|
|||
scaled = -10.;
|
||||
}
|
||||
mem[i] = (scaled + 10.) * ((float)0xFFFF / 20.);
|
||||
// mem[i] = static_cast<float>(smps[0]->data[i].f);
|
||||
}
|
||||
|
||||
bool state = dma->write(*blockTx, smp->length * sizeof(float));
|
||||
if (!state)
|
||||
return -1;
|
||||
|
||||
struct timeval tv2;
|
||||
gettimeofday(&tv2, NULL);
|
||||
logger->info("elapsed: {} us",
|
||||
(tv2.tv_sec - tv.tv_sec) * 1000000 + (tv2.tv_usec - tv.tv_usec));
|
||||
|
||||
written = dma->writeComplete().bytes /
|
||||
sizeof(float); // The number of samples written
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue