Replies: 3 comments 1 reply
-
What is the top-level HLS function? There is a simple C++ test-bench that is also produced by hls4ml with a default name of |
Beta Was this translation helpful? Give feedback.
-
Hi, This is my_project.cpp with the top level function. include <gmp.h> #include #include "myproject.h" void myproject(
#ifndef SYNTHESIS
} Is there a way to test the ip blok generated also on vivado? Thank you |
Beta Was this translation helpful? Give feedback.
-
There are 2 parts to this question - the bit-width of inputs and outputs and the additional control signals. Regarding the bit width - Vivado HLS will concatenate multiple signals (inputs or outputs) into one wide bus. In your case, there are 30 inputs (this is the signal Now there are 2 additional signals in your case Lastly, there are all the additional signals |
Beta Was this translation helpful? Give feedback.
-
Hi,
With hls4ml I have generated the ip block for vivado, using the function: hls_model.build(csim=True,synth=True,cosim=True,export=True) . When I import the the ip in vivado and generate the output products, the generated entity in vhdl has some parameters I can not understand their meaning. The data_in has dimension 480, probably because I use a cnn model (for binary classification) with 30 inputs with precision fixed on 16 bits. But I can not understand the meaning of the outputs and why some of them are on 16 bits.
I am using as a backend 'Vivado' and I would like to generate the bitstream for ZCU102 and KCU105 boards.
I have got also doubts on how to write a test bench for checking the correct working of the block.
The entity of the generated vhdl file is this one:
entity design_1 is
port (
ap_done : out STD_LOGIC;
ap_idle : out STD_LOGIC;
ap_ready : out STD_LOGIC;
ap_start : in STD_LOGIC;
clk_in1 : in STD_LOGIC;
const_size_in_1 : out STD_LOGIC_VECTOR ( 15 downto 0 );
const_size_in_1_ap_vld : out STD_LOGIC;
const_size_out_1 : out STD_LOGIC_VECTOR ( 15 downto 0 );
const_size_out_1_ap_vld : out STD_LOGIC;
data_in : in STD_LOGIC_VECTOR ( 479 downto 0 );
layer7_out_0_V : out STD_LOGIC_VECTOR ( 15 downto 0 );
layer7_out_0_V_ap_vld : out STD_LOGIC;
reset : in STD_LOGIC;
valid : in STD_LOGIC
);
Does someone have got some resources regarding this things?
Thank you,
Gio
Beta Was this translation helpful? Give feedback.
All reactions