protected override void DoCommandAction()
        {
            FPGATypes.AssertBackendType(FPGATypes.BackendType.ISE);

            NetlistContainer netlistContainer = GetNetlistContainer();
            XDLNet           net    = (XDLNet )netlistContainer.GetNet(Netname);
            Regex            filter = new Regex(PipRegexp, RegexOptions.Compiled);

            net.Remove(pip => filter.IsMatch(pip.ToString()));
        }
Пример #2
0
        private void RemovePipsFromNet(XDLContainer netlistContainer, Dictionary <string, bool> targetLocations, XDLNet net)
        {
            int pipCount = net.PipCount;

            net.Remove(p => targetLocations.ContainsKey(p.Location));
            net.RemoveAllPinStatements(np => targetLocations.ContainsKey(netlistContainer.GetInstance(np).Location));

            // pip count changed -> probably a PRLink that may be decomposed
            if (pipCount != net.PipCount)
            {
                net.PRLink = true;
            }
        }