Skip to content

Commit

Permalink
Add the === and !== binary operators.
Browse files Browse the repository at this point in the history
  • Loading branch information
steve committed Jun 24, 1999
1 parent 96e0fc0 commit 33d4133
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions t-vvm.cc
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
#if !defined(WINNT)
#ident "$Id: t-vvm.cc,v 1.25 1999/06/19 21:06:16 steve Exp $"
#ident "$Id: t-vvm.cc,v 1.26 1999/06/24 04:21:45 steve Exp $"
#endif

# include <iostream>
Expand Down Expand Up @@ -237,10 +237,18 @@ void vvm_proc_rval::expr_binary(const NetEBinary*expr)
os_ << setw(indent_) << "" << "vvm_bitset_t<" <<
expr->expr_width() << ">" << result << ";" << endl;
switch (expr->op()) {
case 'e':
case 'E': // ===
os_ << setw(indent_) << "" << result << " = vvm_binop_eeq("
<< lres << "," << rres << ");" << endl;
break;
case 'e': // ==
os_ << setw(indent_) << "" << result << " = vvm_binop_eq("
<< lres << "," << rres << ");" << endl;
break;
case 'N': // !==
os_ << setw(indent_) << "" << result << " = vvm_binop_nee("
<< lres << "," << rres << ");" << endl;
break;
case 'n':
os_ << setw(indent_) << "" << result << " = vvm_binop_ne("
<< lres << "," << rres << ");" << endl;
Expand Down Expand Up @@ -1193,6 +1201,9 @@ extern const struct target tgt_vvm = {
};
/*
* $Log: t-vvm.cc,v $
* Revision 1.26 1999/06/24 04:21:45 steve
* Add the === and !== binary operators.
*
* Revision 1.25 1999/06/19 21:06:16 steve
* Elaborate and supprort to vvm the forever
* and repeat statements.
Expand Down

0 comments on commit 33d4133

Please sign in to comment.