Added missing support for binary ^~ in eval_tree.cc

This commit is contained in:
Clifford Wolf 2013-12-30 11:53:44 +01:00
parent 336b29955d
commit ef06bf7589
1 changed files with 7 additions and 0 deletions

View File

@ -288,6 +288,13 @@ NetEConst* NetEBBits::eval_arguments_(const NetExpr*l, const NetExpr*r) const
break;
}
case 'X': {
for (unsigned idx = 0 ; idx < wid ; idx += 1)
res.set(idx, ~(lval.get(idx) ^ rval.get(idx)));
break;
}
case '^': {
for (unsigned idx = 0 ; idx < wid ; idx += 1)
res.set(idx, lval.get(idx) ^ rval.get(idx));