From bdc6cb8723889c466aab3ea593e28751d4f97757 Mon Sep 17 00:00:00 2001 From: steve Date: Wed, 16 Jun 2004 16:22:04 +0000 Subject: [PATCH] Dump NE LPM device. --- tgt-stub/stub.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/tgt-stub/stub.c b/tgt-stub/stub.c index b4b92f1cf..d1b22a85f 100644 --- a/tgt-stub/stub.c +++ b/tgt-stub/stub.c @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: stub.c,v 1.84 2003/12/03 04:27:10 steve Exp $" +#ident "$Id: stub.c,v 1.85 2004/06/16 16:22:04 steve Exp $" #endif # include "config.h" @@ -206,6 +206,23 @@ static void show_lpm(ivl_lpm_t net) break; } + case IVL_LPM_CMP_NE: { + fprintf(out, " LPM_COMPARE(NE) %s: \n", + ivl_lpm_basename(net), width); + fprintf(out, " Q: %s\n", ivl_nexus_name(ivl_lpm_q(net, 0))); + for (idx = 0 ; idx < width ; idx += 1) { + ivl_nexus_t nex = ivl_lpm_data(net, idx); + fprintf(out, " Data A %u: %s\n", idx, + nex? ivl_nexus_name(nex) : ""); + } + for (idx = 0 ; idx < width ; idx += 1) { + ivl_nexus_t nex = ivl_lpm_datab(net, idx); + fprintf(out, " Data B %u: %s\n", idx, + nex? ivl_nexus_name(nex) : ""); + } + break; + } + case IVL_LPM_SHIFTL: { fprintf(out, " LPM_SHIFTL %s: \n", ivl_lpm_basename(net), width, ivl_lpm_selects(net)); @@ -892,6 +909,9 @@ int target_design(ivl_design_t des) /* * $Log: stub.c,v $ + * Revision 1.85 2004/06/16 16:22:04 steve + * Dump NE LPM device. + * * Revision 1.84 2003/12/03 04:27:10 steve * Pre-gcc3 compile error. *