From e0b253d30a34caee5f6767245b236711b50e7c51 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Wed, 18 Sep 2019 15:15:03 -0600 Subject: [PATCH] minor fix for non-LUT intermedate buffer case --- vpr7_x2p/vpr/SRC/device/mux_utils.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/vpr7_x2p/vpr/SRC/device/mux_utils.cpp b/vpr7_x2p/vpr/SRC/device/mux_utils.cpp index 3fafb1998..800b65198 100644 --- a/vpr7_x2p/vpr/SRC/device/mux_utils.cpp +++ b/vpr7_x2p/vpr/SRC/device/mux_utils.cpp @@ -177,9 +177,15 @@ std::vector build_mux_intermediate_buffer_location_map(const CircuitLibrar std::string location_map_str; /* ONLY for LUTs: intermediate buffers may exist if specified */ - if (SPICE_MODEL_LUT == circuit_lib.model_type(circuit_model)) { + if (SPICE_MODEL_LUT != circuit_lib.model_type(circuit_model)) { + return location_map; + } + + /* Get location map when the flag of intermediate buffer is on */ + if (true == circuit_lib.is_lut_intermediate_buffered(circuit_model)) { location_map_str = circuit_lib.lut_intermediate_buffer_location_map(circuit_model); } + /* If no location map is specified, we can return here */ if (location_map_str.empty()) { return location_map;