#include namespace ot::vlog { // Operator << std::ostream& operator << (std::ostream& os, const Gate& inst) { os << inst.cell << ' ' << inst.name << " ( "; size_t i {0}; for(const auto& [pin, net] : inst.cellpin2net) { if(i++ != 0) { os << ", "; } os << '.' << pin << '(' << net << ')'; } os << " );"; return os; } // ------------------------------------------------------------------------------------------------ // Operator: << std::ostream& operator << (std::ostream& os, const Module& m) { os << "module " << m.name << " (\n"; for(size_t i=0; i