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

Function NewNOTGate

circuit/gates.go:43–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43func NewNOTGate() *NOTGate {
44 return &NOTGate{
45 output: *NewWire("O", false),
46 }
47}
48
49func (g *NOTGate) Update(input bool) {
50 g.output.Update(!input)

Callers 13

NewIsZeroFunction · 0.92
NewNOTerFunction · 0.92
NewCompare2Function · 0.92
NewBusOneFunction · 0.92
NewStepperFunction · 0.92
NewDecoder2x4Function · 0.92
NewDecoder3x8Function · 0.92
NewDecoder4x16Function · 0.92
NewInstructionDecoder3x8Function · 0.92
NewCPUFunction · 0.92
ConnectMethod · 0.92
ConnectMethod · 0.92

Calls 1

NewWireFunction · 0.85

Tested by 1

TestNOTGateFunction · 0.68