A 4-bit Arithmetic Logic Unit
{
"width":1000,
"height":500,
"showToolbox":true,
"toolbox":[
{"type":"NumSrc"},
{"type":"NumDsp"},
{"type":"AND"},
{"type":"OR"},
{"type":"NOT"},
{"type":"BUF"},
{"type":"XOR"},
{"type":"4bit7seg"},
{"type":"HalfAdder"},
{"type":"FullAdder"},
{"type":"AltFullAdder"},
{"type":"4bitAdder"},
{"type":"In"},
{"type":"Out"},
{"type":"Joint"},
{"type":"DC"},
{"type":"LED"},
{"type":"PushOff"},
{"type":"PushOn"},
{"type":"Toggle"},
{"type":"NAND"},
{"type":"NOR"},
{"type":"XNOR"},
{"type":"OSC","freq":1},
{"type":"7seg"},
{"type":"16seg"},
{"type":"RotaryEncoder"},
{"type":"BusIn"},
{"type":"BusOut"},
{"type":"RS-FF"},
{"type":"JK-FF"},
{"type":"T-FF"},
{"type":"D-FF"},
{"type":"8bitCounter"},
{"type":"2to4BinaryDecoder"},
{"type":"3to8BinaryDecoder"},
{"type":"4to16BinaryDecoder"},
{"type":"Transmitter"},
{"type":"Delay"},
{"type":"DSO"},
{"type":"4bitALU"},
{"type":"aluSlice"},
{"type":"mux2"},
{"type":"mux4"},
{"type":"mux8"},
{"type":"4bitAddSub"},
{"type":"2x1memory"},
{"type":"4x1memory"},
{"type":"4x4memory"}
],
"devices":[
{"type":"NumSrc","id":"dev0","x":80,"y":248,"label":"NumSrc","state":{"direction":0,"on":false}},
{"type":"NumSrc","id":"dev1","x":80,"y":232,"label":"NumSrc","state":{"direction":0,"on":false}},
{"type":"NumSrc","id":"dev2","x":80,"y":216,"label":"NumSrc","state":{"direction":0,"on":false}},
{"type":"NumSrc","id":"dev3","x":80,"y":200,"label":"NumSrc","state":{"direction":0,"on":true}},
{"type":"Joint","id":"dev4","x":336,"y":168,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev5","x":352,"y":184,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev6","x":352,"y":200,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev7","x":336,"y":216,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev8","x":352,"y":272,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev9","x":368,"y":216,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev10","x":368,"y":160,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev11","x":352,"y":104,"label":"Joint","state":{"direction":0}},
{"type":"NumDsp","id":"dev12","x":608,"y":160,"label":"NumDsp","state":{"direction":2}},
{"type":"NumDsp","id":"dev13","x":608,"y":104,"label":"NumDsp","state":{"direction":2}},
{"type":"NumDsp","id":"dev14","x":608,"y":216,"label":"NumDsp","state":{"direction":2}},
{"type":"NumDsp","id":"dev15","x":608,"y":272,"label":"NumDsp","state":{"direction":2}},
{"type":"Joint","id":"dev16","x":536,"y":104,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev17","x":552,"y":24,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev18","x":544,"y":160,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev19","x":560,"y":40,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev20","x":568,"y":56,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev21","x":552,"y":216,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev22","x":560,"y":272,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev23","x":576,"y":72,"label":"Joint","state":{"direction":0}},
{"type":"4bit7seg","id":"dev24","x":600,"y":24,"label":"4bit7seg"},
{"type":"4bit7seg","id":"dev25","x":216,"y":344,"label":"4bit7seg"},
{"type":"Joint","id":"dev26","x":192,"y":344,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev27","x":176,"y":360,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev28","x":160,"y":376,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev29","x":144,"y":392,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev30","x":144,"y":232,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev31","x":160,"y":216,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev32","x":176,"y":200,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev33","x":128,"y":248,"label":"Joint","state":{"direction":0}},
{"type":"4bit7seg","id":"dev34","x":216,"y":24,"label":"4bit7seg"},
{"type":"Joint","id":"dev35","x":192,"y":72,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev36","x":176,"y":56,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev37","x":160,"y":40,"label":"Joint","state":{"direction":0}},
{"type":"NumSrc","id":"dev38","x":56,"y":136,"label":"NumSrc","state":{"direction":0,"on":false}},
{"type":"NumSrc","id":"dev39","x":56,"y":152,"label":"NumSrc","state":{"direction":0,"on":true}},
{"type":"NumSrc","id":"dev40","x":56,"y":168,"label":"NumSrc","state":{"direction":0,"on":false}},
{"type":"NumSrc","id":"dev41","x":56,"y":184,"label":"NumSrc","state":{"direction":0,"on":false}},
{"type":"Joint","id":"dev42","x":176,"y":184,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev43","x":160,"y":168,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev44","x":144,"y":152,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev45","x":144,"y":24,"label":"Joint","state":{"direction":0}},
{"type":"Joint","id":"dev46","x":128,"y":136,"label":"Joint","state":{"direction":0}},
{"type":"NumSrc","id":"dev47","x":24,"y":120,"label":"NumSrc","state":{"direction":0,"on":false}},
{"type":"4bitALU","id":"dev48","x":216,"y":112,"label":"4bitALU"},
{"type":"NumSrc","id":"dev49","x":104,"y":264,"label":"NumSrc","state":{"direction":0,"on":false}},
{"type":"NumSrc","id":"dev50","x":104,"y":280,"label":"NumSrc","state":{"direction":0,"on":false}},
{"type":"NumSrc","id":"dev51","x":104,"y":296,"label":"NumSrc","state":{"direction":0,"on":false}},
{"type":"NumDsp","id":"dev52","x":304,"y":232,"label":"NumDsp","state":{"direction":2}}
],
"connectors":[
{"from":"dev4.in0","to":"dev48.out1"},
{"from":"dev5.in0","to":"dev48.out2"},
{"from":"dev6.in0","to":"dev48.out3"},
{"from":"dev7.in0","to":"dev48.out4"},
{"from":"dev8.in0","to":"dev7.out0"},
{"from":"dev9.in0","to":"dev6.out0"},
{"from":"dev10.in0","to":"dev5.out0"},
{"from":"dev11.in0","to":"dev4.out0"},
{"from":"dev12.in0","to":"dev18.out0"},
{"from":"dev13.in0","to":"dev16.out0"},
{"from":"dev14.in0","to":"dev21.out0"},
{"from":"dev15.in0","to":"dev22.out0"},
{"from":"dev16.in0","to":"dev11.out0"},
{"from":"dev17.in0","to":"dev16.out0"},
{"from":"dev18.in0","to":"dev10.out0"},
{"from":"dev19.in0","to":"dev18.out0"},
{"from":"dev20.in0","to":"dev21.out0"},
{"from":"dev21.in0","to":"dev9.out0"},
{"from":"dev22.in0","to":"dev8.out0"},
{"from":"dev23.in0","to":"dev22.out0"},
{"from":"dev24.in0","to":"dev17.out0"},
{"from":"dev24.in1","to":"dev19.out0"},
{"from":"dev24.in2","to":"dev20.out0"},
{"from":"dev24.in3","to":"dev23.out0"},
{"from":"dev25.in0","to":"dev26.out0"},
{"from":"dev25.in1","to":"dev27.out0"},
{"from":"dev25.in2","to":"dev28.out0"},
{"from":"dev25.in3","to":"dev29.out0"},
{"from":"dev26.in0","to":"dev32.out0"},
{"from":"dev27.in0","to":"dev31.out0"},
{"from":"dev28.in0","to":"dev30.out0"},
{"from":"dev29.in0","to":"dev33.out0"},
{"from":"dev30.in0","to":"dev1.out0"},
{"from":"dev31.in0","to":"dev2.out0"},
{"from":"dev32.in0","to":"dev3.out0"},
{"from":"dev33.in0","to":"dev0.out0"},
{"from":"dev34.in0","to":"dev45.out0"},
{"from":"dev34.in1","to":"dev37.out0"},
{"from":"dev34.in2","to":"dev36.out0"},
{"from":"dev34.in3","to":"dev35.out0"},
{"from":"dev35.in0","to":"dev42.out0"},
{"from":"dev36.in0","to":"dev43.out0"},
{"from":"dev37.in0","to":"dev44.out0"},
{"from":"dev42.in0","to":"dev41.out0"},
{"from":"dev43.in0","to":"dev40.out0"},
{"from":"dev44.in0","to":"dev39.out0"},
{"from":"dev45.in0","to":"dev46.out0"},
{"from":"dev46.in0","to":"dev38.out0"},
{"from":"dev48.in0","to":"dev46.out0"},
{"from":"dev48.in1","to":"dev49.out0"},
{"from":"dev48.in2","to":"dev50.out0"},
{"from":"dev48.in3","to":"dev51.out0"},
{"from":"dev48.in4","to":"dev47.out0"},
{"from":"dev48.in5","to":"dev44.out0"},
{"from":"dev48.in6","to":"dev32.out0"},
{"from":"dev48.in7","to":"dev31.out0"},
{"from":"dev48.in8","to":"dev43.out0"},
{"from":"dev48.in9","to":"dev30.out0"},
{"from":"dev48.in10","to":"dev42.out0"},
{"from":"dev48.in11","to":"dev33.out0"},
{"from":"dev52.in0","to":"dev48.out0"}
]
}