public void Replace(AssignmentSignal signal)
 {
     if (signal.Bits != Bits || signal.IsComponentPort)
     {
         throw new Exception();
     }
     signal.IsSource        = IsSource;
     signal.IsComponentPort = IsComponentPort;
     SignalsParentSection.ChangeSignal(signal);
 }
Exemple #2
0
        public AssignmentSignal GetWire(EnumerationBase enumeration)
        {
            var result = new AssignmentSignal(_defenition, null)
            {
                Name            = Name,
                Enumeration     = enumeration,
                IsComponentPort = false
            };

            _wires.Add(result);
            return(result);
        }