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

Function NewDecoder4x16

components/decoders.go:121–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119}
120
121func NewDecoder4x16() *Decoder4x16 {
122 d := new(Decoder4x16)
123
124 for i, _ := range d.notGates {
125 d.notGates[i] = *circuit.NewNOTGate()
126 }
127
128 for i, _ := range d.andGates {
129 d.andGates[i] = *NewANDGate4()
130 }
131
132 return d
133}
134
135// Returns the index which is enabled
136func (d *Decoder4x16) Index() int {

Callers 2

Test4x16DecoderFunction · 0.85
NewDecoder8x256Function · 0.85

Calls 2

NewNOTGateFunction · 0.92
NewANDGate4Function · 0.85

Tested by 1

Test4x16DecoderFunction · 0.68