π Live Application: https://fpga-selector-v2.netlify.app
π¦ GitHub Repository: https://github.com/Hazz-Y/fpga-selector
A zero-install, browser-native platform that parses Verilog RTL, statically estimates FPGA resource utilization (LUTs, Flip-Flops, I/Os, DSPs, Block RAM) with full provenance tracing, and ranks real, purchasable FPGA development boards via an auditable non-linear suitability formula.
- π 100% Client-Side & Zero-Install: Instant analysis in any modern web browser β no synthesis tool licenses, EDA installations, or backend cloud dependencies required.
- π¬ Deterministic Heuristics with Provenance: Every resource count links directly to the specific Verilog construct, source file line number, rule name, and architectural rationale.
- π Curated Development Board Catalog: Over 18 commercial development boards from AMD/Xilinx, Intel/Altera, Lattice Semiconductor, and Microchip with comprehensive board-level specifications (DRAM, Flash, Transceivers, Power, I/O headers).
- βοΈ Auditable Suitability Scoring: Ranks development boards using geometric-mean resource fit, cost normalization, bottleneck penalties, and headroom efficiency penalties with deterministic tie-breaking.
- ποΈ Live Sensitivity Analysis: Interactive sliders allow hardware designers to adjust scoring weights in real time and immediately see re-ranked results without re-parsing.
- π§ͺ 25+ Validation Benchmark Suite: Unit-tested against hand-derived standard hardware blocks (ALUs, FSMs, FIR filters, UARTs, MAC units, Multipliers, Block RAMs) with documented accuracy.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β User Verilog RTL Source β
β (Multi-file upload, tabbed code editor) β
ββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Tokenizer & Lexer (lexer.ts) β
β Token stream: keywords, ports, regs, operators, commentsβ
ββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AST Parser (parser.ts) β
β Extracts modules, port directions/widths, always blocks, β
β hierarchical module instantiations, and memory arrays β
ββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Estimation Engine (estimator.ts) β
β Applies rules from estimationRules.ts (Single Truth) β
β Computes LUT, FF, I/O, DSP48, BRAM + Provenance Trace β
ββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Scoring & Ranking Engine (scoring.ts) β
β Geometric mean resource fit + cost + bottleneck penalty β
β Hard infeasibility filter + Sensitivity sliders β
ββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Interactive Web UI (React + Tailwind) β
β β’ Analyzer (Editor, Charts, Breakdown, Provenance Trace) β
β β’ Recommendations (Board Cards, Sensitivity Sliders) β
β β’ Methodology (Live Config Tables & Formulas) β
β β’ Board Browser (Filterable/Searchable Board Catalog) β
β β’ History (LocalStorage Session Restoration) β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
All estimation coefficients are centralized in src/engine/estimationRules.ts and rendered dynamically on the Methodology page to ensure zero documentation drift.
-
Bitwise Logic (
&,|,^,~^):$1.0\text{ LUT per bit}$ -
Adders & Subtractors (
+,-):$\lceil N \times 1.0 \rceil\text{ LUTs}$ (dedicated fast-carry logic) -
Small Multipliers (
*when$< 8\text{ bits}$ ):$\lceil N^{1.5} \rceil\text{ LUTs}$ -
Ternary / Multiplexers (
sel ? a : b,if/else):$2.0\text{ LUTs per node}$ -
Case Statements:
$K \times \lceil\log_2(N)\rceil\text{ LUTs}$ -
Comparators (
==,<,>, etc.):$\lceil N \times 0.5 \rceil\text{ LUTs}$ -
Inverters / Buffers (
~,!):$0\text{ LUTs}$ (absorbed into adjacent LUT inputs)
-
Flip-Flops:
$1.0\text{ FF per bit}$ in@(posedge clk)blocks;$\lceil\log_2(\text{states})\rceil\text{ FFs}$ for FSM state registers. -
DSP Slices: Inferred when multiplier operands
$\ge 8\text{ bits}$ or when clocked MAC ($acc \leftarrow acc + a \times b$ ) is identified. -
Block RAM: Array depth
$\ge 64$ entries$\rightarrow \lceil\frac{W \times D}{1024 \times 18}\rceil\text{ blocks of 18Kb}$ . -
Distributed RAM: Array depth
$< 64$ entries$\rightarrow \lceil\frac{W \times D}{6}\rceil\text{ LUTs}$ .
For design estimate
Includes 18 commercial FPGA development boards with full specs:
| Board | Vendor | FPGA Family | Logic Cells / LUTs | On-board RAM | Approx Price | Key Interfaces |
|---|---|---|---|---|---|---|
| Digilent Basys 3 | AMD/Xilinx | Artix-7 | 33,280 | β | $130β$150 | USB-JTAG, VGA, Pmod |
| Digilent Arty A7-35T | AMD/Xilinx | Artix-7 | 33,280 | 256MB DDR3L | $129β$149 | 10/100 Ethernet, Arduino, Pmod |
| Digilent Arty A7-100T | AMD/Xilinx | Artix-7 | 101,440 | 256MB DDR3L | $249β$279 | 10/100 Ethernet, Arduino, Pmod |
| Digilent Nexys A7-100T | AMD/Xilinx | Artix-7 | 101,440 | 128MB DDR2 | $410β$450 | Ethernet, VGA, MicroSD, Audio, Pmod |
| Digilent Cmod A7-35T | AMD/Xilinx | Artix-7 | 33,280 | 512KB SRAM | $79β$89 | DIP-48 form factor, USB-UART |
| Xilinx Kintex-7 KC705 | AMD/Xilinx | Kintex-7 | 203,800 | 1GB DDR3 | $1,695β$1,895 | PCIe Gen2 x8, SFP+, FMC-HPC, HDMI |
| Terasic DE10-Lite | Intel/Altera | MAX 10 | 49,760 | 64MB SDRAM | $55β$75 | VGA, 7-Seg, Arduino, Accelerometer |
| Terasic DE10-Nano | Intel/Altera | Cyclone V SE (SoC) | 110,000 | 1GB DDR3 | $130β$160 | Dual Cortex-A9, HDMI, Gigabit Ethernet |
| Terasic DE1-SoC | Intel/Altera | Cyclone V SX (SoC) | 85,000 | 1GB DDR3 | $225β$275 | Dual Cortex-A9, VGA, Audio CODEC, GPIO |
| Lattice ECP5-5G Eval | Lattice | ECP5-5G | 84,000 | β | $199β$249 | 5Gbps SERDES, PCIe, Dual Gigabit Ethernet |
| Lattice iCEstick | Lattice | iCE40HX | 1,280 | β | $25β$35 | USB thumb drive, IrDA, Pmod |
| Lattice ULX3S | Lattice | ECP5 | 84,000 | 32MB SDRAM | $99β$139 | HDMI/DVI, MicroSD, ESP32, USB-OTG |
| Lattice MachXO3L Starter | Lattice | MachXO3L | 9,400 | β | $49β$69 | On-chip flash, low-power I/O |
| Microchip PolarFire Eval | Microchip | PolarFire | 12,500 | 4GB DDR4 | $199β$249 | Non-volatile, Low Power, PCIe x4, SFP+ |
| Digilent Genesys 2 | AMD/Xilinx | Kintex-7 | 203,800 | 1GB DDR3 | $1,195β$1,395 | DisplayPort, HDMI, FMC-HPC, USB 2.0 |
The test harness in src/engine/__tests__/estimator.test.ts executes 29 automated tests covering:
- TC01βTC20: Standard building blocks (trivial modules, bitwise logic, adders, shift registers, FSMs, small/large multipliers, distributed RAM, block RAM).
-
TC21βTC25: Large complex hardware designs (
$\ge 1,000\text{ to }20,000\text{ LUTs}$ ) including 32-bit multi-op ALUs, 16-bit multiply-accumulate units, 8-stage 32-bit pipelines, 16-tap FIR filters, and 16-state FSM processors. - Scoring Engine Tests: Feasibility filtering, total score normalization, deterministic tie-breaking, and extreme boundary conditions.
Run tests locally:
npm test- Node.js
$\ge 18.0.0$ - npm
$\ge 9.0.0$
# Clone repository
git clone https://github.com/Hazz-Y/fpga-selector.git
cd fpga-selector
# Install dependencies
npm install
# Start local Vite development server
npm run dev
# Run unit tests
npm test
# Build production bundle
npm run buildThis v2 rebuild addresses all methodological gaps identified during peer review:
| Reviewer Comment | Resolution in v2 Implementation | Location |
|---|---|---|
| Board vs. Bare Chip | Added boardLevelSpecs (DRAM, Flash, Transceivers, Power) and Board/Chip view toggle |
src/data/boardCatalog.ts, src/pages/Recommendations.tsx |
| Sensitivity Analysis | Built real-time sensitivity sliders to inspect score variation under different weights | src/components/SensitivitySliders.tsx |
| Auditable Methodology | Methodology page dynamically imports constants from code config (zero doc drift) | src/pages/Methodology.tsx, src/engine/estimationRules.ts |
| Provenance Traceability | Per-construct line-level trace table with resource delta badges | src/components/ProvenancePanel.tsx |
| Non-Linear Scoring | Formulated geometric-mean resource fit + bottleneck penalty + tie-breaking | src/engine/scoring.ts |
| Scalable Benchmarks | Added 25+ automated reference test cases including 1Kβ20K LUT designs | src/engine/__tests__/estimator.test.ts |
This project is licensed under the MIT License.