From 91694fdae3070f5a44d6c87e75f65e6cc800b613 Mon Sep 17 00:00:00 2001 From: Sam Crow Date: Wed, 28 Jun 2023 14:05:42 -0700 Subject: [PATCH] add fixme note for unit conversion --- compiler/base/wire_spice_model.py | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/base/wire_spice_model.py b/compiler/base/wire_spice_model.py index b7001965..55ef040d 100644 --- a/compiler/base/wire_spice_model.py +++ b/compiler/base/wire_spice_model.py @@ -18,6 +18,7 @@ class wire_spice_model(): def cal_wire_c(self, wire_length, wire_width): from openram.tech import spice # Convert the F/um^2 to fF/um^2 then multiple by width and length + # FIXME: shouldn't it be 1e15? total_c = (spice["wire_unit_c"]*1e12) * wire_length * wire_width wire_c = total_c / self.lump_num return wire_c