(width int)
| 8 | } |
| 9 | |
| 10 | func NewBus(width int) *Bus { |
| 11 | b := new(Bus) |
| 12 | b.width = width |
| 13 | b.wires = make([]circuit.Wire, b.width) |
| 14 | for i, _ := range b.wires { |
| 15 | b.wires[i] = *circuit.NewWire("", false) |
| 16 | } |
| 17 | |
| 18 | return b |
| 19 | } |
| 20 | |
| 21 | func (b *Bus) ConnectOutput(Component) { |
| 22 |