forked from steveicarus/iverilog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow generate schemes to generate task/function definitions.
Generating task/function definitions involves getting the functions to put themselves into the generate scheme instead of the module, and getting elaboration to elaborate those definitions in the generate scheme.
- Loading branch information
1 parent
ce9fd01
commit 2f3627c
Showing
8 changed files
with
162 additions
and
107 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#ifndef __PGenerate_H | ||
#define __PGenerate_H | ||
/* | ||
* Copyright (c) 2006 Stephen Williams ([email protected]) | ||
* Copyright (c) 2006-2008 Stephen Williams ([email protected]) | ||
* | ||
* This source code is free software; you can redistribute it | ||
* and/or modify it in source code form under the terms of the GNU | ||
|
@@ -18,9 +18,6 @@ | |
* along with this program; if not, write to the Free Software | ||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
*/ | ||
#ifdef HAVE_CVS_IDENT | ||
#ident "$Id: PGenerate.h,v 1.4 2007/06/02 03:42:12 steve Exp $" | ||
#endif | ||
|
||
# include "LineInfo.h" | ||
# include "StringHeap.h" | ||
|
@@ -32,7 +29,9 @@ | |
class Design; | ||
class NetScope; | ||
class PExpr; | ||
class PFunction; | ||
class PProcess; | ||
class PTask; | ||
class PGate; | ||
class PWire; | ||
|
||
|
@@ -79,6 +78,10 @@ class PGenerate : public LineInfo { | |
|
||
list<PProcess*> behaviors; | ||
|
||
// Tasks instantiated within this scheme. | ||
map<perm_string,PTask*> tasks; | ||
map<perm_string,PFunction*>funcs; | ||
|
||
// Generate schemes can contain further generate schemes. | ||
list<PGenerate*> generate_schemes; | ||
PGenerate*parent; | ||
|
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.