Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
43
func
NewNOTGate() *NOTGate {
44
return
&NOTGate{
45
output: *NewWire(
"O"
, false),
46
}
47
}
48
49
func
(g *NOTGate) Update(input bool) {
50
g.output.Update(!input)
Callers
13
NewIsZero
Function · 0.92
NewNOTer
Function · 0.92
NewCompare2
Function · 0.92
NewBusOne
Function · 0.92
NewStepper
Function · 0.92
NewDecoder2x4
Function · 0.92
NewDecoder3x8
Function · 0.92
NewDecoder4x16
Function · 0.92
NewInstructionDecoder3x8
Function · 0.92
NewCPU
Function · 0.92
Connect
Method · 0.92
Connect
Method · 0.92
Calls
1
NewWire
Function · 0.85
Tested by
1
TestNOTGate
Function · 0.68