cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
simulation_utils.hpp 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 "network_utils.hpp"
#include "NTS/nts_utils.hpp"
#include "NTS/SimNtsUtils.hpp"
#include "../../../hls/network.hpp"
Include dependency graph for simulation_utils.hpp:
This graph shows which files directly or indirectly include this file:

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).

Copyright 2016 – 2021 IBM Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Parameters
[in]callerName,thename of the caller process (e.g. "Tle").
[in]chunk,thedata stream chunk to display.
[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