示例#1
0
 public Multiplexer()
     : base(1)
 {
     in0 = new NonSavingElement();
     in0.AddOutputTarget(this);
     in1 = new NonSavingElement();
     in1.AddOutputTarget(this);
     TimingControl.Inst.RegisterElement(this);
 }
示例#2
0
 public Alu()
     : base(1)
 {
     inA = new NonSavingElement();
     inA.AddOutputTarget(this);
     inB = new NonSavingElement();
     inB.AddOutputTarget(this);
     TimingControl.Inst.RegisterElement(this);
 }
示例#3
0
 public Memory()
     : base((int)CONTROL_VARS.MAX)
 {
     memData = new int[MEM_START_SIZE];
     ZeroMemory(0);
     addressIn = new NonSavingElement();
     addressIn.AddOutputTarget(this);
     dataIn = new NonSavingElement();
     dataIn.AddOutputTarget(this);
     TimingControl.Inst.RegisterElement(this);
 }