Exemple #1
0
        public TestSystemWithTestSignals(
            int[][] BUSREQstartAfterTStatesAndActivateDuringTStates,
            int[][] INTstartAfterTStatesAndActivateDuringTStates,
            int[][] NMIstartAfterTStatesAndActivateDuringTStates,
            int[][] RESETstartAfterTStatesAndActivateDuringTStates,
            int[][] WAITstartAfterTStatesAndActivateDuringTStates
            )
        {
            // Initialize components
            clock        = new __Clock(3500000L);
            cpu          = new __Z80CPU();
            memory       = new _TestMemory(65536, 0);
            BUSREQSignal = new _TestSignal(BUSREQstartAfterTStatesAndActivateDuringTStates);
            INTSignal    = new _TestSignal(INTstartAfterTStatesAndActivateDuringTStates);
            NMISignal    = new _TestSignal(NMIstartAfterTStatesAndActivateDuringTStates);
            RESETSignal  = new _TestSignal(RESETstartAfterTStatesAndActivateDuringTStates);
            WAITSignal   = new _TestSignal(WAITstartAfterTStatesAndActivateDuringTStates);

            // Connect buses
            cpu.Address.ConnectTo(addressBus);
            cpu.Data.ConnectTo(dataBus);
            memory.Address.ConnectTo(addressBus);
            memory.Data.ConnectTo(dataBus);

            // Connect individual PINs
            ((__Clock)clock).ConnectTo(cpu, (TestMemory)memory, BUSREQSignal, INTSignal, NMISignal, RESETSignal, WAITSignal);
            ((__Z80CPU)cpu).ConnectTo(clock, (TestMemory)memory, BUSREQSignal, INTSignal, NMISignal, RESETSignal, WAITSignal);
            ((_TestMemory)memory).ConnectTo(clock, cpu);
        }
        public TestSystemWithTestSignals(
            int[][] BUSREQstartAfterTStatesAndActivateDuringTStates,
            int[][] INTstartAfterTStatesAndActivateDuringTStates,
            int[][] NMIstartAfterTStatesAndActivateDuringTStates,
            int[][] RESETstartAfterTStatesAndActivateDuringTStates,
            int[][] WAITstartAfterTStatesAndActivateDuringTStates
            )
        {
            // Initialize components
            clock = new __Clock(3500000L);
            cpu = new __Z80CPU();
            memory = new _TestMemory(65536, 0);
            BUSREQSignal = new _TestSignal(BUSREQstartAfterTStatesAndActivateDuringTStates);
            INTSignal = new _TestSignal(INTstartAfterTStatesAndActivateDuringTStates);
            NMISignal = new _TestSignal(NMIstartAfterTStatesAndActivateDuringTStates);
            RESETSignal = new _TestSignal(RESETstartAfterTStatesAndActivateDuringTStates);
            WAITSignal = new _TestSignal(WAITstartAfterTStatesAndActivateDuringTStates);

            // Connect buses
            cpu.Address.ConnectTo(addressBus);
            cpu.Data.ConnectTo(dataBus);
            memory.Address.ConnectTo(addressBus);
            memory.Data.ConnectTo(dataBus);

            // Connect individual PINs
            ((__Clock)clock).ConnectTo(cpu, (TestMemory)memory, BUSREQSignal, INTSignal, NMISignal, RESETSignal, WAITSignal);
            ((__Z80CPU)cpu).ConnectTo(clock, (TestMemory)memory, BUSREQSignal, INTSignal, NMISignal, RESETSignal, WAITSignal);
            ((_TestMemory)memory).ConnectTo(clock, cpu);
        }
Exemple #3
0
 public void ConnectTo(Clock clock, TestMemory memory, TestSignal busreqSignal, TestSignal intSignal, TestSignal nmiSignal, TestSignal resetSignal, TestSignal waitSignal)
 {
     base.ConnectTo(clock, memory);
     this.busreqSignal = busreqSignal;
     this.intSignal    = intSignal;
     this.nmiSignal    = nmiSignal;
     this.resetSignal  = resetSignal;
     this.waitSignal   = waitSignal;
 }
 public void ConnectTo(Clock clock, TestMemory memory, TestSignal busreqSignal, TestSignal intSignal, TestSignal nmiSignal, TestSignal resetSignal, TestSignal waitSignal)
 {
     base.ConnectTo(clock, memory);
     this.busreqSignal = busreqSignal;
     this.intSignal = intSignal;
     this.nmiSignal = nmiSignal;
     this.resetSignal = resetSignal;
     this.waitSignal = waitSignal;
 }