Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/djhworld/simple-computer
/ Update
Method
Update
components/components.go:237–242 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
235
}
236
237
func
(n *NOTer) Update() {
238
for
i, _ :=
range
n.gates {
239
n.gates[i].Update(n.inputs[i].Get())
240
n.outputs[i].Update(n.gates[i].Output())
241
}
242
}
243
244
type
ANDer
struct
{
245
inputs [arch.BUS_WIDTH * 2]circuit.Wire
Callers
1
TestNOTer
Function · 0.95
Calls
3
Update
Method · 0.65
Get
Method · 0.45
Output
Method · 0.45
Tested by
1
TestNOTer
Function · 0.76