This commit is contained in:
James Cherry 2020-07-03 18:20:20 -07:00
commit 47bb1e124f
1 changed files with 11 additions and 3 deletions

View File

@ -165,12 +165,20 @@ VerilogWriter::verilogPortDir(PortDirection *dir)
return "input";
else if (dir == PortDirection::output())
return "output";
else if (dir == PortDirection::bidirect())
return "inout";
else if (dir == PortDirection::tristate())
return "output";
else
else if (dir == PortDirection::bidirect())
return "inout";
else if (dir == PortDirection::power())
return "input";
else if (dir == PortDirection::ground())
return "input";
else if (dir == PortDirection::internal())
return nullptr;
else {
internalError("unknown port direction");
return nullptr;
}
}
void