Repository navigation
Conversation
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>
Collaborator
Author
|
@maliberty FYI this should be polished up and the behvaioral logic manually authored empty.v and dff.v should be deleted. |
Collaborator
Author
|
Just too many things going on, out of sight, out of mind for now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.