4-bittinen ohjelmalaskuri, Inc-signaalilla laskee ylöspäin, Reset-signaalilla nollaa, Load-signaalilla
lataa In[4] -sisäänmenossa oleva arvon ohjelmalaskurin uudeksi arvoksi. Out[4] -ulostulossa on ohjelmalaskurin
nykyinen arvo. Kokeile vaikka lisätä kytkentään RAM8-komponentti, kytke PC:n ulostulo sekä RAM8-komponentin
In[4] että Addr[3] -sisäänmenoihin. Aseta RAM8:n Load-signaali päälle ja sitten PC:n Inc-signaali.
Anna PC:n laskea muutama arvo, esim. 0-4, ja aseta Inc-signaali pois päältä samoin kuin RAM8:n Load signaali.
Nyt pitäisi RAM8:n muistipaikoissa 0-4 olla lukuarvot 0-4. Testaa vaikka resetoimalla PC ja liittämällä
RAM8:n ulostuloon näyttö ja antamalla PC:n käydä läpi RAM8:n osoitteet.
{
"width":800,
"height":500,
"showToolbox":true,
"devices":[
{"type":"4BitReg","id":"dev0","x":408,"y":128,"label":"4BitReg"},
{"type":"2to1Mux4","id":"dev1","x":248,"y":40,"label":"2to1Mux4"},
{"type":"OSC","id":"dev2","x":376,"y":232,"freq":1,"label":"OSC(1Hz)"},
{"type":"4bitAdder","id":"dev3","x":88,"y":32,"label":"4bitAdder"},
{"type":"BusIn","id":"dev4","x":32,"y":48,"label":"BusIn","numOutputs":4},
{"type":"BusOut","id":"dev5","x":216,"y":192,"label":"BusOut","numInputs":4},
{"type":"RotaryEncoder","id":"dev6","x":136,"y":192,"label":"In[4]"},
{"type":"DC","id":"dev7","x":376,"y":48,"label":"DC"},
{"type":"Joint","id":"dev8","x":464,"y":16,"label":"Joint","state":{"direction":3}},
{"type":"Joint","id":"dev9","x":248,"y":8,"label":"Joint","state":{"direction":2}},
{"type":"Joint","id":"dev10","x":32,"y":8,"label":"Joint","state":{"direction":2}},
{"type":"BusOut","id":"dev11","x":176,"y":40,"label":"BusOut","numInputs":4},
{"type":"DC","id":"dev12","x":16,"y":192,"label":"DC"},
{"type":"2to1Mux4","id":"dev13","x":312,"y":112,"label":"2to1Mux4"},
{"type":"2to1Mux4","id":"dev14","x":312,"y":176,"label":"2to1Mux4"},
{"type":"PushOn","id":"dev15","x":280,"y":344,"label":"Reset"},
{"type":"DC","id":"dev16","x":232,"y":344,"label":"DC"},
{"type":"Joint","id":"dev17","x":280,"y":192,"label":"Joint","state":{"direction":0}},
{"type":"4bit7seg","id":"dev18","x":208,"y":248,"label":"4bit7seg"},
{"type":"Joint","id":"dev19","x":264,"y":320,"label":"Joint","state":{"direction":0}},
{"type":"BusOut","id":"dev20","x":152,"y":312,"label":"0000","numInputs":4},
{"type":"NOT","id":"dev21","x":88,"y":304,"label":"NOT"},
{"type":"DC","id":"dev22","x":48,"y":304,"label":"DC"},
{"type":"DC","id":"dev23","x":88,"y":208,"label":"DC"},
{"type":"Toggle","id":"dev24","x":216,"y":96,"label":"Inc","state":{"on":false}},
{"type":"Toggle","id":"dev25","x":256,"y":136,"label":"Load","state":{"on":false}},
{"type":"BusIn","id":"dev26","x":432,"y":192,"label":"BusIn","numOutputs":4},
{"type":"4bit7seg","id":"dev27","x":488,"y":176,"label":"Out[4]"}
],
"connectors":[
{"from":"dev0.in0","to":"dev7.out0"},
{"from":"dev0.in1","to":"dev14.out0"},
{"from":"dev0.in2","to":"dev2.out0"},
{"from":"dev1.in0","to":"dev9.out0"},
{"from":"dev1.in1","to":"dev11.out0"},
{"from":"dev1.in2","to":"dev24.out0"},
{"from":"dev3.in1","to":"dev4.out0"},
{"from":"dev3.in2","to":"dev4.out1"},
{"from":"dev3.in3","to":"dev4.out2"},
{"from":"dev3.in4","to":"dev4.out3"},
{"from":"dev3.in5","to":"dev12.out0"},
{"from":"dev4.in0","to":"dev10.out0"},
{"from":"dev5.in0","to":"dev6.out0"},
{"from":"dev5.in1","to":"dev6.out1"},
{"from":"dev5.in2","to":"dev6.out2"},
{"from":"dev5.in3","to":"dev6.out3"},
{"from":"dev6.in0","to":"dev23.out0"},
{"from":"dev8.in0","to":"dev0.out0"},
{"from":"dev9.in0","to":"dev8.out0"},
{"from":"dev10.in0","to":"dev9.out0"},
{"from":"dev11.in0","to":"dev3.out0"},
{"from":"dev11.in1","to":"dev3.out1"},
{"from":"dev11.in2","to":"dev3.out2"},
{"from":"dev11.in3","to":"dev3.out3"},
{"from":"dev13.in0","to":"dev1.out0"},
{"from":"dev13.in1","to":"dev5.out0"},
{"from":"dev13.in2","to":"dev25.out0"},
{"from":"dev14.in0","to":"dev13.out0"},
{"from":"dev14.in1","to":"dev17.out0"},
{"from":"dev14.in2","to":"dev15.out0"},
{"from":"dev15.in0","to":"dev16.out0"},
{"from":"dev17.in0","to":"dev19.out0"},
{"from":"dev18.in0","to":"dev6.out0"},
{"from":"dev18.in1","to":"dev6.out1"},
{"from":"dev18.in2","to":"dev6.out2"},
{"from":"dev18.in3","to":"dev6.out3"},
{"from":"dev19.in0","to":"dev20.out0"},
{"from":"dev20.in0","to":"dev21.out0"},
{"from":"dev20.in1","to":"dev21.out0"},
{"from":"dev20.in2","to":"dev21.out0"},
{"from":"dev20.in3","to":"dev21.out0"},
{"from":"dev21.in0","to":"dev22.out0"},
{"from":"dev24.in0","to":"dev12.out0"},
{"from":"dev25.in0","to":"dev12.out0"},
{"from":"dev26.in0","to":"dev0.out0"},
{"from":"dev27.in0","to":"dev26.out0"},
{"from":"dev27.in1","to":"dev26.out1"},
{"from":"dev27.in2","to":"dev26.out2"},
{"from":"dev27.in3","to":"dev26.out3"}
]
}