![]() Check it out.įinally, test this new part by dragging it from the library mylib.clfto a new circuit design window, attaching probes and switches in the usual way, and making sure that it gives the right output for each different input combination. The example developed above is named FullAdder in the library mylib.clf on the CS220 (Tucker) server. In this dialog box (shown below), select the second button option. This will unite the part that you created with the circuit shown above by matching the part's pin names with the circuit's port names.īe sure to name and save this completed device in the library mylib.clfby selecting the File -> Save Part As. Keeping this window open, return to the device editor where your part designappears and select the DevEdit -> Subcircuit & Part Typemenu item. For the full adder shownbelow, note that the input ports are named A, B, and Cin, and the outputports are named Sum and Cout. ![]() In this step, be careful to name the ports themselves, and not the wires they are connected to. The portsare given names identical with those of the input and output pins in yourpart design. ![]() In preparation for uniting the circuit with a part, these portsare attached to the input and output wires in that circuit. In the CONNECT.CLF library, there are connectors called "port in" and "portout". For the full adder, its circuit is shown below: Now open the circuit that will be associated with this part. For the FullAdderpart, there are three inputs (A, B, and Cin) and two outputs (Sum and Cout), as shown below. Starting with the part design that you made following the tutorial, you should have named each of the input and output pins. Without an underlyingcircuit, of course, a part has no meaning. Below is some additional information,not in the tutorial, that you need to know to attach a circuit design toa part you have made and added to your library. When you have completed this, rename the library mylib.clf that youcreated during the tutorial as yourname.clf, where yourname is your login name. Part 1 - Creating Your Own Device Library and New Partsįollow the LogicWorks tutorial on pages 84-91 of the handout. CS 220 - Lab 3 CS 220 - Lab 3: Computer Arithmetic - Designing an ALUĭue 5:00pm OctoGeneral Lab Goals This lab provides an opportunity to design and package an 8-bit ALU and to explore some of the fundamental properties of integer and floating point computer arithmetic.
0 Comments
Leave a Reply. |