Skip to content

Lib2v - #4135

Closed
oharboe wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
oharboe:lib2v
Closed

Lib2v#4135
oharboe wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
oharboe:lib2v

Conversation

@oharboe

@oharboe oharboe commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

oharboe and others added 2 commits April 11, 2026 10:09
Verilator cannot simulate the vendor-supplied Verilog because it uses
Verilog-1995 UDP primitives. This script parses .lib/.lib.gz files and
generates clean behavioral Verilog for gate-level netlist simulation.

Supports all cell types (combinational, DFF, latch, ICG, scan-DFF,
multi-bit DFF) and all ASAP7 Vt variants (RVT, LVT, SLVT, SRAM).
Physical-only cells (TAPCELL, FILLER, DECAP) are generated from LEF.

Includes unit tests (37 tests) hooked up via Bazel py_test.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
These hand-written workarounds for Verilator's lack of UDP support are
superseded by lib2v.py, which generates correct behavioral Verilog
directly from the Liberty files for all Vt variants (RVT, LVT, SLVT,
SRAM) — not just the RVT subset these files covered.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
@oharboe

oharboe commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator Author

@maliberty FYI this should be polished up and the behvaioral logic manually authored empty.v and dff.v should be deleted.

@oharboe oharboe closed this Apr 11, 2026
@oharboe

oharboe commented Apr 11, 2026

Copy link
Copy Markdown
Collaborator Author

Just too many things going on, out of sight, out of mind for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant