V13.7.1 Reading the FPGA Report

EasyImplement12 minIcarus Verilog · serverReview the topic

Read the real ECP5 build report of ap_soc. Find what it used, how fast it might run, and what the report does not tell you.

Hardware context: The ECP5 build of ap_soc's digital chip (Yosys, nextpnr), no board. The real build report.

The build: Yosys 0.70+290 and nextpnr-ecp5, the whole digital chip with the RTL core. Device LFE5U-85F, speed grade 6, a 25 MHz target, seed 1. Nothing was loaded onto a board.

This worksheet uses named constants. The first three entries show how to record your decisions.

Replace each unresolved value of 65535 with your result.

Signals in the Timeline

SignalWidthRole
question8input of each check
Full specification
ResourceUsedAvailable
Logic cells (TRELLIS_COMB)10,42483,640
Flip-flops (TRELLIS_FF)3,98283,640
Block RAM (DP16KD)34208
IO cells23365

Lowest same-domain clock estimate after routing: 28.37 MHz. One DP16KD holds 16 Kbit of data (18 with parity bits), so 2 KiB. ap_soc has 64 KiB of SRAM and a 4 KiB ROM.

CodeWhat the report cannot tell you
1Board-level timing and pin constraints
2That the design fits the device
3That the memories became block RAM
4How many logic cells were used
EntryYour decision
BRAM_PERCENTPer cent of the block RAMs used. (round down)
COMB_PERCENTPer cent of the logic cells used. (round down)
SRAM_BLOCKSBlock RAMs needed for the 64 KiB SRAM.
ROM_BLOCKSBlock RAMs needed for the 4 KiB ROM.
LOWEST_MHZThe lowest clock estimate, in whole MHz (round down).
MARGIN_PERCENTBy how many per cent does it beat the 25 MHz target? (round down)
UNCHECKEDWhat does this report not check? (code)
BLOCKS_FOR_SA variant of the chip with S KiB of SRAM: how many DP16KD blocks does its SRAM need?

Examples

Example 1

BRAM PERCENT
Input
Per cent of the block RAMs used. (round down)
Output
matches = 1

34 of 208.

Example 2

COMB PERCENT
Input
Per cent of the logic cells used. (round down)
Output
matches = 1

Used over available.

Example 3

SRAM BLOCKS
Input
Block RAMs needed for the 64 KiB SRAM.
Output
matches = 1

64 KiB / 2 KiB.

Constraints and Contract

  • Keep the parameter and named constants. Use the numeric codes and units on this page.
  • For BLOCKS_FOR_S, enter a constant expression using S. Only this entry changes with the parameter. The supported integer range is 8 through 128, inclusive.

Hints

Hint 1

Used over available, per resource.

Hint 2

2 KiB of data per DP16KD.

Hint 3

An estimate from routing, not a board measurement.

What the grader checks: Each check compares the full eight-bit answer. Parameter trials change one condition and keep the other decisions fixed.

12 checks on Icarus Verilog · server. Run the examples first, then check the full regression. Full checks use the server judge. Downloads contain your source only; samples require the simulation service. A passing result establishes the tested cases, not a proof for all possible inputs.

See all 2 problems on this path

Report a problem with this page

Your code SystemVerilogSaved locally
Ln 1, Col 1Tab indents · Ctrl/⌘ + Enter runs samples
Not run yet

BRAM PERCENT

Input
Per cent of the block RAMs used. (round down)
Expected output
matches = 1

34 of 208.

Run samples executes all 3 public checks. Check all tests runs 12 checks on the server.

Icarus Verilog · server