mirror of
https://github.com/steveicarus/iverilog.git
synced 2026-08-22 13:57:18 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user