public static bool IsInputPort(this LibraryGatePortType target)
 {
     return(target == LibraryGatePortType.Input ||
            target == LibraryGatePortType.Clock ||
            target == LibraryGatePortType.Set ||
            target == LibraryGatePortType.Reset ||
            target == LibraryGatePortType.Enable ||
            target == LibraryGatePortType.Select);
 }
 public static bool IsOutputPort(this LibraryGatePortType target)
 {
     return(target == LibraryGatePortType.Output ||
            target == LibraryGatePortType.Supply0 ||
            target == LibraryGatePortType.Supply1);
 }
        public void IsOutputPort_LibraryGatePortTypeIsNotOutput_ReturnFalse(LibraryGatePortType type)
        {
            var result = type.IsOutputPort();

            Assert.That(result, Is.False);
        }
Esempio n. 4
0
 public LibraryGatePort(LibraryGatePort gatePort)
 {
     Name = gatePort.Name;
     Type = gatePort.Type;
 }
        public void IsInputPort_LibraryGatePortTypeIsInput_ReturnTrue(LibraryGatePortType type)
        {
            var result = type.IsInputPort();

            Assert.That(result, Is.True);
        }