From ff1c1915fa5b9a0943a20d6e85057dbcfd6d3915 Mon Sep 17 00:00:00 2001 From: Fabrizio Ferrandi Date: Sun, 7 Apr 2024 18:47:52 +0200 Subject: [PATCH] Simplified load/store interconnection --- .../mux_connection_binding.cpp | 25 ++++++------------- 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/src/HLS/binding/interconnection/mux_connection_binding.cpp b/src/HLS/binding/interconnection/mux_connection_binding.cpp index 1bd439b3a..33a7202bc 100644 --- a/src/HLS/binding/interconnection/mux_connection_binding.cpp +++ b/src/HLS/binding/interconnection/mux_connection_binding.cpp @@ -1590,24 +1590,13 @@ void mux_connection_binding::create_connections() determine_connection(op, HLS_manager::io_binding_type(var_node_idx, 0), fu_obj, port_offset(1), port_index, data, bus_addr_bitsize, alignment); /// connect size port - if(Prec != algn && Prec % algn) - { - Prec = std::max(8ull, resize_1_8_pow2(Prec)); - HLS_manager::check_bitwidth(Prec); - determine_connection( - op, HLS_manager::io_binding_type(0, Prec), fu_obj, port_offset(2), port_index, data, - static_cast(object_bitsize(TreeM, HLS_manager::io_binding_type(0, Prec)))); - } - else - { - const auto IR_var_bitsize = tree_helper::SizeAlloc(tn); - HLS_manager::check_bitwidth(IR_var_bitsize); - unsigned int var_bitsize; - var_bitsize = static_cast(IR_var_bitsize); - determine_connection( - op, HLS_manager::io_binding_type(0, var_bitsize), fu_obj, port_offset(2), port_index, data, - static_cast(object_bitsize(TreeM, HLS_manager::io_binding_type(0, var_bitsize)))); - } + const auto IR_var_bitsize = tree_helper::SizeAlloc(tn); + HLS_manager::check_bitwidth(IR_var_bitsize); + unsigned int var_bitsize; + var_bitsize = static_cast(IR_var_bitsize); + determine_connection( + op, HLS_manager::io_binding_type(0, var_bitsize), fu_obj, port_offset(2), port_index, data, + static_cast(object_bitsize(TreeM, HLS_manager::io_binding_type(0, var_bitsize)))); } else {