Virtual Circuit Board

Virtual Circuit Board

TheModGod Sep 19, 2022 @ 11:50pm
D Flip-Flop with clock input causing unstable/flickering d-Latch
I've been following the first few episodes of Ben Eater's logic tutorials, and I've tried to implement the d flip-flop and a d-latch. the d-latch when manually toggled works fine, but when a clock input is given through the flip flop (for rising edge detection) the d-latch continues to flicker in its initial unstable state. Any help?


KLUv/WBgJmUPAGQCAACMq6H/OkVRoWxW/y5HXf//Yor/TTg+xmMw2f//AEFmeI44TUeBDqjRB9IPoQVIGeSomwESQAEAAaUBCGgCgAAkAAJIAARSAAQIAIESIjACAAKaOwLBZM+fxd2IfVKRE8bHK7IhvqGJ9ksndGJ9SUM1bZiaIdm/FkHzf9X70xzbGV9FuNWuH3J0caPxh+1fo6Gzq575Rr9W/2dYsNBs+zaz3H1suV7lv/OiqrldWC6NOT06x/01ZnQK9q7qclDsukvKeMIR+U8OP+LfuLZ85jPSNh29z2w2YOl8cM5dsk356mqejn+hJxiAs+iztrLILppUuUJqTTzfjBJrmlG+Y3qEzxyDlTHo/e9mMr0DdSGOduV7JdMT+9nEziLigvQMijMbvpma7qD7tbDcwJvQWAB98C3mYWV2L+vTN0zxxl06odf4nTT4p4qAf2S7ke4c03pSuzcvc1ew89omTbF5jxAv29WfOy/+j2TnmKZL9Jf2CjkEtg9FvqADO7ghc28+p5CNe2qaDyoHWlCnCKH/P+g78Tw35B7c8QY985AoHt0uoTzvDD0zM8/ThjiLJDGRa+OFmTm9/ll3bWIfcdyodv2dIIQYwkRbJwqh6fWBKsGWTb6foCZUrRWIoOapbUKqQ5YipP3trxPH/gIAAAAkAAAAAgAAAEYAAAACAAAAYCcAAAIAAAAAAAEA
< >
Showing 1-1 of 1 comments
liq3 Sep 20, 2022 @ 3:17am 
Not sure how to fix it, it's some weird issue with the clock syncing up with the flip flop. When it passes a signal to the AND gates and those pass an ON signal to the NOR gates at the same turn the unstable output is ON, it does nothing and it just keeps being unstable. You get stability if you get an ON signal to the NOR gates while the outputs are off, since it forces one to stay on, which keeps the other off. I'm guessing it's also a problem caused by the discrete time steps.

Trying to toggle it on/off from a stable state seems to just make it unstable again too. I'm guessing this kind of flip flop just isn't usable in a discrete time step environment.

Ok, I figured out a solution: buffering the middle inputs seems to fix it, so they last 2 ticks instead of 1. KLUv/WAcKeUQAKQCAACMq6H/OkVRTTg+/6FsVv8uR13/kv9j/2KK/8ZjMNn/OE1H/wBBZniOgTao0QfSD4EFiCGlpGMFEuABBJWIoCfIBE0ABFKwBElEgglEBAqsAyHsbhNOca1Gao8ixLjk5i9iDZMP4Yr6ebXWzklt2ysA+Oere+rdg3UIf5DF/CAHP9htR70Sl37fThXTBBrxqbjNd/Rvz2NbXDD/6Ok48Xr2fDZcwGVYbmLu+afAY/nz9amFuJpw4gBTcvqEPy8bCd2FKJcTrpQmfubPou71+IVJ8nPevtq2ruhHP9/SmqlfKpN1kzQ0NjjTjEvQUtTeULRfasu03h9qw+eUmb/ojdg5Oeb1ptfv9W1suREfas395DHGmYZaejnJwIh2QcdxOlw7nT+nB6OWi4OZe9K49EqO6AL9H14hL2CjGXUjvlAXi3bUDaf8/ghvBZWHcB3ZA1zp9taj8AYpM1/GBuQvmfIADqWbt3xLL43BCDn2/bXc5PjhohPH7i4o7aNoPJS4zuf9+Dg756bT45jhjt3pMPnGVVcm3pnUbCBXA276Nk8DQP+Gm6ArG5SbOv3ly40rnsLVlfGbzoVOcDdyTEv9kaj7aR1ezjrveBIsz5ydsabUWnrp+vSBHG091t7lSLlmE3w5le7D+w3nfLQdyIEpTLY0Xj4gsmGXFosNZAFqqagseD9xlmBXs2vVzK3t5XCOGGpI+4q/hL74AwIAAAAjAAAAAgAAAE0AAAACAAAAHCoAAAIAAAAAAAEA
< >
Showing 1-1 of 1 comments
Per page: 1530 50