| 296 | } |
| 297 | |
| 298 | type CPU struct { |
| 299 | gpReg0 components.Register |
| 300 | gpReg1 components.Register |
| 301 | gpReg2 components.Register |
| 302 | gpReg3 components.Register |
| 303 | tmp components.Register |
| 304 | acc components.Register |
| 305 | ir components.Register |
| 306 | iar components.Register |
| 307 | flags components.Register |
| 308 | |
| 309 | clockState bool |
| 310 | memory *memory.Memory64K |
| 311 | alu *alu.ALU |
| 312 | stepper *components.Stepper |
| 313 | busOne components.BusOne |
| 314 | |
| 315 | mainBus *components.Bus |
| 316 | tmpBus *components.Bus |
| 317 | busOneOutput *components.Bus |
| 318 | controlBus *components.Bus |
| 319 | accBus *components.Bus |
| 320 | aluToFlagsBus *components.Bus |
| 321 | flagsBus *components.Bus |
| 322 | ioBus *components.IOBus |
| 323 | |
| 324 | // CONTROL UNIT |
| 325 | // inc. gates, wiring, instruction decoding etc |
| 326 | step4Gates [8]circuit.ANDGate |
| 327 | step4Gate3And components.ANDGate3 |
| 328 | step5Gates [6]circuit.ANDGate |
| 329 | step5Gate3And components.ANDGate3 |
| 330 | step6Gates [2]components.ANDGate3 |
| 331 | step6Gates2And circuit.ANDGate |
| 332 | |
| 333 | instrDecoder3x8 InstructionDecoder3x8 |
| 334 | instructionDecoderEnables2x4 [2]components.Decoder2x4 |
| 335 | instructionDecoderSet2x4 components.Decoder2x4 |
| 336 | |
| 337 | irInstructionANDGate components.ANDGate3 |
| 338 | irInstructionNOTGate circuit.NOTGate |
| 339 | |
| 340 | ioBusEnableGate circuit.ANDGate |
| 341 | registerAEnableORGate components.ORGate3 |
| 342 | registerBEnableORGate components.ORGate4 |
| 343 | registerBSetORGate components.ORGate4 |
| 344 | registerAEnable circuit.Wire |
| 345 | registerBEnable circuit.Wire |
| 346 | accEnableORGate components.ORGate4 |
| 347 | accEnableANDGate circuit.ANDGate |
| 348 | busOneEnableORGate components.ORGate4 |
| 349 | iarEnableORGate components.ORGate4 |
| 350 | iarEnableANDGate circuit.ANDGate |
| 351 | ramEnableORGate components.ORGate5 |
| 352 | ramEnableANDGate circuit.ANDGate |
| 353 | gpRegEnableANDGates [8]components.ANDGate3 |
| 354 | gpRegEnableORGates [4]circuit.ORGate |
| 355 | gpRegSetANDGates [4]components.ANDGate3 |
nothing calls this directly
no outgoing calls
no test coverage detected