diff --git a/openfasoc/generators/glayout/glayout/flow/blocks/transmission_gate_saltychip/gds/tg_with_inv.gds b/openfasoc/generators/glayout/glayout/flow/blocks/transmission_gate_saltychip/gds/tg_with_inv.gds new file mode 100644 index 000000000..4f9d91f6c Binary files /dev/null and b/openfasoc/generators/glayout/glayout/flow/blocks/transmission_gate_saltychip/gds/tg_with_inv.gds differ diff --git a/openfasoc/generators/glayout/glayout/flow/blocks/transmission_gate_saltychip/report/figures/tg_with_inv.png b/openfasoc/generators/glayout/glayout/flow/blocks/transmission_gate_saltychip/report/figures/tg_with_inv.png new file mode 100644 index 000000000..272497ec5 Binary files /dev/null and b/openfasoc/generators/glayout/glayout/flow/blocks/transmission_gate_saltychip/report/figures/tg_with_inv.png differ diff --git a/openfasoc/generators/glayout/glayout/flow/blocks/transmission_gate_saltychip/transmission_gate.py b/openfasoc/generators/glayout/glayout/flow/blocks/transmission_gate_saltychip/transmission_gate.py index f9b1a4f6d..40e3f4b70 100755 --- a/openfasoc/generators/glayout/glayout/flow/blocks/transmission_gate_saltychip/transmission_gate.py +++ b/openfasoc/generators/glayout/glayout/flow/blocks/transmission_gate_saltychip/transmission_gate.py @@ -198,4 +198,11 @@ def tg_with_inv(pdk: MappedPDK, pmos_width, pmos_length, nmos_width, nmos_length return top_level #top_level.flatten() -tg_with_inv(pdk=sky130, pmos_width=1, pmos_length=0.15, nmos_width=1, nmos_length=0.15).show() +def display_component(component, scale = 3): + # Save to a GDS file + with hide: + component.write_gds("out.gds") + +tg_inst = tg_with_inv(pdk=sky130, pmos_width=1, pmos_length=0.15, nmos_width=1, nmos_length=0.15) +tg_inst.show() +tg_inst.write_gds("gds/tg_with_inv.gds")