FPGA & adaptive SoC databook · online editionRev. 2026.10

EP4S40G2

AlteraStratix IV

The EP4S40G2 is a Stratix IV FPGA from Altera, built on a 40 nm process. It provides 91,200 adaptive logic modules (ALMs) (228,000 logic elements (LEs)), 182,400 flip-flops, 13.9 Mb of block RAM and 1,288 18×18 multipliers. It offers up to 646 user I/O pins and 36 XCVR/XCVR/XCVR transceivers at up to 11.3 Gb/s, with hard PCI Express Gen2 blocks. It comes in a single package, the F1517 (40 × 40 mm). Temperature grades: industrial. Designs are built with Altera Quartus Prime.

91,200ALMs
1,28818×18 multipliers
13.9 MbBlock RAM
646Max. user I/O
36Transceivers (11.3 Gb/s)

Specifications

VendorAltera
FamilyStratix IV
SeriesStratix
Process40 nm
Configuration memorySRAM
Adaptive logic modules (ALMs)91,200
   Logic blockadaptive logic module: fracturable 8-input LUT (one 6-input or two independent 4-input functions)
   LUT noteAdaptive logic modules (ALMs): fracturable 8-input LUTs; each ALM can implement two 4-input functions
LUT4 equivalent (approx.)≈182,400
Logic elements (LEs)228,000
Flip-flops182,400
Distributed RAM2,850 Kb
Block RAM13.9 Mb (1235 × 9 Kb)
DSP (18×18 multiplier)1,288
Clock management tiles8
Max. user I/O646
XCVR transceivers12 × 11.3 Gb/s
XCVR transceivers12 × 8.5 Gb/s
XCVR transceivers12 × 6.5 Gb/s
PCI Express2× Gen2
Analog / monitorNone
Design toolAltera Quartus Prime

Packages

PackageSize (mm)Pitch (mm)User I/OTransceivers
F151740 × 401.064636

Package names are shown as in the selection guide; the full ordering code adds speed grade and temperature (see the data sheet).

Speed and temperature grades

Temperature gradeJunction rangeSpeed grades
Industrial (I)−40 to 100 °C—

Alternatives to the EP4S40G2

Closest matches in other families and vendors by logic, DSP, memory, I/O and transceivers. Check pin compatibility and tools before migrating.

DeviceLUTsVendor logicDSPBlock RAMMax I/OTransceiversPCIeCoreScore
5AGXB1Altera Arria V113,208 ALMs300K LE92014.8 Mb70424 XCVR 6.5536 Gb/sGen2—
EP2AGZ300Altera Arria II119,200 ALMs298K LE92014.3 Mb73424 XCVR 6.375 Gb/sGen2—
5SGSD4Altera Stratix V135,840 ALMs360K LE1,04418.7 Mb69636 GX 14.1 Gb/sGen3—
5AGXA7Altera Arria V91,680 ALMs242K LE80013.3 Mb54424 XCVR 6.5536 Gb/sGen2—
5AGXB3Altera Arria V136,880 ALMs362K LE1,04516.9 Mb70424 XCVR 6.5536 Gb/sGen2—
EP2AGZ350Altera Arria II139,400 ALMs349K LE1,04016 Mb73424 XCVR 6.375 Gb/sGen2—

Compare side by side: EP4S40G2 vs 5AGXB1, EP4S40G2 vs EP2AGZ300, EP4S40G2 vs 5SGSD4.

Compare the EP4S40G2 with up to three other FPGAs.

EP4S40G2 quick facts

How many LUTs does the EP4S40G2 have?

The EP4S40G2 has 91,200 adaptive logic modules (ALMs) (228,000 logic elements (les) as published by Altera). Logic block: adaptive logic module: fracturable 8-input LUT (one 6-input or two independent 4-input functions).

How many DSP blocks does the EP4S40G2 have?

The EP4S40G2 has 1,288 18×18 multipliers and 13.9 Mb of block RAM.

Does the EP4S40G2 have transceivers?

Yes, 36 XCVR/XCVR/XCVR transceivers at up to 11.3 Gb/s.

What are the alternatives to the EP4S40G2?

Devices of similar size in other families include 5AGXB1 (Altera Arria V), EP2AGZ300 (Altera Arria II), 5SGSD4 (Altera Stratix V).

Which software is used to design with the EP4S40G2?

Designs for the EP4S40G2 are built with Altera Quartus Prime.

Other Stratix IV devices

DeviceLUTsVendor logicDSPBlock RAMMax I/OTransceiversPCIeCoreScore
EP4SGX7029,040 ALMs73K LE3846.3 Mb48024 XCVR/XCVR 8.5 Gb/sGen2—
EP4SGX11042,240 ALMs106K LE5128.1 Mb48024 XCVR/XCVR 8.5 Gb/sGen2—
EP4SGX18070,300 ALMs176K LE92011.2 Mb73636 XCVR/XCVR 8.5 Gb/sGen2—
EP4S40G291,200 ALMs228K LE1,28813.9 Mb64636 XCVR/XCVR/XCVR 11.3 Gb/sGen2—
EP4S100G291,200 ALMs228K LE1,28813.9 Mb64636 XCVR/XCVR 11.3 Gb/sGen2—
EP4SGX23091,200 ALMs228K LE1,28813.9 Mb73636 XCVR/XCVR 8.5 Gb/sGen2—
EP4SE23091,200 ALMs228K LE1,28813.9 Mb480———
EP4S100G3116,480 ALMs291K LE83213.3 Mb76948 XCVR/XCVR/XCVR 11.3 Gb/sGen2—
EP4SGX290116,480 ALMs291K LE83213.3 Mb90448 XCVR/XCVR 8.5 Gb/sGen2—
EP4S100G4141,440 ALMs354K LE1,02417.7 Mb76948 XCVR/XCVR/XCVR 11.3 Gb/sGen2—
EP4SGX360141,440 ALMs354K LE1,04017.7 Mb90448 XCVR/XCVR 8.5 Gb/sGen2—
EP4SE360141,440 ALMs354K LE1,04017.7 Mb736———
EP4S40G5212,480 ALMs531K LE1,02420.2 Mb64636 XCVR/XCVR/XCVR 11.3 Gb/sGen2—
EP4S100G5212,480 ALMs531K LE1,02420.2 Mb76948 XCVR/XCVR 11.3 Gb/sGen2—
EP4SGX530212,480 ALMs531K LE1,02420.2 Mb90448 XCVR/XCVR 8.5 Gb/sGen2—
EP4SE530212,480 ALMs531K LE1,02420.2 Mb960———
EP4SE820325,220 ALMs813K LE96022.6 Mb1,104———

Source: Altera Stratix IV Product Table, Product Catalog 2015. Data is extracted automatically from the vendor's selection guide; verify critical values in the device data sheet.