TestDiv:
CEDAR
PROGRAM
IMPORTS -- IO, PW, -- Ports, Rosemary, RosemaryUser =
BEGIN
Init:
PROC [ct: Core.CellType] = {
sim: Rosemary.Simulation;
Vdd ← Ports.PortIndex[ct.public, "Vdd"];
Gnd ← Ports.PortIndex[ct.public, "Gnd"];
Q ← Ports.PortIndex[ct.public, "Q"];
CK ← Ports.PortIndex[ct.public, "CK"];
RESET ← Ports.PortIndex[ct.public, "RESET"];
[] ← Rosemary.SetFixedWire[ct.public[Vdd], H];
[] ← Rosemary.SetFixedWire[ct.public[Gnd], L];
[] ← Ports.InitPort[ct.public[Q], ls, drive];
[] ← Ports.InitTesterDrive[wire: ct.public[CK], initDrive: force];
[] ← Ports.InitTesterDrive[wire: ct.public[RESET], initDrive: force];
sim ← RosemaryUser.TestProcedureViewer[name: "Tester", cellType: ct, testButtons: LIST["Tester"], displayWires: RosemaryUser.DisplayCellTypePortLeafWires[ct], -- cutSets: LIST["SSI", "MSI"], -- flatten: TRUE];
};