Example #1
0
        public void select_a_side(int s0, int s1, int i0a, int i1a, int i2a, int i3a, int za)
        {
            var ttl74153 = new TTL74153(TTLGateTypeEnum.Perfect);

            ttl74153.Ea.Add(0);
            ttl74153.S0.Add(s0);
            ttl74153.S1.Add(s1);
            ttl74153.I0a.Add(i0a);
            ttl74153.I1a.Add(i1a);
            ttl74153.I2a.Add(i2a);
            ttl74153.I3a.Add(i3a);

            Assert.Equal(za, ttl74153.Za(0));
        }
Example #2
0
        public void disable_a_side()
        {
            var ttl74153 = new TTL74153(TTLGateTypeEnum.Perfect);

            ttl74153.Ea.Add(5);

            ttl74153.S0.Add(0);
            ttl74153.S1.Add(0);
            ttl74153.I0a.Add(5);
            ttl74153.I1a.Add(5);
            ttl74153.I2a.Add(5);
            ttl74153.I3a.Add(5);

            Assert.Equal(0, ttl74153.Za(0));
        }