Skip to content

Commit

Permalink
wrapcell: Add comments, const qualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Dec 10, 2024
1 parent 9161377 commit 3cd01a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion passes/cmds/wrapcell.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct ContextData {
};

std::optional<std::string> format(std::string fmt, const dict<IdString, Const> &parameters,
ContextData &context)
const ContextData &context)
{
std::stringstream result;

Expand Down Expand Up @@ -108,6 +108,7 @@ struct Chunk {
}
};

// Joins contiguous runs of bits into a 'Chunk'
std::vector<Chunk> collect_chunks(std::vector<std::pair<IdString, int>> bits)
{
std::vector<Chunk> ret;
Expand Down Expand Up @@ -242,6 +243,7 @@ struct WrapcellPass : Pass {
subcell = subm->addCell("$1", cell->type);
for (auto conn : cell->connections()) {
if (ct.cell_output(cell->type, conn.first)) {
// Insert marker bits as placehodlers which need to be replaced
subcell->setPort(conn.first, SigSpec(RTLIL::Sm, conn.second.size()));
} else {
Wire *w = subm->addWire(conn.first, conn.second.size());
Expand Down

0 comments on commit 3cd01a5

Please sign in to comment.