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

Function NewDecoder3x8

components/decoders.go:61–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61func NewDecoder3x8() *Decoder3x8 {
62 d := new(Decoder3x8)
63
64 for i, _ := range d.notGates {
65 d.notGates[i] = *circuit.NewNOTGate()
66 }
67
68 for i, _ := range d.andGates {
69 d.andGates[i] = *NewANDGate3()
70 }
71
72 return d
73}
74
75func (d *Decoder3x8) GetOutputWire(index int) bool {
76 return d.outputs[index].Get()

Callers 3

NewInstructionDecoder3x8Function · 0.92
NewALUFunction · 0.92
Test3x8DecoderFunction · 0.85

Calls 2

NewNOTGateFunction · 0.92
NewANDGate3Function · 0.85

Tested by 1

Test3x8DecoderFunction · 0.68