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

Function NewANDGate3

components/big_gates.go:290–302  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

288}
289
290func NewANDGate3() *ANDGate3 {
291 a := new(ANDGate3)
292
293 a.inputA = *circuit.NewWire("a", false)
294 a.inputB = *circuit.NewWire("b", false)
295 a.inputC = *circuit.NewWire("c", false)
296 a.output = *circuit.NewWire("d", false)
297
298 a.andA = *circuit.NewANDGate()
299 a.andB = *circuit.NewANDGate()
300
301 return a
302}
303
304func (g *ANDGate3) Output() bool {
305 return g.output.Get()

Callers 6

NewCPUFunction · 0.92
ConnectMethod · 0.92
ConnectMethod · 0.92
TestANDGate3Function · 0.85
NewCompare2Function · 0.85
NewDecoder3x8Function · 0.85

Calls 2

NewWireFunction · 0.92
NewANDGateFunction · 0.92

Tested by 1

TestANDGate3Function · 0.68