![]() If you would like, drag the pins around so that the ordering is as you like.A dialog will pop up replace the Text ("Part#") with " Half-Adder" Double click on the name of the device (" Part#").Click on the " Generate Symbol" button.The following dialog box will be displayed: Next, select Options > Auto Create Symbol.The only thing that has happened is that you have Pin 's on the left hand side. Click on the circuit that you just created. Select " Create a subcircuit symbol and select an open circuit to attach to it.".Next, select Options > Subcircuit and Part Type. ![]() Choose File > New and select "Device Symbol".Now, we need to create a device out of this circuit. If you end up with an error here, double check that you labeled your ports and not the wires. Right click on the port (not the wire), and select " Name.". Your resulting circuit will look something like this: Connect the gates and the ports with wires.Place an AND-2 and an XOR-2 gate in between the two ports.Before dragging onto the workspace, double click on the name in the list and then click on the left-mouse button.Once they are on the workspace, right click and "Flip Horizontal" OR.Two Port Out 's ( ) on the right of the workspace.Two Port In 's ( ) on the left of the workspace.Under the " Connectors.CLF" library, select and drag onto the workspace:.Please follow these steps to create your own half-adder device: Part 1: Creating Circuit with Ports We can then combine these half-adder devices to make things like full-adders and half-subtractors. ![]() The purpose of learning how to make a device is so that we can turn our half-adder into a "black box" where the gates inside are hidden and all we see is the input and the output. We could from here draw a circuit with two inputs, two gates, and two outputs, but you want to learn something new, right? This is where we will lead into the next section on devices. Here are the truth tables for the gates you know: A B ![]() Because you have a simple truth table (4 rows), you can match the gates with the gates you already know.
0 Comments
Leave a Reply. |