BOOLR Digital Logic Simulation | D Flip-Flop logic simulation
utopian-io·@juecoree·
0.000 HBDBOOLR Digital Logic Simulation | D Flip-Flop logic simulation
<center></center> #### What is D Flip-Flop? |In the last discussion, we talk about the [ RS flip-flop](https://utopian.io/utopian-io/@juecoree/boolr-digital-logic-simulator-or-rs-flip-flop-logic-simulation). For this tutorial, we will do D Flip-Flop configuration. [D Flip-Flop](https://www.electronics-tutorials.ws/sequential/seq_1.html) operates in the same manner of a regular RS flip-flop with an addition of an inverter. It consists of the basic RS flip-flop circuit with an added NOT gate on the input terminal. The addition of a NOT gate ensures that the input will never be equal in any instance. A D flip-flop is develop to eliminate the undesirable condition of the indeterminate state in the RS Flip-flop. The D flip-flop has only two input as compared to three input in the RS flip-flop. The inputs of the D flip-flop are D and CP, which represents the regular input value and the clock respectively. It is constructed with a regular RS Flip-flop; and, a NOT gate on one of the inputs of the connected NAND gate | |:---:| #### Intended Learning Outcome (What Will I Learn?) <hr> After reading and participating in this tutorial, the readers should be able to: - learn how to implement an D FLIP-FLOP logic circuit; - create a digital logic circuit for DFLIP-FLOP simulation ; and, - simulate the created D FLIP-FLOP simulation digital logic circuit. #### Requirements <hr> To be able to follow this tutorial, you should have the following tools at hand: - A desktop PC or laptop with Windows (7, 8, 10) operating system; and, - A BOOLR latest release version which you can download at its Github repository [GGBRW/BOOLR](https://github.com/ggbrw/boolr/releases) or vist its website at [boolr.me](boolr.me) #### Difficulty <hr> - Intermediate #### Part 1: Setting up a new project the BOOLR app. <hr> 1 | Open BOOLR.exe from the downloaded latest release zip file of the app. <center> </center> 2 | Create a new project by clicking NEW BOARD. <center> </center> Then, you will be directed to Create New Board where you are ask to type in the name of the new board. <center></center> Type in the board name. For this tutorial, lets have "D Flip-Flop " as board name. <center> </center> 3 | Click  to finalize setting up a new project. <center> </center> | For the basic operations and functions of the BOOLR Digital Logic Simulation, you are advise to read the [Introduction to BOOLR](https://utopian.io/utopian-io/@juecoree/boolr-digital-logic-simulator-or-1-introduction-to-boolr-digital-logic-simulation). | |:---:| #### Part 2: Creating a D Flip-Flop Digital Logic Circuit in BOOLR <hr> Now, we create a circuit in the BOOLR for D Flip-Flop. 1 | We start by selecting components needed in the simulation. Basically, we will need to setup four NAND gates. Hence, the BOOLR simulator doen't have a pre-configured NAND gate, you need to create the four sets of [NAND gate](https://utopian.io/utopian-io/@juecoree/boolr-digital-logic-simulator-or-1-introduction-to-boolr-digital-logic-simulation)Select AND gate by clicking . Add the four sets of AND gate in the worksheet, simply click at where you want the to add the component. Make sure that is properly space from each other. <center> </center> 2 | Add NOT gate by clicking . Place a NOT gates after the each AND gates excluding the right most one. Make sure not to place it directly besides the AND gate hence it may not be connected at all, and might not have an ample room for the connecting wire. <center></center> 4 | Select input devices from  . From the menu click on INPUT. <center> </center> 6 | Add an input before the pair of upper-left AND gate. <center> </center> 7 | Add an input clock in below the added inputs. Enable this component by clicking on . From the drop-down option, select Clock. <center> </center> 8 | Once you've added the clock, a time delay editor appears. Set the time delay to your preference. For this tutorial, I will set the time delay to 1000 ms. The clock will set the time response of enabling the two other inputs. <center> </center> 9 | Add two output after the NOT gate at the right most AND gates. To add the component, you need first to enable and click at the location where you want it to add. <center></center> 8 | Connect AND and NOT gate to configure a NAND gate. <center> </center> 9 | Add a NOT gate to one terminal of NAND(b) this will inverse the value of input D. <center></center> 10 | The addition of this NOT gate ensures that R and S values in an RS Flip-Flop should not be equal at any instance. This is done by having one input D connected to NAND(a) and NOT gates. <center> </center> 11 | Connect clock pulse CP to NAND(a) and NAND(b) gates. As what I have discussed in my last tutorial, the clock is the enabling factor for the input D. Connecting CP, in such manner, enables the input values for both NAND(a) and NAND(b). <center> </center> 12 | NAND(a) and NAND(b) ouput is feed to NAND(c) and NAND(d) respectively. <center></center> 13 | Connect the output to the NAND(c) and NAND(d). <center> </center> 14 | Connect the output terminal for NAND(c) to the input of NAND(d). This is to set a dependency of the operation of the NAND gates through a latch to each ouputs. <center> </center> 15 | Connect the output terminal for NAND(d) to the input of NAND(c). <center></center> ### Part 3: Simulation of the created D Flip-FLop <hr> | How does D FLIP-FLOP works?| |:---:| | In a [D Flip-Flop](https://www.electronics-tutorials.ws/sequential/seq_4.html), the D input goes directly to the S ( NAND(a) ) input and a complementary value goes to the R ( NAND(b) ) input. For example, D has a value equal to 0. So, NAND(a) will have an input equal to 0 and NAND(b) equal to 1. As long as the input D is 0, the NAND(a) and NAND(b) output are at the high (1) level. THus, the circuit cannot change state aside from the value of input D. The input is sampled when CP becomes 1, the Q ( NAND(c) ) output goes 1. IF D is 1, the Q ( NAND(c) ) output goes to 1, making the circuit at set state. If D is 0, output Q ( NAND(c) ) goes to 0 and the circuit returns to clear state. | <hr> 1 |Verify the simulation button if it is play or paused. Pause button indicates simulation is going on, while Play button signifies the simulation is paused.By default, the BOOLR app is always on simulation. <center> </center> 2 | Verifying our discussion earlier, input the values. Observe the result at the OUTPUT. To change the values of input, click on the number inside the input symbol. <center> </center> #### Result of Simulation: Watch the video clip below for the actual simulation. <center>https://youtu.be/jrzLlkgL7fg</center> #### Curriculum <hr> You can browse the other curriculum for **BOOBLR Digital Logic Simulator**. - [Introduction to BOOLR Digital Logic Simulation](https://utopian.io/utopian-io/@juecoree/boolr-digital-logic-simulator-or-1-introduction-to-boolr-digital-logic-simulation) - [Half Adder](https://utopian.io/utopian-io/@juecoree/boolr-digital-logic-simulator-or-2-half-adder-2-bit-adder-logic-circuit-simulation) - [Full Adder](https://utopian.io/utopian-io/@juecoree/boolr-digital-logic-simulator-or-3-full-adder-logic-circuit-simulation) - [Half Subtractor](https://utopian.io/utopian-io/@juecoree/boolr-digital-logic-simulator-or-4-half-subtractor-logic-simulation) - [Full Subtractor](https://utopian.io/utopian-io/@juecoree/booblr-digital-logic-simulator-or-full-subtractor-logic-simulation) - [Exclusive-OR implemented with AND-NOT-OR gates](https://utopian.io/utopian-io/@juecoree/boolr-digital-logic-simulator-or-exclusive-or-implementation-using-and-or-not-gates) - [Exclusive-NOR implemented with AND-NOT gates](https://utopian.io/utopian-io/@juecoree/boolr-digital-logic-simulator-or-exclusive-nor-implented-with-and-not-gates) - [Flip-Flop](https://utopian.io/utopian-io/@juecoree/boolr-digital-logic-simulator-or-flip-flop-logic-simulation) - [RS Flip-Flop](https://utopian.io/utopian-io/@juecoree/boolr-digital-logic-simulator-or-rs-flip-flop-logic-simulation) <br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@juecoree/boolr-digital-logic-simulation-or-d-flip-flop-logic-simulation">Utopian.io - Rewarding Open Source Contributors</a></em><hr/>
👍 steemitstats, mahdif60, team, steemph.cebu, ted7, lykaislove, japh, leryam12, queenjventurer, hillaryaa, smaeunabs, namranna, rafael.espina, juecoree, tedzwhistle, sorenkierkegaard, themanualbot, itinerantph, jassennessaj, jamiz, dwaeji-aizelle, rfece143, fernwehninja, marysent, thinkingmind, luigi-tecnologo,