diff --git a/himbaechel/uarch/gatemate/gatemate.cc b/himbaechel/uarch/gatemate/gatemate.cc index 27a56350..8d5ec89a 100644 --- a/himbaechel/uarch/gatemate/gatemate.cc +++ b/himbaechel/uarch/gatemate/gatemate.cc @@ -428,14 +428,14 @@ void GateMateImpl::preRoute() void GateMateImpl::reassign_bridges(NetInfo *start_nfo, const dict &net_wires, WireId start_wire, dict &wire_to_net, int &num) { - // processing list, implements the equivalent of recursive calls + // Processing list, holds parameters to implement the equivalent of recursive calls. struct record { NetInfo *nfo; WireId wire; }; std::vector to_process; - // start record + // Insert start record. to_process.push_back({start_nfo, start_wire}); - // for as long as there are pending records + // For as long as there are pending records, process them. while (!to_process.empty()) { - + // Get the next record to process. record cur = to_process.back(); to_process.pop_back(); @@ -458,7 +458,7 @@ void GateMateImpl::reassign_bridges(NetInfo *start_nfo, const dictname][id_MUXOUT] = in_port; num++; - // recurse - to_process.push_back({new_net,dst}); + // Insert in processing list (recurse). + to_process.push_back({new_net, dst}); } } }