IF (t ← LookupCellType[design, name])=
NIL
THEN {
t ← CreateRecordCellType[design: design, cellTypeName: name, attributes: LIST[[$Behave, NIL]]];
CreatePort[on: t, name: "gate", attributes: LIST[[$BhvSwitch, NIL], [$StcIn, NIL]]];
CreatePort[on: t, name: "ch1", direction: bidirectional, attributes: LIST[[$BhvSwitch, NIL], [$StcBidir, NIL]]];
CreatePort[on: t, name: "ch2", direction: bidirectional, attributes: LIST[[$BhvSwitch, NIL], [$StcBidir, NIL]]];
};