Skip to content

Commit

Permalink
devices need show_cmp_gt
Browse files Browse the repository at this point in the history
  • Loading branch information
steve committed Nov 12, 2003
1 parent d10da21 commit 534a656
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 10 deletions.
12 changes: 8 additions & 4 deletions tgt-fpga/d-generic-edif.c
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: d-generic-edif.c,v 1.16 2003/07/02 00:48:03 steve Exp $"
#ident "$Id: d-generic-edif.c,v 1.17 2003/11/12 03:20:14 steve Exp $"
#endif

# include "device.h"
Expand Down Expand Up @@ -463,9 +463,10 @@ const struct device_s d_generic_edif = {
0, /* draw_pad not implemented */
edif_show_logic,
edif_show_generic_dff,
0,
0,
0,
0, /* show_cmp_eq */
0, /* show_cmp_ne */
0, /* show_cmp_ge */
0, /* show_cmp_gt */
0,
0, /* show_add */
0, /* show_sub */
Expand All @@ -476,6 +477,9 @@ const struct device_s d_generic_edif = {

/*
* $Log: d-generic-edif.c,v $
* Revision 1.17 2003/11/12 03:20:14 steve
* devices need show_cmp_gt
*
* Revision 1.16 2003/07/02 00:48:03 steve
* No longer export generic-edif functions.
*
Expand Down
6 changes: 5 additions & 1 deletion tgt-fpga/d-generic.c
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: d-generic.c,v 1.13 2003/06/24 03:55:00 steve Exp $"
#ident "$Id: d-generic.c,v 1.14 2003/11/12 03:20:14 steve Exp $"
#endif

# include "device.h"
Expand Down Expand Up @@ -505,6 +505,7 @@ const struct device_s d_generic = {
generic_show_cmp_eq,
generic_show_cmp_eq,
0, /* ge not implemented */
0, /* gt not implemented */
generic_show_mux,
generic_show_add,
0, /* subtract not implemented */
Expand All @@ -515,6 +516,9 @@ const struct device_s d_generic = {

/*
* $Log: d-generic.c,v $
* Revision 1.14 2003/11/12 03:20:14 steve
* devices need show_cmp_gt
*
* Revision 1.13 2003/06/24 03:55:00 steve
* Add ivl_synthesis_cell support for virtex2.
*
Expand Down
6 changes: 5 additions & 1 deletion tgt-fpga/d-lpm.c
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: d-lpm.c,v 1.10 2003/10/31 03:45:50 steve Exp $"
#ident "$Id: d-lpm.c,v 1.11 2003/11/12 03:20:14 steve Exp $"
#endif

/*
Expand Down Expand Up @@ -864,6 +864,7 @@ const struct device_s d_lpm_edif = {
0,
0,
0,
0, /* show_cmp_gt */
lpm_show_mux, /* show_mux */
lpm_show_add, /* show_add */
lpm_show_add, /* show_sub */
Expand All @@ -875,6 +876,9 @@ const struct device_s d_lpm_edif = {

/*
* $Log: d-lpm.c,v $
* Revision 1.11 2003/11/12 03:20:14 steve
* devices need show_cmp_gt
*
* Revision 1.10 2003/10/31 03:45:50 steve
* Handle adders that use Cout for the top bit.
*
Expand Down
6 changes: 5 additions & 1 deletion tgt-fpga/d-virtex.c
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: d-virtex.c,v 1.32 2003/08/15 02:23:53 steve Exp $"
#ident "$Id: d-virtex.c,v 1.33 2003/11/12 03:20:14 steve Exp $"
#endif

# include "device.h"
Expand Down Expand Up @@ -835,6 +835,7 @@ const struct device_s d_virtex_edif = {
virtex_eq,
virtex_eq,
virtex_ge,
0, /* show_cmp_gt */
virtex_mux,
virtex_add,
virtex_add,
Expand All @@ -845,6 +846,9 @@ const struct device_s d_virtex_edif = {

/*
* $Log: d-virtex.c,v $
* Revision 1.33 2003/11/12 03:20:14 steve
* devices need show_cmp_gt
*
* Revision 1.32 2003/08/15 02:23:53 steve
* Add synthesis support for synchronous reset.
*
Expand Down
6 changes: 5 additions & 1 deletion tgt-fpga/d-virtex2.c
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: d-virtex2.c,v 1.18 2003/07/04 00:10:09 steve Exp $"
#ident "$Id: d-virtex2.c,v 1.19 2003/11/12 03:20:14 steve Exp $"
#endif

# include "device.h"
Expand Down Expand Up @@ -84,6 +84,7 @@ const struct device_s d_virtex2_edif = {
virtex_eq,
virtex_eq,
virtex_ge,
0, /* show_cmp_gt */
virtex_mux,
virtex_add,
virtex_add,
Expand All @@ -94,6 +95,9 @@ const struct device_s d_virtex2_edif = {

/*
* $Log: d-virtex2.c,v $
* Revision 1.19 2003/11/12 03:20:14 steve
* devices need show_cmp_gt
*
* Revision 1.18 2003/07/04 00:10:09 steve
* Generate MUXF5 based 4-input N-wide muxes.
*
Expand Down
6 changes: 5 additions & 1 deletion tgt-fpga/device.h
Expand Up @@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: device.h,v 1.13 2003/10/27 02:18:27 steve Exp $"
#ident "$Id: device.h,v 1.14 2003/11/12 03:20:14 steve Exp $"
#endif

# include <ivl_target.h>
Expand Down Expand Up @@ -53,6 +53,7 @@ struct device_s {
void (*show_cmp_eq)(ivl_lpm_t net);
void (*show_cmp_ne)(ivl_lpm_t net);
void (*show_cmp_ge)(ivl_lpm_t net);
void (*show_cmp_gt)(ivl_lpm_t net);
/* This method draws MUX devices */
void (*show_mux)(ivl_lpm_t net);
/* This method draws ADD devices */
Expand All @@ -79,6 +80,9 @@ extern device_t device_from_arch(const char*arch);

/*
* $Log: device.h,v $
* Revision 1.14 2003/11/12 03:20:14 steve
* devices need show_cmp_gt
*
* Revision 1.13 2003/10/27 02:18:27 steve
* Emit constants for LPM device.
*
Expand Down
14 changes: 13 additions & 1 deletion tgt-fpga/gates.c
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
#ident "$Id: gates.c,v 1.13 2003/08/09 03:23:03 steve Exp $"
#ident "$Id: gates.c,v 1.14 2003/11/12 03:20:14 steve Exp $"
#endif

# include <ivl_target.h>
Expand Down Expand Up @@ -96,6 +96,15 @@ static void show_gate_lpm(ivl_lpm_t net)
device->show_cmp_ge(net);
break;

case IVL_LPM_CMP_GT:
if (device->show_cmp_gt == 0) {
fprintf(stderr, "fpga.tgt: IVL_LPM_CMP_GT not supported"
" by this target.\n");
return;
}
device->show_cmp_gt(net);
break;

case IVL_LPM_FF:
if (device->show_dff == 0) {
fprintf(stderr, "fpga.tgt: IVL_LPM_FF not supported"
Expand Down Expand Up @@ -168,6 +177,9 @@ int show_scope_gates(ivl_scope_t net, void*x)

/*
* $Log: gates.c,v $
* Revision 1.14 2003/11/12 03:20:14 steve
* devices need show_cmp_gt
*
* Revision 1.13 2003/08/09 03:23:03 steve
* Add support for IVL_LPM_MULT device.
*
Expand Down

0 comments on commit 534a656

Please sign in to comment.