mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Optimize $onehot in Dfg
This commit is contained in:
+3
-1
@@ -774,7 +774,9 @@ void DfgVertex::typeCheck(const DfgGraph& dfg) const {
|
||||
case VDfgType::LogNot:
|
||||
case VDfgType::RedAnd:
|
||||
case VDfgType::RedOr:
|
||||
case VDfgType::RedXor: {
|
||||
case VDfgType::RedXor:
|
||||
case VDfgType::OneHot:
|
||||
case VDfgType::OneHot0: {
|
||||
CHECK(dtype() == DfgDataType::packed(1), "Should be 1-bit");
|
||||
CHECK(inputp(0)->isPacked(), "Operand should be Packed type");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user