Skip to content

PULPissimo full-SoC elaboration analysis

Historical elaboration diagnostic. The full-SoC attempt used prepared RTL whose width-cast conversion changed AXI request packing. Its trace records the cost seen in the behavioral L2 model. Both the original run and the one-word control are preserved as diagnostics for that input. Archived full-SoC attempt

Trace · Analysis record · Control receipt

Method

RustSys was built with an opt-in elaboration trace (RUSTSYS_ELAB_TRACE=1) that records each module instance, generate block and generate loop with wall time, signal count and AIG node count. The trace is off by default. The full input is the same historical prepared Verilog as the archived core comparison.

Finding

The first L2 bank dominates:

enter instance i_soc_domain.i_pulp_soc.l2_ram_i.CUTS[0].bank_i (tc_sram)
leave generate block ...bank_i.gen_read_lat in 2.609 s
leave generate block ...bank_i.genblk2 in 24.615 s
leave instance ...bank_i (tc_sram): 27.257 s, 1163 signals, 52,460,372 AIG nodes

A second bank starts immediately after. tc_sram is the behavioral tech_cells_generic memory: reg [NumWords*DataWidth-1:0] sram with read/write muxing. At NumWords=1024, DataWidth=32 each bank becomes 52.46 million AIG nodes, almost all from the memory read/write logic. Three L2 banks therefore exceed 150 million nodes before the core and peripherals are mapped.

Control

The same prepared Verilog was run with each tc_sram instance changed to NumWords=1 while keeping AddrWidth at 14/13, so port widths and the rest of the SoC are unchanged. Elaboration then finishes in 4.249 s with 605,650 AIG nodes, and synthesis continues into optimization.

The comparison isolates the memory model:

full L2 banks one-word L2 control
Elaboration > 2 h (not completed) 4.249 s
Optimize / merge not reached 476.909 / 474.706 s
Mapping not reached 6.076 s
AIG nodes 52,460,372 for the first bank alone 605,650 total
Standard cells not measured 180,669
Cell area not measured 1,697,673.20 µm²
Logic depth not measured 98

The control completed: elaboration 4.249 s, optimize 476.909 s (merge alone 474.706 s), mapping 6.076 s, export 0.110 s; 180,669 cells, 1,697,673.20 µm², logic depth 98 and 30,460 retained state bits. The merge optimization is thus a second, independent bottleneck on the non-memory logic.

The control shows how the size of the behavioral L2 model affected the measured elaboration workload on this prepared input.

What this means

For a full PULPissimo synthesis benchmark, the L2 banks must be treated as SRAM macros, exactly as the Ibex campaign treats its two real SRAM macros. Two paths are possible:

  1. Add a module-level opaque/blackbox mode so tc_sram instances become cut points with preserved ports, without requiring one fixed Liberty interface per parameterization.
  2. Replace tc_sram with a technology SRAM macro whose Liberty pin interface matches the bank configuration, or add memory inference to RustSys.

The archived IHP SG13G2 / EZ130 test maps each bank to official 1024×32 SRAM macros. Its SoC-level measurements carry the same width-cast withdrawal. IHP full-SoC record

Reproduce

This command records the historical diagnostic setup.

RUSTSYS_ELAB_TRACE=1 /path/to/rustsys --threads 16 synth \
  --top pulpissimo_soc_wrapper \
  --lib "$(./rusteda library sky130_fd_sc_hd --corner tt)" \
  -D SYNTHESIS --progress log -v \
  .work/pulpissimo-soc/pulpissimo_soc.v \
  --out .work/pulpissimo-soc/full.v \
  --report .work/pulpissimo-soc/full.json

The trace goes to standard error. The control is produced by changing each tc_sram instance's NumWords to 1 and adding the matching AddrWidth; the exact control input SHA-256 is in the analysis record.