| Adding I/O | ||
| Links Mentioned |
![]() Next, add two input symbols, two output symbols, and connect them like this:
If you need room, you can drag a rectangle around your drawing and then drag everything to a new position. We need to name the pins, so double click the PIN_NAME labels and change their names. Set the top input to B0, and the other input to B1. Change the top output to SUM and the bottom output to carry. Your final result should look like this:
Finally, you need to assign these pins to the correct I/O pins on the Post-It board. If you are just simulating, you can skip this step. If you have another board, you'll need to change your pin assignments accordingly. I'll use switch 1 for B0, and switch 2 for B1. The outputs will go to LED0_A (SUM) and LED0_D (CARRY). To make these changes, right click on a pin and select Assign | Pin/Location/Chip. That shows this dialog:
The problem is, you can't pick any options. That's because you haven't assigned a device for this design yet. So click on Assign Device:
Be sure Device Family is set to MAX3000A. You need to pick EPM3128ATC100-7 in the Devices box. However, you won't be able to find this device until you uncheck "Show Only Fastest Speed Grades". Once you've made the correct choice, click OK.
Now you can set B0 to be pin 52 (which is switch 1 on the Post-It board). Click OK. Now right click on the B1 input and set it to pin 54 (you don't need to assign the device again). Finally, set the SUM output to pin 1 and the carry output to pin 6. The schematic shows these assignments:
And you are done! Before you leave this frame, press Control+K to save and check your design. You should get 0 errors and 0 warnings. If not, fix your problems before you continue. Common errors occur when you fail to connect items, or have multiple connections made incorrectly. © 2002 by AWC. All Rights Reserved. |