Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
func
NewNANDGate() *NANDGate {
8
return
&NANDGate{
9
output: *NewWire(
"O"
, false),
10
}
11
}
12
13
func
(g *NANDGate) Output() bool {
14
return
g.output.Get()
Callers
2
NewBit
Function · 0.92
TestNANDGate
Function · 0.85
Calls
1
NewWire
Function · 0.85
Tested by
1
TestNANDGate
Function · 0.68