@@ -266,14 +266,24 @@ def npn13G2(
266266 c .info ["m" ] = m
267267 c .info ["type" ] = "npn"
268268
269+ # VLSIR Simulation Metadata
270+ c .info ["vlsir" ] = {
271+ "model" : model ,
272+ "spice_type" : "SUBCKT" ,
273+ "spice_lib" : "sg13g2_hbt_mod.lib" ,
274+ "port_order" : ["c" , "b" , "e" ],
275+ "port_map" : {"C" : "c" , "B" : "b" , "E" : "e" },
276+ "params" : {"we" : emitter_width * 1e-6 , "le" : emitter_length * 1e-6 , "m" : m },
277+ }
278+
269279 return c
270280
271281
272282@gf .cell
273283def npn13G2L (
274284 emitter_width : float = 0.07 ,
275285 emitter_length : float = 1.26 ,
276- model : str = "npn13G2L" ,
286+ model : str = "npn13G2l" , # Lowercase l to match SPICE
277287 m : int = 1 ,
278288 layer_nwell : LayerSpec = "NWelldrawing" ,
279289 layer_pwell : LayerSpec = "PWelldrawing" ,
@@ -323,7 +333,7 @@ def npn13G2L(
323333def npn13G2V (
324334 emitter_width : float = 0.12 ,
325335 emitter_length : float = 0.9 ,
326- model : str = "npn13G2V" ,
336+ model : str = "npn13G2v" , # lower-case v to match SPICE
327337 m : int = 1 ,
328338 layer_nwell : LayerSpec = "NWelldrawing" ,
329339 layer_pwell : LayerSpec = "PWelldrawing" ,
@@ -575,6 +585,16 @@ def pnpMPA(
575585 c .info ["m" ] = m
576586 c .info ["type" ] = "pnp"
577587
588+ # VLSIR Simulation Metadata
589+ c .info ["vlsir" ] = {
590+ "model" : model ,
591+ "spice_type" : "SUBCKT" ,
592+ "spice_lib" : "sg13g2_hbt_mod.lib" ,
593+ "port_order" : ["c" , "b" , "e" ],
594+ "port_map" : {"C" : "c" , "B" : "b" , "E" : "e" },
595+ "params" : {"we" : emitter_width * 1e-6 , "le" : emitter_length * 1e-6 , "m" : m },
596+ }
597+
578598 return c
579599
580600
0 commit comments