Skip to content

Commit

Permalink
Check for name space collisions.
Browse files Browse the repository at this point in the history
This patch adds code to check for most of the name space
collisions. genvars are not checked correctly since they
are not completely implemented.
  • Loading branch information
caryr authored and steveicarus committed Apr 28, 2009
1 parent c685911 commit 192522b
Show file tree
Hide file tree
Showing 8 changed files with 397 additions and 82 deletions.
25 changes: 3 additions & 22 deletions design_dump.cc
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998-2008 Stephen Williams (steve@icarus.com)
* Copyright (c) 1998-2009 Stephen Williams (steve@icarus.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
Expand Down Expand Up @@ -1077,28 +1077,9 @@ void NetRepeat::dump(ostream&o, unsigned ind) const
void NetScope::dump(ostream&o) const
{
/* This is a constructed hierarchical name. */
o << scope_path(this);
o << scope_path(this) << " ";

switch (type_) {
case BEGIN_END:
o << " sequential block";
break;
case FORK_JOIN:
o << " parallel block";
break;
case FUNC:
o << " function";
break;
case MODULE:
o << " module <" << (module_name_? module_name_.str() : "") << ">";
break;
case TASK:
o << " task";
break;
case GENBLOCK:
o << " generate block";
break;
}
print_type(o);
if (is_auto()) o << " (automatic)";
o << endl;

Expand Down

0 comments on commit 192522b

Please sign in to comment.