MCPcopy 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
237func (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
244type ANDer struct {
245 inputs [arch.BUS_WIDTH * 2]circuit.Wire

Callers 1

TestNOTerFunction · 0.95

Calls 3

UpdateMethod · 0.65
GetMethod · 0.45
OutputMethod · 0.45

Tested by 1

TestNOTerFunction · 0.76