LatchTest.Rose
Last Edited by: Spreitzer, July 3, 1984 11:11:05 am PDT
Last Edited by: Gasbarro, August 16, 1984 2:35:18 pm PDT
Imports BiasTypes;
Library Latch, RoseClocks;
CellType "LatchTest"
Expand
n0, n1, n2, n3: BIT+X ← "L";
CEDAR
gnd: Node ← RoseCreate.CreateNode[thisCell, "gnd", SwitchTypes.bitType, "L", SwitchTypes.refInput];
vdd: Node ← RoseCreate.CreateNode[thisCell, "vdd", SwitchTypes.bitType, "H", SwitchTypes.refInput];
biasMinus: Node ← RoseCreate.CreateNode[thisCell, "biasMinus", BiasTypes.biasType, "-"];
;
ph1, ph2: BIT;
PhaseA, PhaseB: BOOL;
cg: ClockGen[][];
l0: InvertingLatch[ph1, n0, n1];
l1: InvertingLatch[ph2, n1, n2];
l2: InvertingLatch[ph1, n2, n3];
l3: InvertingLatch[ph2, n3, n0];
CEDAR
RoseCreate.ChangeReps[within: thisCell, a: PhaseA, b: ph1, writeA: FALSE, writeB: TRUE];
RoseCreate.ChangeReps[within: thisCell, a: PhaseB, b: ph2, writeA: FALSE, writeB: TRUE];
EndCellType