1 # Transmission gate, implemented with CD4016
3 nodes
= ("IN_OUT", "OUT_IN", "CONTROL")
5 # Quad transmission gate IC
6 parts_generated
= "CD4016"
7 parts_consumed
= ["M1", "M2", "M3", "M4", "M5", "M6"]
10 # Based on http://www.cedmagic.com/tech-info/data/cd4016.pdf
12 { "IN_OUT": ("CD4016", 1), "OUT_IN": ("CD4016", 2), "CONTROL": ("CD4016", 13) }, # SW A
13 { "IN_OUT": ("CD4016", 4), "OUT_IN": ("CD4016", 3), "CONTROL": ("CD4016", 5) }, # SW B
14 { "IN_OUT": ("CD4016", 8), "OUT_IN": ("CD4016", 9), "CONTROL": ("CD4016", 6) }, # SW C
15 { "IN_OUT": ("CD4016",11), "OUT_IN": ("CD4016",10), "CONTROL": ("CD4016",12) }, # SW D
18 global_pins
= { "$G_Vdd": ("CD4016", 14), "$G_Vss": ("CD4016", 7) }