From af4cc117fb6069c3621d789fc3f807629e5e2012 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Tue, 9 Feb 2021 22:53:18 -0700 Subject: [PATCH] [Tool] bug fix in spypad lut --- openfpga/src/fabric/build_mux_modules.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openfpga/src/fabric/build_mux_modules.cpp b/openfpga/src/fabric/build_mux_modules.cpp index 10b693cfc..2dbee6698 100644 --- a/openfpga/src/fabric/build_mux_modules.cpp +++ b/openfpga/src/fabric/build_mux_modules.cpp @@ -740,7 +740,7 @@ vtr::vector build_mux_module_input_buffers(ModuleManage */ std::vector mux_input_ports; if (CIRCUIT_MODEL_LUT == circuit_lib.model_type(mux_model)) { - mux_input_ports = find_lut_circuit_model_input_port(circuit_lib, mux_model, false); + mux_input_ports = find_lut_circuit_model_input_port(circuit_lib, mux_model, false, false); } else { VTR_ASSERT(CIRCUIT_MODEL_MUX == circuit_lib.model_type(mux_model)); mux_input_ports = circuit_lib.model_ports_by_type(mux_model, CIRCUIT_MODEL_PORT_INPUT, true); @@ -866,7 +866,7 @@ vtr::vector build_mux_module_output_buffers(ModuleMana */ std::vector mux_output_ports; if (CIRCUIT_MODEL_LUT == circuit_lib.model_type(mux_model)) { - mux_output_ports = find_lut_circuit_model_output_port(circuit_lib, mux_model, false, false); + mux_output_ports = find_lut_circuit_model_output_port(circuit_lib, mux_model, false, true); } else { VTR_ASSERT(CIRCUIT_MODEL_MUX == circuit_lib.model_type(mux_model)); mux_output_ports = circuit_lib.model_ports_by_type(mux_model, CIRCUIT_MODEL_PORT_OUTPUT, false); @@ -1123,7 +1123,7 @@ void build_cmos_mux_module(ModuleManager& module_manager, */ std::vector mux_input_ports; if (CIRCUIT_MODEL_LUT == circuit_lib.model_type(mux_model)) { - mux_input_ports = find_lut_circuit_model_input_port(circuit_lib, mux_model, false); + mux_input_ports = find_lut_circuit_model_input_port(circuit_lib, mux_model, false, false); } else { VTR_ASSERT(CIRCUIT_MODEL_MUX == circuit_lib.model_type(mux_model)); mux_input_ports = circuit_lib.model_ports_by_type(mux_model, CIRCUIT_MODEL_PORT_INPUT, true); @@ -1136,7 +1136,7 @@ void build_cmos_mux_module(ModuleManager& module_manager, */ std::vector mux_output_ports; if (CIRCUIT_MODEL_LUT == circuit_lib.model_type(mux_model)) { - mux_output_ports = find_lut_circuit_model_output_port(circuit_lib, mux_model, false, false); + mux_output_ports = find_lut_circuit_model_output_port(circuit_lib, mux_model, false, true); } else { VTR_ASSERT(CIRCUIT_MODEL_MUX == circuit_lib.model_type(mux_model)); mux_output_ports = circuit_lib.model_ports_by_type(mux_model, CIRCUIT_MODEL_PORT_OUTPUT, false);