{
"version": 1,
"author": "Uri Shaked",
"editor": "wokwi",
"parts": [
{
"type": "wokwi-clock-generator",
"id": "clock1",
"top": -192.44,
"left": -142.59,
"attrs": {}
},
{ "type": "wokwi-gnd", "id": "pwr2", "top": -75.44, "left": 508.81, "attrs": {} },
{
"type": "board-tt-block-input-8",
"id": "chip1",
"top": -190.98,
"left": -4.8,
"attrs": { "verilogRole": "input" }
},
{
"type": "board-tt-block-output",
"id": "chip2",
"top": -190.98,
"left": 634.66,
"attrs": { "verilogRole": "output" }
},
{
"type": "wokwi-pushbutton",
"id": "btn1",
"top": -261.82,
"left": -156.92,
"attrs": { "color": "grey", "label": "Step", "bounce": "0" }
},
{ "type": "wokwi-vcc", "id": "pwr3", "top": -304.15, "left": -87.76, "attrs": {} },
{
"type": "wokwi-led",
"id": "led2",
"top": -317.1,
"left": -52.8,
"attrs": { "color": "orange", "flip": "1" }
},
{ "type": "wokwi-gnd", "id": "pwr7", "top": -246.62, "left": 8.6, "attrs": {} },
{
"type": "wokwi-flip-flop-d",
"id": "flipflop2",
"top": -177.84,
"left": 288.03,
"attrs": {}
},
{ "type": "wokwi-gate-and-2", "id": "gate1", "top": -202.49, "left": 513.84, "attrs": {} },
{
"type": "wokwi-led",
"id": "led1",
"top": -254.34,
"left": 787.71,
"attrs": { "color": "red", "flip": "1" }
},
{ "type": "wokwi-gnd", "id": "pwr1", "top": -93.19, "left": 949.53, "attrs": {} },
{
"type": "wokwi-led",
"id": "led3",
"top": -156.12,
"left": 786.33,
"attrs": { "color": "blue", "flip": "1" }
},
{
"type": "wokwi-text",
"id": "text7",
"top": -340.83,
"left": -74.43,
"attrs": { "text": "Button Press Indicator" }
},
{
"type": "wokwi-text",
"id": "text8",
"top": -341.97,
"left": 784.77,
"attrs": { "text": "Rising Edge Detect" }
},
{
"type": "wokwi-text",
"id": "text9",
"top": -92.1,
"left": 793.31,
"attrs": { "text": "Falling Edge Detect" }
},
{
"type": "wokwi-text",
"id": "text10",
"top": -115.14,
"left": 219.26,
"attrs": { "text": "Clock" }
},
{
"type": "wokwi-text",
"id": "text11",
"top": -266.49,
"left": 246.38,
"attrs": { "text": "Current signal value (D)" }
},
{
"type": "wokwi-text",
"id": "text12",
"top": -209.82,
"left": 281.17,
"attrs": { "text": "Past signal value (Q)" }
},
{
"type": "wokwi-text",
"id": "text13",
"top": -87.2,
"left": 146.69,
"attrs": { "text": "Past signal value (inverted) (!Q)" }
},
{
"type": "wokwi-led",
"id": "led4",
"top": -126.1,
"left": 491.59,
"attrs": { "color": "magenta", "flip": "1" }
}
],
"connections": [
[ "pwr3:VCC", "btn1:1.r", "red", [ "v0" ] ],
[ "pwr7:GND", "led2:C", "black", [ "v0" ] ],
[ "btn1:2.r", "chip1:EXTIN0", "orange", [ "h42.84", "v140.2" ] ],
[ "btn1:2.r", "led2:A", "orange", [ "h0" ] ],
[ "flipflop2:D", "gate1:A", "orange", [ "h-31.24", "v-61.25", "h257.05" ] ],
[ "flipflop2:NOTQ", "gate1:B", "violet", [ "h0" ] ],
[ "chip2:EXTOUT0", "led1:A", "red", [ "h0" ] ],
[ "pwr1:GND", "led1:C", "black", [ "v0" ] ],
[ "gate1:OUT", "chip2:OUT0", "red", [ "v0" ] ],
[ "pwr1:GND", "led3:C", "black", [ "v-10.63", "h-29.84" ] ],
[ "chip2:EXTOUT1", "led3:A", "blue", [ "h42.11", "v40.32" ] ],
[ "clock1:CLK", "chip1:EXTIN1", "gray", [ "v0" ] ],
[ "chip1:IN1", "flipflop2:CLK", "gray", [ "h109.75", "v21.44", "h82.28" ] ],
[ "flipflop2:NOTQ", "led4:A", "violet", [ "h113.32", "v64.94" ] ],
[ "pwr2:GND", "led4:C", "black", [ "v0" ] ],
[ "chip1:IN0", "flipflop2:D", "orange", [ "v-11.1", "h190.06" ] ]
],
"dependencies": {}
}
Loading
tt-block-input-8
tt-block-input-8
Button Press Indicator
Rising Edge Detect
Falling Edge Detect
Clock
Current signal value (D)
Past signal value (Q)
Past signal value (inverted) (!Q)
ERC Warnings
flipflop2:CLK: Clock driven by combinatorial logic