From c94bdbcdb0ac28c9d2ceb580f94c3b735ceb8371 Mon Sep 17 00:00:00 2001 From: steve Date: Sat, 11 Nov 2006 21:21:21 +0000 Subject: [PATCH] Make signal lookup use extended names. --- tgt-edif/edif-s.conf | 2 +- tgt-edif/edif.c | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/tgt-edif/edif-s.conf b/tgt-edif/edif-s.conf index 875c8bc06..9dd8bab6a 100644 --- a/tgt-edif/edif-s.conf +++ b/tgt-edif/edif-s.conf @@ -1,7 +1,7 @@ functor:synth2 functor:synth functor:syn-rules -#functor:cprop +functor:cprop functor:nodangle -t:dll flag:DLL=edif.tgt diff --git a/tgt-edif/edif.c b/tgt-edif/edif.c index 3e7d86224..b05840cd3 100644 --- a/tgt-edif/edif.c +++ b/tgt-edif/edif.c @@ -25,7 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifdef HAVE_CVS_IDENT -#ident "$Id: edif.c,v 1.1.2.2 2005/08/21 22:25:51 steve Exp $" +#ident "$Id: edif.c,v 1.1.2.3 2006/11/11 21:21:21 steve Exp $" #endif # include "edif.h" @@ -326,9 +326,15 @@ void edif_cell_port_pstring(edif_cell_t cell, unsigned idx, unsigned edif_cell_port_byname(edif_cell_t cell, const char*name) { unsigned idx = 0; - for (idx = 0 ; idx < cell->nports ; idx += 1) - if (strcmp(name, cell->ports[idx].name) == 0) - break; + for (idx = 0 ; idx < cell->nports ; idx += 1) { + if (cell->ports[idx].ename) { + if (strcmp(name, cell->ports[idx].ename) == 0) + break; + } else { + if (strcmp(name, cell->ports[idx].name) == 0) + break; + } + } return idx; } @@ -671,6 +677,9 @@ void edif_print(FILE*fd, edif_t edf) /* * $Log: edif.c,v $ + * Revision 1.1.2.3 2006/11/11 21:21:21 steve + * Make signal lookup use extended names. + * * Revision 1.1.2.2 2005/08/21 22:25:51 steve * Fix the comment in the EDIT header. *