Permalink
Browse files

Use PartSelect/PV and VP to handle part selects through ports.

  • Loading branch information...
1 parent 6c711ee commit 9e94afe399f84aa7dfe6d4315c19d62ba8d0ade1 steve committed Jan 9, 2005
Showing with 476 additions and 311 deletions.
  1. +7 −1 PExpr.h
  2. +17 −2 design_dump.cc
  3. +140 −210 elab_net.cc
  4. +93 −45 elaborate.cc
  5. +25 −2 ivl_target.h
  6. +5 −2 net_link.cc
  7. +29 −8 netlist.cc
  8. +42 −8 netlist.h
  9. +14 −6 t-dll-api.cc
  10. +46 −11 t-dll.cc
  11. +28 −8 tgt-stub/stub.c
  12. +30 −8 tgt-vvp/vvp_scope.c
View
@@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
-#ident "$Id: PExpr.h,v 1.67 2004/12/29 23:55:43 steve Exp $"
+#ident "$Id: PExpr.h,v 1.68 2005/01/09 20:16:00 steve Exp $"
#endif
# include <string>
@@ -276,6 +276,9 @@ class PEIdent : public PExpr {
NetAssign_* elaborate_mem_lval_(Design*des, NetScope*scope,
NetMemory*mem) const;
+ bool eval_part_select_(Design*des, NetScope*scope, NetNet*sig,
+ unsigned&midx, unsigned&lidx) const;
+
};
class PENumber : public PExpr {
@@ -503,6 +506,9 @@ class PECallFunction : public PExpr {
/*
* $Log: PExpr.h,v $
+ * Revision 1.68 2005/01/09 20:16:00 steve
+ * Use PartSelect/PV and VP to handle part selects through ports.
+ *
* Revision 1.67 2004/12/29 23:55:43 steve
* Unify elaboration of l-values for all proceedural assignments,
* including assing, cassign and force.
View
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#ifdef HAVE_CVS_IDENT
-#ident "$Id: design_dump.cc,v 1.151 2004/12/29 23:55:43 steve Exp $"
+#ident "$Id: design_dump.cc,v 1.152 2005/01/09 20:16:00 steve Exp $"
#endif
# include "config.h"
@@ -356,7 +356,19 @@ void NetModulo::dump_node(ostream&o, unsigned ind) const
void NetPartSelect::dump_node(ostream&o, unsigned ind) const
{
- o << setw(ind) << "" << "NetPartSelect: "
+ const char*pt = "";
+ switch (dir_) {
+ case VP:
+ pt = "VP";
+ break;
+ case PV:
+ pt = "PV";
+ break;
+ case BI:
+ pt = "BI";
+ break;
+ }
+ o << setw(ind) << "" << "NetPartSelect(" << pt << "): "
<< name() << " off=" << off_ << " wid=" << wid_ <<endl;
dump_node_pins(o, ind+4);
dump_obj_attr(o, ind+4);
@@ -1097,6 +1109,9 @@ void Design::dump(ostream&o) const
/*
* $Log: design_dump.cc,v $
+ * Revision 1.152 2005/01/09 20:16:00 steve
+ * Use PartSelect/PV and VP to handle part selects through ports.
+ *
* Revision 1.151 2004/12/29 23:55:43 steve
* Unify elaboration of l-values for all proceedural assignments,
* including assing, cassign and force.
Oops, something went wrong.

0 comments on commit 9e94afe

Please sign in to comment.