Beispiel #1
0
 /// <returns>the input index of the input signal</returns>
 public int PromoteAsInput(Signal signal)
 {
     AddSignal(signal);
     if (!_inputs.Contains(signal))
     {
         InternalAddInput(signal);
     }
     return(_inputs.LastIndexOf(signal));
 }
Beispiel #2
0
 /// <returns>the output index of the output signal</returns>
 public int PromoteAsOutput(Signal signal)
 {
     if (!_outputs.Contains(signal))
     {
         AddSignal(signal);
         InternalAddOutput(signal);
         RegisterOutputSignal(signal);
     }
     return(_outputs.LastIndexOf(signal));
 }