예제 #1
0
 public Multiplexer()
     : base(1)
 {
     in0 = new NonSavingElement();
     in0.AddOutputTarget(this);
     in1 = new NonSavingElement();
     in1.AddOutputTarget(this);
     TimingControl.Inst.RegisterElement(this);
 }
예제 #2
0
파일: Alu.cs 프로젝트: FH3095/MU0Simulator
 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);
 }