LED - muneeb-mbytes/FPGABoard_edgeSpartan6 GitHub Wiki

NET "led<0>" LOC = p33; #LSB

NET "led<1>" LOC = p32;

NET "led<2>" LOC = p30;

NET "led<3>" LOC = p29;

NET "led<4>" LOC = p27;

NET "led<5>" LOC = p26;

NET "led<6>" LOC = p24;

NET "led<7>" LOC = p23;

NET "led<8>" LOC = p138;

NET "led<9>" LOC = p143;

NET "led<10>" LOC = p142;

NET "led<11>" LOC = p137;

NET "led<12>" LOC = p141;

NET "led<13>" LOC = p134;

NET "led<14>" LOC = p140;

NET "led<15>" LOC = p139; #MSB

NET "signal_name " LOC = <pin_name>;

  • NET "signal_name" specifies the name of the signal connected to the pin. In this case, the signal name is "led", where "n" is the index of the LED from 0 to 15.

  • LOC = <pin_name> specifies the physical location of the pin on the FPGA device. The pin_name corresponds to the pin number or name on the specific FPGA device.

For example:

NET "led<0>" LOC = p33; #LSB assigns the first LED (LSB) to pin p33 on the FPGA device.

NET "led<15>" LOC = p139; #MSB assigns the last LED (MSB) to pin p139 on the FPGA device.

⚠️ **GitHub.com Fallback** ⚠️