Skip to content

Commit

Permalink
Made export port be output by default when direction undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanserge committed Dec 7, 2023
1 parent 28020c4 commit ee22519
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crlcore/src/ccore/verilog/VerilogDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,10 @@ namespace CRL {
{
out << " inout ";
}
else if (dir == Net::Direction::OUT)
else // if direction undefined assume it is output
{
out << " output ";
}
else
{
std::cerr << "Undetermined direction " << dir << " for the net \"" << name << "\"" << std::endl;
assert(false);
}
if (idx_min >= 0)
{
out << "[" << idx_max << ":" << idx_min << "] ";
Expand Down

0 comments on commit ee22519

Please sign in to comment.