Add --l2-name option for controlling 'v' naming, bug1050.

This commit is contained in:
Wilson Snyder
2016-05-07 14:01:02 -04:00
parent e64b2d3372
commit 691de22ae3
7 changed files with 68 additions and 5 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ void V3LinkLevel::wrapTopCell(AstNetlist* netlistp) {
// Add instance
AstCell* cellp = new AstCell(newmodp->fileline(),
(v3Global.opt.l2Name() ? "v" : oldmodp->name()),
((v3Global.opt.l2Name()!="") ? v3Global.opt.l2Name() : oldmodp->name()),
oldmodp->name(),
NULL, NULL, NULL);
cellp->modp(oldmodp);