Repository navigation
Commit 6328ab0
asap7: add lib2v.py to generate behavioral Verilog from Liberty files
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>1 parent 2453de8 commit 6328ab0
3 files changed
Lines changed: 1371 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments