Add support for a generate scope to vvp and the vpi routines.

Instead of just translating a generate scope to a named begin/end scope
this patch creates a generate specific scope (vpiScopeGenerate) that is
of the vpiGenScope type. This may not match the standard 100%, but does
allow the FST dumper to denote generate scopes differently than the
other scope types. Most of the VPI code treats a vpiGenScope just like a
named block so only the FST dumper should have different behavior.
This commit is contained in:
Cary R
2013-07-17 10:57:02 -07:00
parent f636ffde48
commit 54cb85adfc
12 changed files with 68 additions and 29 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002-2009 Michael Ruff (mruff at chiaro.com)
* Copyright (c) 2002-2013 Michael Ruff (mruff at chiaro.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
@@ -45,7 +45,7 @@ int acc_object_of_type(handle object, PLI_INT32 type)
case accScope:
if (vtype == vpiModule || vtype == vpiNamedBegin ||
vtype == vpiNamedFork || vtype == vpiTask ||
vtype == vpiFunction) rtn = 1;
vtype == vpiFunction || vtype == vpiGenScope) rtn = 1;
break;
case accNet: rtn = vtype == vpiNet; break;