Skip to content
Snippets Groups Projects
Commit c75cd77a authored by Lisa Nagl's avatar Lisa Nagl
Browse files

report updated

parent 5f25114d
No related branches found
No related tags found
No related merge requests found
#include <iostream>
#include <cmath>
using namespace std;
void count(int w, int h, int result_image_width, int& lineCount){
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=w
#pragma HLS INTERFACE s_axilite port=h
#pragma HLS INTERFACE s_axilite port=result_image_width
#pragma HLS INTERFACE s_axilite port=lineCount
if(w > result_image_width)
{
lineCount = round((w/result_image_width) +1);
}
else
{
lineCount = 1;
}
}
#include <iostream>
using namespace std;
void wrap(int text_len, char text[text_len], char& lines[3][15] ){
#pragma HLS INTERFACE ap_ctrl_none port=return
#pragma HLS INTERFACE s_axilite port=text_len
#pragma HLS INTERFACE s_axilite port=text
#pragma HLS INTERFACE s_axilite port=lines
int line_len = 15;
for(int i=0; i < line_len; i++){
lines[0][i] = text[i];
lines[1][i] = text[i + line_len];
lines[2][i] = text[i + 2*line_len];
}
lines;
}
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment