Support trivial SV assertions

git-svn-id: file://localhost/svn/verilator/trunk/verilator@898 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
Wilson Snyder
2007-03-06 21:43:38 +00:00
parent 98282114c9
commit 79ab50d84f
19 changed files with 406 additions and 66 deletions
+5 -7
View File
@@ -159,13 +159,11 @@ void process () {
// Assertion insertion
// After we've added block coverage, but before other nasty transforms
if (v3Global.opt.assertOn() || v3Global.opt.psl()) {
V3AssertPre::assertPreAll(v3Global.rootp());
v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("assertpre.tree"));
//
V3Assert::assertAll(v3Global.rootp());
v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("assert.tree"));
}
V3AssertPre::assertPreAll(v3Global.rootp());
v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("assertpre.tree"));
//
V3Assert::assertAll(v3Global.rootp());
v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("assert.tree"));
// Add top level wrapper with instance pointing to old top
// Must do this after we know the width of any parameters