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.
defparam assignments found inside a generate block were being stored in the enclosing module scope. They should be stored in the generate block scope. Also removed the genvar list from the PGenerate class, as this is already declared in the base LexicalScope class.
- Loading branch information
1 parent
83fff3a
commit 1f152aa
Showing
4 changed files
with
28 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#ifndef __PGenerate_H | ||
#define __PGenerate_H | ||
/* | ||
* Copyright (c) 2006-2010 Stephen Williams ([email protected]) | ||
* Copyright (c) 2006-2010,2012 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 | ||
|
@@ -80,16 +80,17 @@ class PGenerate : public LineInfo, public LexicalScope { | |
// test value. | ||
std::valarray<PExpr*> item_test; | ||
|
||
// defparam assignments found in this scope. | ||
typedef pair<pform_name_t,PExpr*> named_expr_t; | ||
list<named_expr_t>defparms; | ||
|
||
list<PGate*> gates; | ||
void add_gate(PGate*); | ||
|
||
// Tasks instantiated within this scheme. | ||
map<perm_string,PTask*> tasks; | ||
map<perm_string,PFunction*>funcs; | ||
|
||
// genvars declared within this scheme. | ||
map<perm_string,LineInfo*> genvars; | ||
|
||
// 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