Merge pull request #5 from cliffordwolf/master
Added missing support for binary ^~ in eval_tree.cc
This commit is contained in:
commit
607b63a758
|
|
@ -288,6 +288,13 @@ NetEConst* NetEBBits::eval_arguments_(const NetExpr*l, const NetExpr*r) const
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case 'X': {
|
||||||
|
for (unsigned idx = 0 ; idx < wid ; idx += 1)
|
||||||
|
res.set(idx, ~(lval.get(idx) ^ rval.get(idx)));
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case '^': {
|
case '^': {
|
||||||
for (unsigned idx = 0 ; idx < wid ; idx += 1)
|
for (unsigned idx = 0 ; idx < wid ; idx += 1)
|
||||||
res.set(idx, lval.get(idx) ^ rval.get(idx));
|
res.set(idx, lval.get(idx) ^ rval.get(idx));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue