@@ -23,7 +23,6 @@ def svaricap_schematic(
2323 nf : int = 1 ,
2424) -> DSchematic :
2525 s = DSchematic ()
26- s .info ["tags" ] = ["IHP" , "varicap" , "hv" ]
2726 s .info ["symbol" ] = "varicap"
2827 s .info ["ports" ] = [
2928 {"name" : "BN" , "side" : "top" , "type" : "electric" },
@@ -49,7 +48,7 @@ def svaricap_schematic(
4948 return s
5049
5150
52- @gf .cell (schematic_function = svaricap_schematic , tags = { "type" : "passives" } )
51+ @gf .cell (schematic_function = svaricap_schematic , tags = [ "IHP" , "varicap" , "hv" ] )
5352def svaricap (
5453 width : float = 1.0 ,
5554 length : float = 1.0 ,
@@ -219,7 +218,6 @@ def esd_nmos_schematic(
219218 nf : int = 10 ,
220219) -> DSchematic :
221220 s = DSchematic ()
222- s .info ["tags" ] = ["IHP" , "esd" , "lv" ]
223221 s .info ["symbol" ] = "nmos"
224222 s .info ["ports" ] = [
225223 {"name" : "VDD" , "side" : "top" , "type" : "electric" },
@@ -241,7 +239,7 @@ def esd_nmos_schematic(
241239 return s
242240
243241
244- @gf .cell (schematic_function = esd_nmos_schematic , tags = { "type" : "passives" } )
242+ @gf .cell (schematic_function = esd_nmos_schematic , tags = [ "IHP" , "esd" , "lv" ] )
245243def esd_nmos (
246244 width : float = 50.0 ,
247245 length : float = 0.5 ,
@@ -420,7 +418,6 @@ def ptap1_schematic(
420418 cols : int = 1 ,
421419) -> DSchematic :
422420 s = DSchematic ()
423- s .info ["tags" ] = ["IHP" , "tap" , "p-type" ]
424421 s .info ["symbol" ] = "tap"
425422 s .info ["ports" ] = [
426423 {"name" : "P1" , "side" : "top" , "type" : "electric" },
@@ -442,7 +439,7 @@ def ptap1_schematic(
442439 return s
443440
444441
445- @gf .cell (schematic_function = ptap1_schematic , tags = { "type" : "passives" } )
442+ @gf .cell (schematic_function = ptap1_schematic , tags = [ "IHP" , "tap" , "p-type" ] )
446443def ptap1 (
447444 width : float = 1.0 ,
448445 length : float = 1.0 ,
@@ -562,7 +559,6 @@ def ntap1_schematic(
562559 cols : int = 1 ,
563560) -> DSchematic :
564561 s = DSchematic ()
565- s .info ["tags" ] = ["IHP" , "tap" , "n-type" ]
566562 s .info ["symbol" ] = "tap"
567563 s .info ["ports" ] = [
568564 {"name" : "P1" , "side" : "top" , "type" : "electric" },
@@ -584,7 +580,7 @@ def ntap1_schematic(
584580 return s
585581
586582
587- @gf .cell (schematic_function = ntap1_schematic , tags = { "type" : "passives" } )
583+ @gf .cell (schematic_function = ntap1_schematic , tags = [ "IHP" , "tap" , "n-type" ] )
588584def ntap1 (
589585 width : float = 1.0 ,
590586 length : float = 1.0 ,
@@ -708,7 +704,7 @@ def ntap1(
708704 return c
709705
710706
711- @gf .cell (tags = { "type" : "passives" } )
707+ @gf .cell (tags = [ "IHP" , "sealring" ] )
712708def sealring (
713709 width : float = 200.0 ,
714710 height : float = 200.0 ,
@@ -891,7 +887,7 @@ def sealring(
891887 return c
892888
893889
894- @gf .cell (tags = { "type" : "passives" } )
890+ @gf .cell (tags = [ "IHP" , "guardring" ] )
895891def guard_ring (
896892 width : float = 0.5 ,
897893 guardRingSpacing : float = 0.14 ,
0 commit comments