FPGA DEVICES · ENGINEERING · SOURCING Source-linked information. Clear project requirements.

Tutorials

FPGA GPIO LED Resistors: Check the Current at Both Voltage Corners

Published · Updated

Identify whether the FPGA sources or sinks the LED current

Trace the current path on the actual schematic. In a source arrangement, the FPGA output supplies current through the LED and resistor toward ground. In a sink arrangement, the supply feeds the LED and resistor and the FPGA pulls the return low. The active logic level and relevant output-voltage specification differ.

Mojo V3 Spartan-6 development board. This is a different FPGA board from the Basys 3 example; LED connections and resistor values must come from each board schematic.
Mojo V3 Spartan-6 development board. This is a different FPGA board from the Basys 3 example; LED connections and resistor values must come from each board schematic. Photo: SparkFun Electronics from Boulder, USA. Original image, CC BY 2.0.

The Basys 3 rev. C reference manual describes user LEDs connected through 330 ohm resistors and illuminated by a high output. That is a fact about that board, not a universal FPGA resistor recommendation. Board photographs help locate components; the schematic establishes their electrical connection.

Board bring-up sequence: Prepare the board checks before testing this interface.

I/O count and allocation: Reconcile signal count and physical allocation.

Use voltage and resistance corners

For an initial ideal-source estimate, I=(V−Vf)/R. Maximum current uses the largest applied voltage, smallest LED forward voltage and smallest resistor value. With 3.3 V ±5%, Vf from 1.8 to 2.2 V and a 330 ohm ±5% resistor, the estimate spans about 2.70 to 5.31 mA. This deliberately simple calculation does not model GPIO voltage droop.

Ideal LED current cornersIdeal LED current cornersMinimum(3.135 − 2.2) / 346.5Result2.70 mAMaximum(3.465 − 1.8) / 313.5Result5.31 mA; GPIO drop excluded
Ideal LED current corners. Explanatory diagram; conditions and limitations are in the adjacent text.

Check guaranteed VOH or VOL at the intended current, the selected I/O standard, drive setting and applicable device limits. Also check LED current and resistor power. A drive-strength attribute is not an ideal constant-current source. Several simultaneously lit LEDs add load and switching activity to the bank and supply system.

External input/output timing: Include the external path in the timing budget.

Clock-domain synchronization: Keep asynchronous sampling separate from interface logic.

Validate brightness and power with the actual circuit

Use the calculation to identify a sensible evaluation range, then inspect the real output voltage and current. Include temperature and assembly variants when they matter. If the required current cannot be supported with adequate logic levels and device margin, evaluate an external driver instead of increasing the FPGA drive setting blindly.

Source and sink need different checksSource and sink need different checksSource currentFPGA → R → LED → groundSink currentsupply → R → LED → FPGADevice evidenceVOH / VOL at intended current
Source and sink need different checks. Explanatory diagram; conditions and limitations are in the adjacent text.

For multiplexed or PWM LEDs, distinguish peak current from average current and verify pulse conditions against the LED and driver specifications. The calculator below estimates continuous current corners. It does not approve a pulsed overcurrent condition or determine perceived brightness. Save the direction, device limits and chosen resistor with the BOM review.

Power-on test record: Retain the power states and test sequence.

Use the equations and review steps above. Interactive checks require JavaScript.
Watch the short ideal led current corners sequenceIdeal LED current corners step sequence

Save the check result with your exact device, board revision and unresolved conditions. Discuss the interface requirements when the remaining issue needs a board or implementation review. Opening this link does not submit the worksheet.

Sources and example scope

Documentation checked 17 November 2026. Worked values are illustrative calculations. No board measurement or Vivado implementation run is claimed. The worksheet checks entered assumptions and does not inspect your schematic or project files.

Back to Tutorials

Related evidence and next tasks

Continue the task with the relevant source scope. These reading paths do not establish interchangeability or current supply.

Source addresses and citation trail

Full source addresses are retained below. Read each citation with its document revision, page, table and applicability conditions above.

  1. https://commons.wikimedia.org/wiki/File:Mojo_v3_FPGA_Development_Board_(9303578174).jpg
  2. https://creativecommons.org/licenses/by/2.0
  3. https://digilent.com/reference/_media/reference/programmable-logic/basys-3/basys3_rm.pdf
  4. https://docs.amd.com/v/u/en-US/ds181_Artix_7_Data_Sheet