Pin assignment and Constraint generation
In this section, you will make pin assignments for all the signals from the design which interact with outer world. Before making pin assignments, perform the following steps:
- Choose Processing > Start > Start Analysis & Synthesis in preparation for assigning pin locations. Click OK in the message window that appears after analysis and elaboration completes.
- To make pin assignments that correlate to the hex_input[3:0] input pins and seven_seg_out[6:0] output pins, perform the following steps: Choose Assignments > Pin Planner, which opens the Pin Planner, a spreadsheet-like table of specific pin assignments. The Pin Planner shows the designs pins.
- In the Location column next to each of the node names, add the coordinates(pin numbers) as shown from the tables below for the actual values to use with your DE10-Lite board(check manual for any particular pins you are looking for based on your design usage). Double-click in the Location column for any of the pins to open a drop-down list and type the pin number shown in the table. Alternatively, you can select the pin from a drop-down list. For example, if you type C12 and press the Enter key, the Quartus software fills in the full PIN_C12 location name for you. The software also keeps track of corresponding FPGA data such as the I/O bank and VREF Group. Each bank has a distinct color, which corresponds to the top-view wire bond drawing in the upper right window.
- The design.qsf file should reflect these pin assignments once you have set them on pin planner.
- set_location_assignment PIN_C14 -to seven_seg_out[0]
- set_location_assignment PIN_E15 -to seven_seg_out[1]
- set_location_assignment PIN_C15 -to seven_seg_out[2]
- set_location_assignment PIN_C16 -to seven_seg_out[3]
- set_location_assignment PIN_E16 -to seven_seg_out[4]
- set_location_assignment PIN_D17 -to seven_seg_out[5]
- set_location_assignment PIN_C17 -to seven_seg_out[6]
- set_location_assignment PIN_C10 -to hex_input[0]
- set_location_assignment PIN_C11 -to hex_input[1]
- set_location_assignment PIN_D12 -to hex_input[2]
- set_location_assignment PIN_C12 -to hex_input[3]