Custom Integrated Circuits

A custom integrated circuit allows you to package up a complex subset of your document into a single reusable component, similar to the flip-flops.

Example: Create a Custom Half Adder

In order to better demonstrate how this works, the following section will walk you through creating a custom integrated circuit for a half adder. A live demonstration of a half adder appears below:

Screenshot of the Create Integrated Circuit dialog

You should now see the Create Integrated Circuit window. An error message will be displayed when your selection does not contain at least one toggle switch and at least one light bulb. Likewise, an error will be displayed when you fail to set the Export Name on one or more of the toggle switches or light bulbs.

Your new custom integrated circuit will appear in the components list on the left-hand side of the main Logicly window. You will find a new category at the bottom of the list, named Custom. To use the new Half Adder circuit, simply drag it into the editor and connect to the inputs and outputs, just like any other component.

Delete a Custom Integrated Circuit

Find the custom integrated circuit in the component list on the left of Logicly's main window. It should appear in the Custom category. Right-click the icon for your custom circuit, and choose Delete Integrated Circuit.

Screenshot of the Delete Integrated Circuit menu item

If the custom component being deleted is being used in the current document, or if another custom component includes it in the design, an error message will be displayed to explain that the custom circuit cannot be deleted.

View the Contents of a Custom Integrated Circuit

After creating a custom integrated circuit, you may view its design, but it cannot be edited. Find the custom integrated circuit in the components list under the Custom category. Right click and select View Integrated Circuit... from the context menu. The parent document will be temporarily hidden, and your custom integrated circuit will be displayed instead. In this view you can pan and zoom to navigate around your circuit and all components are fully functional. This is a separate simulation that is completely isolated from your main document, so there will be no consequences if you choose to interact with the components. When you are finished, click the Close button in the upper left corner of the main Logicly window to return to the parent document.

Screenshot of the custom integrated circuit viewer

Alternatively, to view the contents of a custom integrated circuit, you can double click an instance of it on the editing surface.

Since it is not possible to edit a custom integrated circuit after you created, a Copy to Clipboard button is available when you view a circuit's contents. You can use this to paste the contents back into the parent document to edit them and create a new custom integrated circuit.

Sharing Custom Integrated Circuits Among Multiple Documents

There are two ways to share custom integrated circuits from one document with another. The easiest way to do it is simply to select any integrated circuit on the editing surface in the first document, copy it to the clipboard, and paste it into a second document. The custom integrated circuit will be added automatically to the components list, and you can reuse it anywhere in the second document as if you had originally created it there.

If you prefer to manage a set of integrated circuits in a separate external file, you can export your components list to an Integrated Circuit Library file.

Screenshot of the Export Integrated Circuit Library menu item

Open the File menu and choose Export Integrated Circuit Library.... A save file dialog will open, and when you select a location, a logiclylib file containing all of the current document's integrated circuits will be saved to your computer.

As you can see in the screenshot above, you can also select Import Integrated Circuit Library... from the File menu. When you select a logiclylib file from your computer, all of the custom integrated circuits that it contains will be added to the current document. If any of the custom integrated circuits from the library already exist in the current document, Logicly will not create duplicates. Each new custom integrated circuit that you create is given a unique ID that identifies it the same way in every document that you add it to.

« Back to Help Contents