()
| 119 | } |
| 120 | |
| 121 | func 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 |
| 136 | func (d *Decoder4x16) Index() int { |