Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/djhworld/simple-computer
/ Component
Interface
Component
components/components.go:9–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
7
)
8
9
type
Component
interface
{
10
ConnectOutput(Component)
11
SetInputWire(int, bool)
12
GetOutputWire(int) bool
13
}
14
15
type
Enabler
struct
{
16
inputs [arch.BUS_WIDTH]circuit.Wire
Callers
21
NewRegister
Function · 0.65
TestWord
Function · 0.65
TestWordWithSetOn
Function · 0.65
TestEnabler
Function · 0.65
TestEnablerWithEnableOn
Function · 0.65
Update
Method · 0.65
Update
Method · 0.65
Update
Method · 0.65
Update
Method · 0.65
Update
Method · 0.65
TestWord
Function · 0.65
TestWordWithSetOn
Function · 0.65
Implementers
14
Word
components/storage.go
Bus
components/bus.go
Enabler
components/components.go
LeftShifter
components/components.go
RightShifter
components/components.go
IsZero
components/components.go
NOTer
components/components.go
ANDer
components/components.go
ORer
components/components.go
XORer
components/components.go
Comparator
components/components.go
BusOne
components/components.go
Calls
no outgoing calls
Tested by
no test coverage detected