Base code for the HLS tutorial for Bristol.
The code adds two vectors and multiplies them.
Vector size is set by changing the ARRAY_SIZE
variable in HLS_Vectors.h
.
Run
vivado_hls -f VectorSum_setup.tcl
to open a Vivado HLS TCL shell of the set up project.
Within the TCL shell run:
csim
(shortener ofcsim_design
) to run the C simulation test benchcsyn
(shortener ofcsynth_design
) to synthesise the codecosim
(shortener ofcsynth_design
), after having runcsyn
successfully, to run the co-simulation test bench
Three tags are available:
base
, which is the base code to add and multiply two vector without any optimisationcpp_version
, which has optimisation to maximise code throughputoptimised
, which is a rewriting of the code using a template class for vectors with overloaded operator. It shows that C++ constructs, while simplifying writing code, do not increase latency and resource usage of your design.
Synthesis report are located in VivadoTutorial/KU115/syn/report/
with .rpt extension in human-readable format and with .xml in XML format, useful for automated analysis.