diff --git a/tgt-fpga/generic.c b/tgt-fpga/generic.c index 75e54e992..4937f4a15 100644 --- a/tgt-fpga/generic.c +++ b/tgt-fpga/generic.c @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifndef HAVE_CVS_IDENT -#ident "$Id: generic.c,v 1.1 2003/06/25 02:55:57 steve Exp $" +#ident "$Id: generic.c,v 1.2 2003/07/03 17:46:33 steve Exp $" #endif # include "generic.h" @@ -30,10 +30,15 @@ edif_cell_t cell_1 = 0; edif_cell_t cell_ipad = 0; edif_cell_t cell_opad = 0; +edif_cell_t cell_iopad = 0; + /* * $Log: generic.c,v $ + * Revision 1.2 2003/07/03 17:46:33 steve + * IOPAD support. + * * Revision 1.1 2003/06/25 02:55:57 steve * Virtex and Virtex2 share much code. * diff --git a/tgt-fpga/generic.h b/tgt-fpga/generic.h index d0fd12447..53ca88523 100644 --- a/tgt-fpga/generic.h +++ b/tgt-fpga/generic.h @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifndef HAVE_CVS_IDENT -#ident "$Id: generic.h,v 1.1 2003/06/25 02:55:57 steve Exp $" +#ident "$Id: generic.h,v 1.2 2003/07/03 17:46:33 steve Exp $" #endif # include "edif.h" @@ -40,10 +40,14 @@ extern edif_cell_t cell_1; extern edif_cell_t cell_ipad; extern edif_cell_t cell_opad; +extern edif_cell_t cell_iopad; /* * $Log: generic.h,v $ + * Revision 1.2 2003/07/03 17:46:33 steve + * IOPAD support. + * * Revision 1.1 2003/06/25 02:55:57 steve * Virtex and Virtex2 share much code. * diff --git a/tgt-fpga/xilinx.c b/tgt-fpga/xilinx.c index c681b380a..58553adb6 100644 --- a/tgt-fpga/xilinx.c +++ b/tgt-fpga/xilinx.c @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: xilinx.c,v 1.6 2003/07/02 03:02:15 steve Exp $" +#ident "$Id: xilinx.c,v 1.7 2003/07/03 17:46:33 steve Exp $" #endif # include "edif.h" @@ -371,7 +371,12 @@ void xilinx_pad(ivl_signal_t sig, const char*str) if (cell_opad == 0) { cell_opad = edif_xcell_create(xlib, "OPAD", 1); - edif_cell_portconfig(cell_opad, 0, "OPAD", IVL_SIP_OUTPUT); + edif_cell_portconfig(cell_opad, 0, "OPAD", IVL_SIP_INPUT); + } + + if (cell_iopad == 0) { + cell_iopad = edif_xcell_create(xlib, "IOPAD", 1); + edif_cell_portconfig(cell_iopad, 0, "IOPAD", IVL_SIP_INOUT); } /* Collect an array of pin assignments from the attribute @@ -894,6 +899,9 @@ void xilinx_shiftl(ivl_lpm_t net) /* * $Log: xilinx.c,v $ + * Revision 1.7 2003/07/03 17:46:33 steve + * IOPAD support. + * * Revision 1.6 2003/07/02 03:02:15 steve * More xilinx common code. *