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

Function NewNANDGate

circuit/gates.go:7–11  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5}
6
7func NewNANDGate() *NANDGate {
8 return &NANDGate{
9 output: *NewWire("O", false),
10 }
11}
12
13func (g *NANDGate) Output() bool {
14 return g.output.Get()

Callers 2

NewBitFunction · 0.92
TestNANDGateFunction · 0.85

Calls 1

NewWireFunction · 0.85

Tested by 1

TestNANDGateFunction · 0.68