Building Circuit Simulations within CircuitVerse
In this section, we will build a circuit of a full adder exploring the different stages of building a live circuit within the CircuitVerse 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
Although the CircuitVerse simulator saves the circuit periodically and any unsaved circuits may be recovered from the browsers memory, the user must create an account and save the CircuitVerse project online for future reference.
Follow the below steps to create a new project and save the circuit online:
-
Navigate to https://circuitverse.org/.
-
Click on the Launch Simulator button to launch the simulator. Refer Figure 7.1.
Figure 7.1 -
Navigate to the Quick Access Panel. Click on either Save Online icon or Save Offline icon to receive the** Enter Project Name**: pop-up window for saving the circuit. Refer Figure 7.2.
NOTE: If a project file is saved online, it is available on the dashboard. Alternatively, any project file that is saved offline, is downloaded to your browser’s local storage.
Figure 7.2 -
If the project is saved online, you will be directed to the Edit Project details page for sharing more information about the project (refer Figure 7.3).
Figure 7.3Watch this video for more information on the different fields that can be used for sharing more information about the project.
.
-
Click Update Project to save the project details and return back to the CV simulator window. Refer Figure 7.4.
Figure 7.4
Create Circuit Using CircuitVerse Simulation
After successfully creating a CircuitVerse user account, follow the below steps for creating a circuit of a half adder within the CircuitVerse simulator:
-
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.
Figure 7.5 -
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.
Figure 7.6 -
Select a circuit element. It will be highlighted in yellow as shown in Figure 7.7.
-
Navigate to the PROPERTIES panel. Edit the Label parameter to add a label for the selected circuit element. Refer Figure 7.7.
Figure 7.7 -
Repeat steps 3 and 4 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:
-
Navigate to the PROPERTIES panel.
-
Click on the Edit Layout button to display the circuit layout for the built circuit (refer Figure 7.8).
Figure 7.8 -
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.
Figure 7.9 -
Change the desired settings of the LAYOUT panel.
-
Click Save to save the layout settings as shown in Figure 7.10.
Figure 7.10
Insert Subcircuit
Subcircuits can be nested across other circuit tabs as a CV simulation or as a Verilog module. This section lists the different steps for inserting subcircuits generated as a CV simulation or as a Verilog code.
a. Insert Subcircuit as a CircuitVerse Simulation
Follow the below steps for building a full adder circuit using two half-adder subcircuits:
-
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.
Figure 7.11 -
Enter a circuit name in the text field as shown in Figure 7.11.
-
Click OK to save the circuit name. Refer Figure 7.12.
Figure 7.12 -
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.
- Select the circuit that you wish to insert. Refer Figure 7.14.
-
Click the Insert SubCircuit button to insert the subcircuit within the Full Adder tab (refer Figure 7.14).
-
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.
-
Refer to Figure 7.15 and complete the wiring connections of the full adder circuit.
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:
-
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.
Figure 7.16 -
Enter a circuit tab name in the text field. Refer Figure 7.16.
-
Click **OK **to launch the Verilog code interface window as shown in Figure 7.17.
Figure 7.17 -
Enter the desired Verilog code in the module interface. Refer Figure 7.18.
Figure 7.18 -
Click on the Save Code button to receive the message that the code has been saved successfully. Refer Figure 7.19.
Figure 7.19
Annotate Circuit
Follow the below steps to annotate the final circuit diagram:
-
Navigate to the Misc section of the CIRCUIT ELEMENTS panel as shown in Figure 7.20.
Figure 7.20 -
Drag the Text Tool element on the canvas as shown in Figure 7.21.
Figure 7.21 -
Navigate to the PROPERTIES panel to edit the Label: text field as shown in Figure 7.21.
-
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 .
Figure 7.22