Cannot elide task ports.

This commit is contained in:
steve 2001-02-17 05:14:35 +00:00
parent 78355b6038
commit 410a93b52c
1 changed files with 10 additions and 1 deletions

View File

@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#if !defined(WINNT) && !defined(macintosh)
#ident "$Id: nodangle.cc,v 1.10 2000/11/19 20:48:53 steve Exp $"
#ident "$Id: nodangle.cc,v 1.11 2001/02/17 05:14:35 steve Exp $"
#endif
/*
@ -58,6 +58,12 @@ void nodangle_f::signal(Design*des, NetNet*sig)
if (sig->get_eref() > 0)
return;
/* Cannot delete the ports of tasks. There are too many places
where they are referenced. */
if ((sig->port_type() != NetNet::NOT_A_PORT)
&& (sig->scope()->type() == NetScope::TASK))
return;
/* Check to see if the signal is completely unconnected. If
all the bits are unlinked, then delete it. */
unsigned unlinked = 0;
@ -118,6 +124,9 @@ void nodangle(Design*des)
/*
* $Log: nodangle.cc,v $
* Revision 1.11 2001/02/17 05:14:35 steve
* Cannot elide task ports.
*
* Revision 1.10 2000/11/19 20:48:53 steve
* Killing some signals might make others killable.
*