Skip to content

Commit 39b2eef

Browse files
committed
input only for HiZ
1 parent fb57bf0 commit 39b2eef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/Dialect/HW/HWOps.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -1129,6 +1129,11 @@ LogicalResult HWModuleOp::verify() {
11291129
return emitOpError("entry block must have")
11301130
<< numInputs << " arguments to match module signature";
11311131

1132+
// Check there are no HiZ outputs
1133+
for (auto t : type.getPorts())
1134+
if (t.dir != ModulePort::Direction::Input && isa<HiZType>(type))
1135+
return emitOpError("HiZ types may only be inputs");
1136+
11321137
return success();
11331138
}
11341139

0 commit comments

Comments
 (0)