| 490 | } |
| 491 | |
| 492 | type BusOne struct { |
| 493 | inputBus *Bus |
| 494 | outputBus *Bus |
| 495 | inputs [arch.BUS_WIDTH]circuit.Wire |
| 496 | bus1 circuit.Wire |
| 497 | andGates [arch.BUS_WIDTH - 1]circuit.ANDGate |
| 498 | notGate circuit.NOTGate |
| 499 | orGate circuit.ORGate |
| 500 | outputs [arch.BUS_WIDTH]circuit.Wire |
| 501 | next Component |
| 502 | } |
| 503 | |
| 504 | func NewBusOne(inputBus, outputBus *Bus) *BusOne { |
| 505 | b := new(BusOne) |
nothing calls this directly
no outgoing calls
no test coverage detected