Skip to main content

Building Circuit Simulations within LogicPlot

In this section, we will build a circuit of a full adder exploring the different stages of building a live circuit within the LogicPlot simulator. We will start off by creating a circuit of a half adder and insert it as a subcircuit to create a 4-bit full adder.

Create and Save New Project

The LogicPlot simulator backs up the circuit you are working on periodically and can restore it with Project → Recover Project, but you should still save your project under a name so that you can reopen it later.

Follow the below steps to create a new project and save it:

  1. Open the LogicPlot home page and click on the Launch Simulator button to launch the simulator. Refer Figure 7.1.

    drawing

    Figure 7.1
  2. Navigate to the Quick Access Panel and click on the Save icon, or choose Project → Save Offline. The Enter Project Name pop-up window is displayed. Refer Figure 7.2.

    NOTE: A project saved this way is stored in your browser's local storage and listed under Project → Open Offline. To keep a copy as a file, or to move a project to another machine, use Project → Export as File.

    drawing

    Figure 7.2
  3. Enter a name and click OK. The project name now appears in the menu bar (refer Figure 7.3).

    drawing

    Figure 7.3
  4. To share the project or keep a backup, choose Project → Export as File and download the .cv file (refer Figure 7.4). Anyone can open it with Project → Import Project.

    drawing

    Figure 7.4

Create Circuit Using LogicPlot Simulation

Follow the below steps for creating a half adder circuit within the LogicPlot simulator:

  1. Navigate to the CIRCUITS ELEMENTS panel. Identify the relevant circuit elements and drop them on the canvas. If required, you may search for an element in the search bar. Refer Figure 7.5.

    drawing

    Figure 7.5
  2. Connect the circuit elements by clicking on one node and dragging the mouse to the other node. Refer to Figure 7.6 for the final circuit connection.

    TIP: Hold down Ctrl key. Click on a node and simply move the cursor to the final node to which it needs to be attached. Clicking on the wire will insert a node at that position. Upon reaching the final node, leave the Ctrl key and click on the node to end the wire.

    drawing

    Figure 7.6
  3. Select a circuit element. It will be highlighted in yellow as shown in Figure 7.7.

  4. Navigate to the PROPERTIES panel. Edit the Label parameter to add a label for the selected circuit element. Refer Figure 7.7.

    drawing

    Figure 7.7
  5. Repeat steps 7 and 8 to add labels for the remaining circuit elements as shown in Figure 7.7.

Edit Circuit Layout

Before inserting a circuit as a subcircuit, the circuit layout must be edited to prevent any loss of wiring connections across different nodes or ports in the integrated circuit schematic may be lost.

Follow the below steps to view and edit the circuit layout of the half-adder circuit:

  1. Navigate to the PROPERTIES panel.

  2. Click on the Edit Layout button to display the circuit layout for the built circuit (refer Figure 7.8).

    drawing

    Figure 7.8
  3. The Edit Layout screen displays the page as shown in Figure 7.9. The circuit is placed inside a back box. The LAYOUT panel displays different options for editing the layout of the circuit.

    drawing

    Figure 7.9
  4. Change the desired settings of the LAYOUT panel.

  5. Click Save to save the layout settings as shown in Figure 7.10.

    drawing

    Figure 7.10

Insert Subcircuit

Subcircuits can be nested across other circuit tabs as a LogicPlot simulation or as a Verilog module. This section lists the different steps for inserting subcircuits generated as a LogicPlot simulation or as a Verilog code.

a. Insert Subcircuit as a LogicPlot Simulation

Follow the below steps for building a full adder circuit using two half-adder subcircuits:

  1. Click on the add tab icon (refer Figure 7.11) displayed in the circuit tab section. Alternatively, you may also click on NewCircuit+ selection in the Circuit drop-down menu. As shown in Figure 7.11, the Enter circuit name: pop up window is displayed.

    drawing

    Figure 7.11
  2. Enter a circuit name in the text field as shown in Figure 7.11.

  3. Click OK to save the circuit name. Refer Figure 7.12.

    drawing

    Figure 7.12
  4. Navigate to Circuit drop-down menu to select Insert SubCircuit from the drop down menu. As shown in Figure 7.13, the Insert SubCircuit pop up window is displayed.

drawing

Figure 7.13
  1. Select the circuit that you wish to insert. Refer Figure 7.14.

drawing

Figure 7.14
  1. Click the Insert SubCircuit button to insert the subcircuit within the Full Adder tab (refer Figure 7.14).

  2. Repeat the steps from 15 to 20 to add more sub-circuits to your circuit.

    TIP: Duplicate any circuit by selecting the circuit (CTRL + A), copy the circuit (CTRL + C) and paste the circuit (CTRL + V) in the desired tab or another project file.

  3. Refer to Figure 7.15 and complete the wiring connections of the full adder circuit.

    drawing

    Figure 7.15

b. Insert Circuit Using Verilog Module

If required, a user can also insert a Verilog module as a subcircuit. Follow the below steps to insert a circuit layout constructed using a verilog module:

  1. Navigate to Circuit drop-down menu to select New Verilog Module from the drop down menu. As shown in Figure 7.16, the Enter circuit name pop up window is displayed.

    drawing

    Figure 7.16
  2. Enter a circuit tab name in the text field. Refer Figure 7.16.

  3. Click **OK **to launch the Verilog code interface window as shown in Figure 7.17.

    drawing

    Figure 7.17
  4. Enter the desired Verilog code in the module interface. Refer Figure 7.18.

    drawing

    Figure 7.18
  5. Click on the Save Code button to receive the message that the code has been saved successfully. Refer Figure 7.19.

    drawing

    Figure 7.19

Annotate Circuit

Follow the below steps to annotate the final circuit diagram:

  1. Navigate to the Misc section of the CIRCUIT ELEMENTS panel as shown in Figure 7.20.

    drawing

    Figure 7.20
  2. Drag the Text Tool element on the canvas as shown in Figure 7.21.

    drawing

    Figure 7.21
  3. Navigate to the PROPERTIES panel to edit the Label: text field as shown in Figure 7.21.

  4. Repeat steps 24 to 26 to add more annotation elements. In Figure 7.22, a Rectangle Tool element has been added to highlight the structural relationship across different elements .

    drawing

    Figure 7.22