MCPcopy Create free account
hub / github.com/djhworld/simple-computer / NewBus

Function NewBus

components/bus.go:10–19  ·  view source on GitHub ↗
(width int)

Source from the content-addressed store, hash-verified

8}
9
10func 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
21func (b *Bus) ConnectOutput(Component) {
22

Callers 15

TestMemory64KWriteFunction · 0.92
NewCPUFunction · 0.92
cpu_test.goFile · 0.92
ConnectMethod · 0.92
NewKeyboardAdapterFunction · 0.92
alu_test.goFile · 0.92
NewComputerFunction · 0.92
TestRegisterWordIsSetFunction · 0.85

Calls 1

NewWireFunction · 0.92