{
"version": 1,
"author": "Uri Shaked",
"editor": "wokwi",
"parts": [
{
"type": "wokwi-dip-switch-8",
"id": "sw1",
"top": -176.5,
"left": -94.5,
"rotate": 90,
"attrs": {}
},
{ "type": "wokwi-vcc", "id": "pwr1", "top": -229.64, "left": -115.2, "attrs": {} },
{
"type": "board-tt-block-input",
"id": "ttin",
"top": -228.13,
"left": 4.8,
"attrs": { "verilogRole": "input" }
},
{
"type": "board-tt-block-output",
"id": "ttout",
"top": -199.33,
"left": 897.6,
"attrs": { "verilogRole": "output" }
},
{ "type": "wokwi-gate-xor-2", "id": "xor1", "top": -192, "left": 211.2, "attrs": {} },
{ "type": "wokwi-gate-xor-2", "id": "xor2", "top": -192, "left": 355.2, "attrs": {} },
{ "type": "wokwi-gate-and-2", "id": "and1", "top": -76.8, "left": 211.2, "attrs": {} },
{ "type": "wokwi-gate-and-2", "id": "and2", "top": -115.2, "left": 355.2, "attrs": {} },
{ "type": "wokwi-gate-or-2", "id": "or1", "top": -105.6, "left": 480, "attrs": {} },
{ "type": "wokwi-gate-xor-2", "id": "xor3", "top": 19.2, "left": 211.2, "attrs": {} },
{ "type": "wokwi-gate-xor-2", "id": "xor4", "top": 19.2, "left": 364.8, "attrs": {} },
{ "type": "wokwi-gate-and-2", "id": "and3", "top": 144, "left": 211.2, "attrs": {} },
{ "type": "wokwi-gate-and-2", "id": "and4", "top": 96, "left": 364.8, "attrs": {} },
{ "type": "wokwi-gate-or-2", "id": "or2", "top": 105.6, "left": 480, "attrs": {} },
{ "type": "wokwi-gate-xor-2", "id": "xor5", "top": 220.8, "left": 364.8, "attrs": {} },
{ "type": "wokwi-gate-xor-2", "id": "xor6", "top": 220.8, "left": 211.2, "attrs": {} },
{ "type": "wokwi-gate-and-2", "id": "and5", "top": 288, "left": 364.8, "attrs": {} },
{ "type": "wokwi-gate-and-2", "id": "and6", "top": 316.8, "left": 211.2, "attrs": {} },
{ "type": "wokwi-gate-or-2", "id": "or3", "top": 297.6, "left": 489.6, "attrs": {} },
{ "type": "wokwi-gate-xor-2", "id": "xor7", "top": 384, "left": 364.8, "attrs": {} },
{ "type": "wokwi-gate-xor-2", "id": "xor8", "top": 384, "left": 211.2, "attrs": {} },
{ "type": "wokwi-gate-and-2", "id": "and7", "top": 441.6, "left": 364.8, "attrs": {} },
{ "type": "wokwi-gate-and-2", "id": "and8", "top": 480, "left": 201.6, "attrs": {} },
{ "type": "wokwi-gate-or-2", "id": "or4", "top": 451.2, "left": 499.2, "attrs": {} },
{ "type": "wokwi-led", "id": "led1", "top": -234, "left": 1079, "attrs": { "color": "red" } },
{
"type": "wokwi-led",
"id": "led2",
"top": -234,
"left": 1107.8,
"attrs": { "color": "red" }
},
{
"type": "wokwi-led",
"id": "led3",
"top": -234,
"left": 1136.6,
"attrs": { "color": "red" }
},
{
"type": "wokwi-led",
"id": "led4",
"top": -234,
"left": 1165.4,
"attrs": { "color": "red" }
},
{
"type": "wokwi-led",
"id": "led5",
"top": -234,
"left": 1194.2,
"attrs": { "color": "yellow" }
},
{ "type": "wokwi-gnd", "id": "gnd2", "top": -67.2, "left": 1141.8, "attrs": {} },
{ "type": "wokwi-gnd", "id": "gnd3", "top": -48, "left": 325.8, "attrs": {} },
{
"type": "wokwi-text",
"id": "text1",
"top": -297.6,
"left": 182.4,
"attrs": { "text": "Input carry" }
},
{ "type": "wokwi-clock-generator", "id": "clk1", "top": -326.4, "left": -124.8, "attrs": {} }
],
"connections": [
[ "pwr1:VCC", "sw1:8a", "red", [ "v0" ] ],
[ "pwr1:VCC", "sw1:7a", "red", [ "v0" ] ],
[ "pwr1:VCC", "sw1:6a", "red", [ "v0" ] ],
[ "pwr1:VCC", "sw1:5a", "red", [ "v0" ] ],
[ "pwr1:VCC", "sw1:4a", "red", [ "v0" ] ],
[ "pwr1:VCC", "sw1:1a", "red", [ "v0" ] ],
[ "pwr1:VCC", "sw1:2a", "red", [ "v0" ] ],
[ "pwr1:VCC", "sw1:3a", "red", [ "v0" ] ],
[ "sw1:1b", "ttin:EXTIN0", "green", [ "h0" ] ],
[ "sw1:2b", "ttin:EXTIN1", "green", [ "h0" ] ],
[ "ttin:EXTIN2", "sw1:3b", "green", [ "h0" ] ],
[ "ttin:EXTIN3", "sw1:4b", "green", [ "h0" ] ],
[ "sw1:5b", "ttin:EXTIN4", "green", [ "h0" ] ],
[ "ttin:EXTIN5", "sw1:6b", "green", [ "h0" ] ],
[ "sw1:7b", "ttin:EXTIN6", "green", [ "h0" ] ],
[ "sw1:8b", "ttin:EXTIN7", "green", [ "v0" ] ],
[ "ttin:IN0", "xor1:A", "green", [ "h0" ] ],
[ "ttin:IN4", "xor1:B", "red", [ "h0" ] ],
[ "xor1:OUT", "xor2:A", "#8f4814", [ "v0" ] ],
[ "xor1:OUT", "and2:A", "#8f4814", [ "v0" ] ],
[ "and2:OUT", "or1:A", "#8f4814", [ "v0" ] ],
[ "ttin:IN0", "and1:A", "green", [ "h96", "v115.2" ] ],
[ "ttin:IN4", "and1:B", "red", [ "h105.6", "v96" ] ],
[ "and1:OUT", "or1:B", "#8f4814", [ "h163.2", "v-19.2" ] ],
[ "ttin:IN1", "xor3:A", "green", [ "h86.4", "v201.6" ] ],
[ "ttin:IN5", "xor3:B", "red", [ "h76.8", "v182.4" ] ],
[ "ttin:IN5", "and3:B", "red", [ "h76.8", "v307.2" ] ],
[ "ttin:IN1", "and3:A", "green", [ "h86.4", "v326.4" ] ],
[ "xor3:OUT", "xor4:A", "#8f4814", [ "v0" ] ],
[ "xor3:OUT", "and4:A", "#8f4814", [ "v0" ] ],
[ "or1:OUT", "xor4:B", "gold", [ "h9.6", "v86.4", "h-230.4", "v48" ] ],
[ "or1:OUT", "and4:B", "gold", [ "h9.6", "v86.4", "h-230.4", "v124.8" ] ],
[ "and3:OUT", "or2:B", "#8f4814", [ "h163.2", "v-28.8" ] ],
[ "and4:OUT", "or2:A", "#8f4814", [ "v0" ] ],
[ "ttin:IN2", "xor6:A", "green", [ "h67.2", "v393.6" ] ],
[ "ttin:IN2", "and6:A", "green", [ "h67.2", "v489.6" ] ],
[ "ttin:IN6", "xor6:B", "red", [ "h57.6", "v374.4" ] ],
[ "ttin:IN6", "and6:B", "red", [ "h57.6", "v470.4" ] ],
[ "xor6:OUT", "xor5:A", "#8f4814", [ "v0" ] ],
[ "xor6:OUT", "and5:A", "#8f4814", [ "v0" ] ],
[ "or2:OUT", "xor5:B", "gold", [ "h9.6", "v76.8", "h-230.4", "v48" ] ],
[ "or2:OUT", "and5:B", "gold", [ "h9.6", "v76.8", "h-230.4", "v115.2" ] ],
[ "and5:OUT", "or3:A", "#8f4814", [ "v0" ] ],
[ "and6:OUT", "or3:B", "#8f4814", [ "h172.8", "v-9.6" ] ],
[ "ttin:IN3", "xor8:A", "green", [ "h48", "v547.2" ] ],
[ "ttin:IN3", "and8:A", "green", [ "h48", "v643.2" ] ],
[ "ttin:IN7", "xor8:B", "red", [ "h38.4", "v528" ] ],
[ "ttin:IN7", "and8:B", "red", [ "h38.4", "v624" ] ],
[ "xor8:OUT", "xor7:A", "#8f4814", [ "v0" ] ],
[ "xor8:OUT", "and7:A", "#8f4814", [ "v0" ] ],
[ "or3:OUT", "xor7:B", "gold", [ "h9.6", "v48", "h-240", "v48" ] ],
[ "and7:OUT", "or4:A", "#8f4814", [ "v0" ] ],
[ "and8:OUT", "or4:B", "#8f4814", [ "h192", "v-19.2" ] ],
[ "or3:OUT", "and7:B", "gold", [ "h9.6", "v48", "h-240", "v105.6" ] ],
[ "xor2:OUT", "ttout:OUT0", "black", [ "v0" ] ],
[ "xor4:OUT", "ttout:OUT1", "black", [ "h134.4", "v-201.6" ] ],
[ "xor5:OUT", "ttout:OUT2", "black", [ "h144", "v-393.6" ] ],
[ "xor7:OUT", "ttout:OUT3", "black", [ "h153.6", "v-547.2" ] ],
[ "or4:OUT", "ttout:OUT4", "gold", [ "h28.8", "v-604.8" ] ],
[ "ttout:EXTOUT0", "led1:A", "white", [ "h105.6" ] ],
[ "ttout:EXTOUT1", "led2:A", "white", [ "h0" ] ],
[ "ttout:EXTOUT2", "led3:A", "white", [ "h0" ] ],
[ "ttout:EXTOUT3", "led4:A", "white", [ "h0" ] ],
[ "ttout:EXTOUT4", "led5:A", "white", [ "h0" ] ],
[ "led1:C", "gnd2:GND", "gray", [ "v0" ] ],
[ "led2:C", "gnd2:GND", "gray", [ "v0" ] ],
[ "led3:C", "gnd2:GND", "gray", [ "v0" ] ],
[ "led4:C", "gnd2:GND", "gray", [ "v0" ] ],
[ "led5:C", "gnd2:GND", "gray", [ "v0" ] ],
[ "clk1:CLK", "ttin:EXTCLK", "green", [ "h9.6", "v105.6" ] ],
[ "and2:B", "gnd3:GND", "gray", [ "h0" ] ],
[ "xor2:B", "gnd3:GND", "gray", [ "h0" ] ]
],
"dependencies": {}
}Loading
tt-block-input
tt-block-input
Loading
tt-block-output
tt-block-output
Input carry