You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
End-to-end characterization framework for 2.5D chiplet die-to-die (D2D) links.
Given a process technology and a physical link specification, the framework:
Models the channel RC (pad, bump, trace, ESD).
Evaluates termination and passive equalization decisions.
Generates SPICE netlists for TX and RX.
Runs Cadence Liberate to produce .lib timing/power datasheets.
Extracts per-bit energy, delay, and area metrics.
Writes behavioral Verilog (.v) and physical LEF (.lef) models.
Python 3.7+ (standard library only — no third-party packages).
Cadence Liberate and Spectre must already be on your $PATH.
A PDK. This release ships FreePDK45 (open-source). Download/install it,
then set process.lib_path in config.json to your
.../ncsu_basekit/models/hspice/tran_models directory.
<
8000
div class="markdown-heading" dir="auto">
Configuration model
You normally edit one file: config.json. A run is assembled from
two files, merged at load time (the top-level config overrides the PDK config):
config.json — the entry point and the only file you usually touch.
The two things to set live here: pdk (which PDK to run, default
configs/freepdk45.json) and process.lib_path (your install of that PDK's
models) — plus all the run settings (link spec, sweep, output, co_opt,
and the liberate characterization settings: slews, output_loads_pF, …).
configs/<pdk>.json — the PDK config selected by pdk: everything
technology-specific (process node/corner/format/vdd, transistor,
liberate.template_dir) plus the rarely-touched *_hidden constant blocks.
You pass config.json to main.py; it pulls in the selected PDK config
automatically. (A key left null in config.json, e.g. process.lib_path,
inherits the PDK config's value — handy when a PDK ships its own path.)
Quick Start
1. Run with the defaults (general config.json → FreePDK45)
cd CLIPGen
# source your own Cadence environment first if not already on PATH, e.g.:# source ~/setup_cadence.csh
python3 scripts/main.py # uses ./config.json (pdk = freepdk45)
2. Select a different PDK
Either edit the "pdk" pointer in config.json, or pass a PDK config as the
second argument (it overrides the pointer — handy for the restricted overlay):
main.py can be invoked from any working directory — every path inside a config
is resolved relative to the file that defines it.
3. Run a parameter sweep
Set "sweep": {"enabled": true, ...} in the config JSON, then run as above.
Every combination of pkg_type × reach_mm × bump_pitch_um × data_rate_Gbps
gets its own subdirectory under results/<timestamp>_sweep/.
Configuration reference
Every parameter — its meaning, valid values, and how to set it — is documented in
configs/README.md. The Configuration model section
above explains how config.json and the PDK config combine.
The framework itself is PDK-agnostic — all PDK-specific knowledge lives in the
config (process.model_include_format, transistor.style, device names, …) plus
the per-PDK template directory it points to. See Adding a PDK below.
Pipeline Stages
scripts/main.py orchestrates six stages in sequence:
Full collateral per Pareto point: txip_nldm.lib, rxip_nldm.lib, link_ip_nldm.lib, metrics CSV, tx.v/rx.v, link_ip.lef
6
—
Summary across design points
Stage 4 characterises one lane, Stage 5 characterises all of them. Every lane is the same
circuit, so exploring the sizing space at the full lane_count recomputes one answer N times.
Stage 4 therefore uses a single-lane netlist with inter-lane coupling lumped to VSS at the mean
per-lane weight, which makes exploration cost independent of lane_count — an x64 link
explores as fast as an x8. The deliverable collateral in Stage 5 is always full-lane. Control
it with liberate.co_opt_single_lane (see configs/README.md).
All stage outputs are written to a timestamped run directory:
txip/define_leafcell.tcl — Liberate leaf-cell definitions (read verbatim;
this is where the PDK's device/cell names live).
txip/model.sp — Model include (for spice_lib / spectre_include this file is
used directly; for hspice_ptmmodel.sp is generated from process.lib_path).
Adding a PDK
The Python is PDK-agnostic, so adding a PDK is pure data — no code change:
Copy templates/freepdk45_liberate_template/ to templates/<pdk>_liberate_template/
and adapt txip/rxip*.scs, define_leafcell.tcl, and model.sp to your PDK.
Copy configs/freepdk45.json to configs/<pdk>.json and set:
process.lib_path / lib_corner / model_include_format
(spice_lib for a single .lib, spectre_include for a Spectre model file,
hspice_ptm for HSPICE .inc PTM models),
transistor.nmos_name / pmos_name,
transistor.style (subckt_wl or finfet_nfin) plus include_nf /
nfin_w_min_um / nfin_w_step_um / nfin_max as appropriate,
liberate.template_dir, liberate.output_loads_pF, co_opt, and the
*_hidden constant blocks (esp. area_hidden densities) for your node.
Run it via the general config, pointing at the new PDK: