cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
simulation_utils.cpp File Reference
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <math.h>
#include <hls_stream.h>
#include <stdint.h>
#include <vector>
#include "ap_int.h"
#include "simulation_utils.hpp"
Include dependency graph for simulation_utils.cpp:

Go to the source code of this file.

Functions

void printAxiWord (const char *callerName, AxisRaw chunk)
 Prints one chunk of a data stream (used for debugging). More...
 
void printAxiWord (const char *callerName, NetworkWord chunk)
 

Function Documentation

◆ printAxiWord() [1/2]

void printAxiWord ( const char *  callerName,
AxisRaw  chunk 
)

Prints one chunk of a data stream (used for debugging).

Parameters
[in]callerName,thename of the caller process (e.g. "Tle").
[in]chunk,thedata stream chunk to display.

Definition at line 52 of file simulation_utils.cpp.

53 {
54  printInfo(callerName, "AxiWord = {D=0x%16.16lX, K=0x%2.2X, L=%d} \n",
55  chunk.getTData().to_ulong(), chunk.getTKeep().to_int(), chunk.getTLast().to_int());
56 }
tData getTData(int leHi=64 -1, int leLo=0) const
Definition: AxisRaw.hpp:191
tLast getTLast() const
Definition: AxisRaw.hpp:219
tKeep getTKeep(int leHi=64/8-1, int leLo=0) const
Definition: AxisRaw.hpp:207
#define printInfo(callerName, format,...)
A macro to print an information message.
Definition: nts_utils.hpp:169
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printAxiWord() [2/2]

void printAxiWord ( const char *  callerName,
NetworkWord  chunk 
)

Definition at line 58 of file simulation_utils.cpp.

59 {
60  printInfo(callerName, "AxiWord = {D=0x%16.16lX, K=0x%2.2X, L=%d} \n",
61  chunk.tdata.to_ulong(), chunk.tkeep.to_int(), chunk.tlast.to_int());
62 }
ap_uint< 64 > tdata
Definition: network.hpp:49
ap_uint< 8 > tkeep
Definition: network.hpp:50
ap_uint< 1 > tlast
Definition: network.hpp:51