mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix wildcard equality and inside operators for non-fourstate expressions (#5673)
This commit is contained in:
+3
-3
@@ -1412,9 +1412,9 @@ class TristateVisitor final : public TristateBaseVisitor {
|
||||
}
|
||||
}
|
||||
void visitEqNeqWild(AstNodeBiop* nodep) {
|
||||
if (!VN_IS(nodep->rhsp(), Const)) {
|
||||
nodep->v3warn(E_UNSUPPORTED, // Says spac.
|
||||
"Unsupported: RHS of ==? or !=? must be constant to be synthesizable");
|
||||
if (!VN_IS(nodep->rhsp(), Const) && nodep->rhsp()->dtypep()->isFourstate()) {
|
||||
nodep->v3warn(E_UNSUPPORTED,
|
||||
"Unsupported: RHS of ==? or !=? is fourstate but not a constant");
|
||||
// rhs we want to keep X/Z intact, so otherwise ignore
|
||||
}
|
||||
iterateAndNextNull(nodep->lhsp());
|
||||
|
||||
Reference in New Issue
Block a user