From 3262ceb2769d12d9c19018ddd2fa97293b6fe317 Mon Sep 17 00:00:00 2001 From: tangxifan Date: Sat, 19 Sep 2020 15:24:40 -0600 Subject: [PATCH] [FPGA-SPICE] Bug fix for pass gate transistor sizing --- openfpga/src/fpga_spice/spice_passgate.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/openfpga/src/fpga_spice/spice_passgate.cpp b/openfpga/src/fpga_spice/spice_passgate.cpp index a54956849..20b8ef84b 100644 --- a/openfpga/src/fpga_spice/spice_passgate.cpp +++ b/openfpga/src/fpga_spice/spice_passgate.cpp @@ -243,7 +243,6 @@ int print_spice_transmission_gate_subckt(std::fstream& fp, */ float regular_pmos_bin_width = tech_lib.transistor_model_max_width(tech_model, TECH_LIB_TRANSISTOR_PMOS); float total_pmos_width = circuit_lib.pass_gate_logic_pmos_size(circuit_model) - * tech_lib.model_pn_ratio(tech_model) * tech_lib.transistor_model_min_width(tech_model, TECH_LIB_TRANSISTOR_PMOS); int num_pmos_bins = std::ceil(total_pmos_width / regular_pmos_bin_width); float last_pmos_bin_width = std::fmod(total_pmos_width, regular_pmos_bin_width);