home *** CD-ROM | disk | FTP | other *** search
- class DLatch extends IntegratedCircuit {
- public DLatch(Pin[][] var1, int var2, int var3) {
- super(var2, var3, 10, 6, 3, 1, 4, 4, 2, 2);
- super.IPin[0] = new InputPin("D", 1, 2, 2, 0, 0, 0, 0);
- super.IPin[1] = new InputPin("C", 1, 4, 2, 0, 0, 0, 0);
- super.OPin[0] = new OutputPin("Q", 9, 2, -2, 0, 0, 0, 0);
- super.OPin[1] = new OutputPin("Q", 9, 4, -2, 0, 0, 0, 1);
- super.ComponentName = "D-latch";
- super.ClassName = "DLatch";
- ((ElectronicComponent)this).RegisterPins(var1, var2, var3);
- }
-
- public DLatch(ElectronicComponent var1, int var2, int var3) {
- super(var1, var2, var3);
- }
-
- public ElectronicComponent Copy(int var1, int var2) {
- DLatch var3 = new DLatch(this, var1, var2);
- return var3;
- }
-
- public void SimulateLogic() {
- if (super.IPin[1].getLevel() == 5) {
- super.OPin[0].Level = super.OPin[1].Level = super.IPin[0].getLevel();
- }
-
- }
- }
-