git add hw/services/network/hls/toe/tx_engine/tx_engine.cpp Fix tcp performance issue by adding a pipeline pragma

This commit is contained in:
Zhenhao He 2022-07-14 08:15:05 +02:00
parent fd5c067c0d
commit c210947789
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
// Tie-off // Tie-off
always_comb axis_host_sink.tie_off_s(); always_comb axis_host_sink.tie_off_s();
always_comb axis_host_src.tie_off_s(); always_comb axis_host_src.tie_off_m();
// UL // UL
send_recv_role #( send_recv_role #(

View File

@ -1534,6 +1534,8 @@ void insert_checksum( hls::stream<ap_uint<16> >& checksumIn,
hls::stream<net_axis<WIDTH> >& dataIn, hls::stream<net_axis<WIDTH> >& dataIn,
hls::stream<net_axis<WIDTH> >& dataOut) hls::stream<net_axis<WIDTH> >& dataOut)
{ {
#pragma HLS PIPELINE II=1
static ap_uint<2> state = (WIDTH > 128 ? 1 : 0); static ap_uint<2> state = (WIDTH > 128 ? 1 : 0);
static ap_uint<3> wordCount = 0; static ap_uint<3> wordCount = 0;