forked from Xilinx/Vitis-HLS-Introductory-Examples
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathREADME
More file actions
35 lines (33 loc) · 1.65 KB
/
Copy pathREADME
File metadata and controls
35 lines (33 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* Example code for a floating-point "window function" based on a template class.
*
* *** NOTE: This project is largely the same as the "window_fn_fxpt" example,
* *** except that this one implements a single-precision floating point
* *** window function core. The key point here is the code reuse and IP
* *** parameterization capability provided by HLS and C++ templates.
* *** Only one source file (window_fn_top.h) is different between the two
* *** projects, and the only difference is the typedefs for data types.
*
* This example is intended to demonstrate:
* - code reuse/parameterization via C++ templates
* - basic floating point HLS support - a CoreGen FPO will be instantiated
*
* In addition to features demonstrated by the "window_fn_fxpt" example:
* - C+ coding style for ROM inference - init functions must be global-scope
* - use of <cmath> functions to init ROMs - no HW created by HLS
* - top level wrapper function for HLS of class objets cand methods
* - TCL directive syntax for a class member (see run_hls.tcl)
* - namespaces to control visibility and prevent naming clashes
*/
Files Included in this Package
==================================================
window_fn_top.cpp - top level wrapper function
window_fn_top.h - top level header with function prototype, typedefs, etc
window_fn_class.h - header file for window function class
window_fn_test.cpp - test program which for SW model validation & RTL co-sim
run_hls.tcl - HLS run script
x_hls.tcl - auxilary script setting run-level
README - this file
Running the Design
=================================================
vitis_hls -f run_hls.tcl