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

Method Update

components/components.go:353–362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

351}
352
353func (o *XORer) Update() {
354 awire := arch.BUS_WIDTH
355 bwire := 0
356 for i, _ := range o.gates {
357 o.gates[i].Update(o.inputs[awire].Get(), o.inputs[bwire].Get())
358 o.outputs[i].Update(o.gates[i].Output())
359 awire++
360 bwire++
361 }
362}
363
364type Compare2 struct {
365 inputA circuit.Wire

Callers 1

TestXORerFunction · 0.95

Calls 3

UpdateMethod · 0.65
GetMethod · 0.45
OutputMethod · 0.45

Tested by 1

TestXORerFunction · 0.76