{
"version": 1,
"author": "Anonymous maker",
"editor": "wokwi",
"parts": [
{ "type": "chip-fpga", "id": "chip1", "top": -171.78, "left": 139.2, "attrs": {} },
{
"type": "wokwi-resistor",
"id": "r1",
"top": -62.4,
"left": 354.65,
"rotate": 90,
"attrs": { "value": "330" }
},
{
"type": "wokwi-led",
"id": "led1",
"top": -138,
"left": 359.4,
"attrs": { "color": "red", "flip": "1" }
},
{
"type": "wokwi-text",
"id": "text2",
"top": -172.8,
"left": 9.6,
"attrs": { "text": "CLK" }
},
{
"type": "chip-scope",
"id": "scope1",
"top": 49.02,
"left": 273.6,
"attrs": {
"sampleTimeUs": "10",
"sampleTimeMs": "0",
"triggerChannel": "0",
"triggerMode": "1",
"crtColor": "1",
"trace0Color": "0",
"trace1Color": "9",
"trace2Color": "9",
"trace3Color": "9"
}
},
{
"type": "chip-scope",
"id": "scope2",
"top": 125.82,
"left": 273.6,
"attrs": {
"sampleTimeUs": "10",
"sampleTimeMs": "0",
"triggerChannel": "3",
"triggerMode": "2",
"crtColor": "1",
"trace0Color": "0",
"trace1Color": "1",
"trace2Color": "2",
"trace3Color": "3"
}
},
{ "type": "chip-clkgen", "id": "chip2", "top": 125.82, "left": -12.59, "attrs": {} },
{ "type": "chip-fpga", "id": "chip4", "top": 125.82, "left": 139.2, "attrs": {} },
{ "type": "wokwi-text", "id": "text3", "top": 96, "left": 28.8, "attrs": { "text": "CLK" } },
{
"type": "wokwi-resistor",
"id": "r2",
"top": -62.4,
"left": 325.85,
"rotate": 90,
"attrs": { "value": "330" }
},
{
"type": "wokwi-led",
"id": "led2",
"top": -138,
"left": 330.6,
"attrs": { "color": "red", "flip": "1" }
},
{
"type": "wokwi-resistor",
"id": "r3",
"top": -62.4,
"left": 297.05,
"rotate": 90,
"attrs": { "value": "330" }
},
{
"type": "wokwi-led",
"id": "led3",
"top": -138,
"left": 301.8,
"attrs": { "color": "red", "flip": "1" }
},
{
"type": "wokwi-resistor",
"id": "r4",
"top": -62.4,
"left": 268.25,
"rotate": 90,
"attrs": { "value": "330" }
},
{
"type": "wokwi-led",
"id": "led4",
"top": -138,
"left": 273,
"attrs": { "color": "red", "flip": "1" }
},
{ "type": "wokwi-gnd", "id": "gnd1", "top": -19.2, "left": 287.4, "attrs": {} },
{
"type": "wokwi-text",
"id": "text1",
"top": -192,
"left": 288,
"attrs": { "text": "Counter Value" }
},
{
"type": "wokwi-text",
"id": "text4",
"top": 220.8,
"left": 163.2,
"attrs": { "text": "Counter Value" }
},
{
"type": "wokwi-pushbutton",
"id": "btn1",
"top": -185.8,
"left": 48,
"attrs": { "color": "green", "bounce": "0" }
},
{ "type": "wokwi-vcc", "id": "vcc1", "top": -210.44, "left": 105.6, "attrs": {} },
{ "type": "wokwi-gnd", "id": "gnd2", "top": -76.8, "left": 105, "attrs": {} },
{
"type": "wokwi-resistor",
"id": "r5",
"top": -120,
"left": 85.85,
"rotate": 90,
"attrs": { "value": "10000" }
}
],
"connections": [
[ "led1:A", "chip1:O1", "#8f4814", [ "v0", "h-9.6", "v-28.8" ] ],
[ "chip1:Q", "led1:A", "red", [ "v0" ] ],
[ "led1:C", "r1:1", "green", [ "v0" ] ],
[ "chip2:OUT", "chip4:DATA", "black", [ "h59.41", "v28.8" ] ],
[ "chip4:Q", "scope2:D2", "red", [ "h11.41", "v-38.4" ] ],
[ "chip1:CNT0", "led1:A", "black", [ "h117.01", "v67.2" ] ],
[ "led2:C", "r2:1", "green", [ "v0" ] ],
[ "chip1:CNT1", "led2:A", "#8f4814", [ "h88.21", "v57.6" ] ],
[ "led3:C", "r3:1", "green", [ "v0" ] ],
[ "led4:C", "r4:1", "green", [ "v0" ] ],
[ "chip1:CNT2", "led3:A", "red", [ "h59.41", "v48" ] ],
[ "chip1:CNT3", "led4:A", "orange", [ "h30.61", "v38.4" ] ],
[ "r1:2", "r2:2", "green", [ "h0" ] ],
[ "r2:2", "r3:2", "green", [ "h0" ] ],
[ "r3:2", "r4:2", "green", [ "h0" ] ],
[ "r4:2", "gnd1:GND", "green", [ "h0" ] ],
[ "chip2:OUT", "chip4:CLK", "green", [ "v0" ] ],
[ "chip4:CNT0", "scope2:D0", "black", [ "h0" ] ],
[ "chip4:CNT1", "scope2:D1", "#8f4814", [ "h0" ] ],
[ "chip4:CNT2", "scope2:D2", "red", [ "h0" ] ],
[ "chip4:CNT3", "scope2:D3", "orange", [ "v0" ] ],
[ "chip2:OUT", "scope1:D0", "green", [ "v0", "h19.2", "v-67.2" ] ],
[ "vcc1:VCC", "btn1:1.r", "red", [ "v0" ] ],
[ "btn1:2.r", "r5:1", "green", [ "h0" ] ],
[ "r5:2", "gnd2:GND", "green", [ "h0" ] ],
[ "btn1:2.r", "chip1:CLK", "green", [ "h0" ] ]
],
"dependencies": { "chip-scope": "github:Dlloydev/[email protected]" }
}CLK
CLK
Counter Value
Counter Value