<> <> <> <> DIRECTORY BasicTime, BitTwiddling, Core, CoreOps, CoreProperties, CoreRecord, GetMe, IO, Rope, RoseBehavior, RoseBind; SimpleTest: CEDAR PROGRAM IMPORTS CoreOps, CoreRecord = BEGIN OPEN Core, CoreOps, CoreProperties, CoreRecord, RoseBind; DefineInverter: PROC [design: Design] RETURNS [ct: CellType] = { in: Wire _ CreateAtomWire["in"]; out: Wire _ CreateAtomWire["out"]; pw: Wire _ CreateRecordWire["inverterPublic", LIST[in, out]]; rct: RecordCellType _ NEW [RecordCellTypeRec _ [ internalWire: NIL, instances: NIL]]; ct _ NEW [CellTypeRec _ [ name: "Inverter", class: recordCellClass, publicWire: pw ]]; InsertCellType[design, ct]; }; END.