.csv File for GPIO Blocks
For larger designs with lots of GPIO, it can be simpler to use a spreadsheet application to make assignments. The Resource Assigner allows you to import and export GPIO block assignments using a comma separated values (.csv) file. The .csv file includes the package pin and pad name, the instance name, and the mode. You can use this method for any type of GPIO, including LVDS pins used as GPIO or HSIO pins used as GPIO.
| Package Pin-Pad Name | Instance Name | Mode |
|---|---|---|
| G5-GPIOL_00 | ||
| J4-GPIOL_01_SS_N | ||
| H4-GPIOL02_CCK | ||
| G4-GPIOL_03_CDI4 | led[0] | output |
| F4-GPIOL04_CDI0 | led[1] | output |
| J3-GPIOL_05_CDI5 | rstn | input |
| H3-GPIOL_06_CDI1 | ||
| ... | ||
| 1 | led[6] | inout |
When working with the .csv file:
- Add your assignments to the Instance Name and Mode columns.
- Do not modify the package pin-pad names.
- For the mode, specify: input, output, inout, clkout, or none
Note: You cannot make advanced settings such as alternate connections or
registering. To make these settings, use the Block Editor.
When the software reads an imported .csv file, it performs a
comparison between the .csv assignments and the original GPIO block
assignments and reports any issues. If the software finds warnings, it displays them but
allows you to finish the import. If it finds errors, it will not finish the import. When
importing, the software:
- Deletes instances that you removed
- Creates newly defined instances
- Replaces instances you renamed with the new name
1 Unassigned instances have a blank field for the Package
Pin-Pad Name column.