// // Coolrunner-II Starter Board I/O constraints // Copyright 2019 Joey Herguth // // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of // the Software, and to permit persons to whom the Software is furnished to do so, // subject to the following conditions: // // The above copyright notice and this permission notice shall be included in all // copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // // I have not tested all of the code, so it is quite possible that there are errors // in the constraints. // // For documentation and schematics visit: // https://store.digilentinc.com/coolrunner-ii-cpld-starter-board-limited-time/ // // Archived: // https://web.archive.org/web/20190118223605/https://store.digilentinc.com/coolrunner-ii-cpld-starter-board-limited-time/ // // Last edit 8/13/2019 // //// Clock //NET CLK LOC=P38; //// Buttons //NET BTN0 LOC=P143; //NET BTN1 LOC=P94; //// Switches //NET SW0 LOC=P39; //NET SW1 LOC=P124; //// LEDs //NET LED0 LOC=P69; //NET LED1 LOC=P68; //NET LED2 LOC=P66; //NET LED3 LOC=P64; //// Seven Segment Display Segments //NET SEGA LOC=P56; //NET SEGB LOC=P53; //NET SEGC LOC=P60; //NET SEGD LOC=P58; //NET SEGE LOC=P57; //NET SEGF LOC=P54; //NET SEGG LOC=P61; //NET DP LOC=P59; //// Seven Segment Anodes //NET AN0 LOC=P130; //NET AN1 LOC=P129; //NET AN2 LOC=P128; //NET AN3 LOC=P126; //// One-Wire EEPROM //NET MEM LOC=P125; //// Port 1 //NET P1_0 LOC=P10; // Pin J1.1 //NET P1_1 LOC=P7; // Pin J1.2 //NET P1_2 LOC=P5; // Pin J1.3 //NET P1_3 LOC=P3; // Pin J1.4 //NET P1_4 LOC=P9; // Pin J1.7 //NET P1_5 LOC=P6; // Pin J1.8 //NET P1_6 LOC=P4; // Pin J1.9 //NET P1_7 LOC=P2; // Pin J1.10 //// Port 2 //NET P2_0 LOC=P142; // Pin J2.1 //NET P2_1 LOC=P139; // Pin J2.2 //NET P2_2 LOC=P136; // Pin J2.3 //NET P2_3 LOC=P134; // Pin J2.4 //NET P2_4 LOC=P140; // Pin J2.7 //NET P2_5 LOC=P138; // Pin J2.8 //NET P2_6 LOC=P135; // Pin J2.9 //NET P2_7 LOC=P133; // Pin J2.10 //// Port 3 //NET P3_0 LOC=P119; // Pin J3.1 //NET P3_1 LOC=P117; // Pin J3.2 //NET P3_2 LOC=P115; // Pin J3.3 //NET P3_3 LOC=P113; // Pin J3.4 //NET P3_4 LOC=P118; // Pin J3.7 //NET P3_5 LOC=P116; // Pin J3.8 //NET P3_6 LOC=P114; // Pin J3.9 //NET P3_7 LOC=P112; // Pin J3.10 //// Port 4 //NET P4_0 LOC=P104; // Pin J4.1 //NET P4_1 LOC=P102; // Pin J4.2 //NET P4_2 LOC=P100; // Pin J4.3 //NET P4_3 LOC=P97; // Pin J4.4 //NET P4_4 LOC=P103; // Pin J4.7 //NET P4_5 LOC=P101; // Pin J4.8 //NET P4_6 LOC=P98; // Pin J4.9 //NET P4_7 LOC=P96; // Pin J4.10 //// GPIO Pins //// Note that GPIO pin numbers correspond to the pins on the schematic, while the header pin numbers correspond to the pins on the physical board. //NET GPIO1 LOC=P92; // Header Pin 4 //NET GPIO2 LOC=P91; // Header Pin 5 //NET GPIO3 LOC=P88; // Header Pin 6 //NET GPIO4 LOC=P87; // Header Pin 7 //NET GPIO5 LOC=P86; // Header Pin 8 //NET GPIO6 LOC=P85; // Header Pin 9 //NET GPIO7 LOC=P83; // Header Pin 10 //NET GPIO8 LOC=P82; // Header Pin 11 //NET GPIO9 LOC=P81; // Header Pin 12 //NET GPIO10 LOC=P80; // Header Pin 13 //NET GPIO11 LOC=P79; // Header Pin 14 //NET GPIO12 LOC=P78; // Header Pin 15 //NET GPIO13 LOC=P77; // Header Pin 16 //NET GPIO14 LOC=P76; // Header Pin 17 //NET GPIO15 LOC=P75; // Header Pin 18 //NET GPIO16 LOC=P74; // Header Pin 19 //NET GPIO17 LOC=P71; // Header Pin 20 //NET GPIO18 LOC=P70; // Header Pin 21 //NET GPIO19 LOC=P52; // Header Pin 22 //NET GPIO20 LOC=P51; // Header Pin 23 //NET GPIO21 LOC=P50; // Header Pin 24 //NET GPIO22 LOC=P49; // Header Pin 25 //NET GPIO23 LOC=P48; // Header Pin 26 //NET GPIO24 LOC=P46; // Header Pin 27 //NET GPIO25 LOC=P45; // Header Pin 28 //NET GPIO26 LOC=P44; // Header Pin 29 //NET GPIO27 LOC=P13; // Header Pin 30 //NET GPIO28 LOC=P14; // Header Pin 31 //NET GPIO29 LOC=P15; // Header Pin 32 //NET GPIO30 LOC=P16; // Header Pin 33 //NET GPIO31 LOC=P17; // Header Pin 34 //NET GPIO32 LOC=P18; // Header Pin 35 //NET GPIO33 LOC=P105; // Header Pin 36 //NET GPIO34 LOC=P106; // Header Pin 37 //NET GPIO35 LOC=P107; // Header Pin 38 //NET GPIO36 LOC=P110; // Header Pin 39 //NET GPIO37 LOC=P111; // Header Pin 40