Gowin. Fix aux name creation
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
This commit is contained in:
parent
7ba83d3f88
commit
a20da21eb7
@ -183,11 +183,8 @@ bool GowinUtils::need_BLKSEL_fix(void)
|
|||||||
|
|
||||||
IdString GowinUtils::create_aux_name(IdString main_name, int idx, const char *str_suffix)
|
IdString GowinUtils::create_aux_name(IdString main_name, int idx, const char *str_suffix)
|
||||||
{
|
{
|
||||||
std::string sfx("");
|
return idx ? ctx->idf("%s%s%d", main_name.c_str(ctx), str_suffix, idx)
|
||||||
if (idx) {
|
: ctx->idf("%s%s", main_name.c_str(ctx), str_suffix);
|
||||||
sfx = std::to_string(idx);
|
|
||||||
}
|
|
||||||
return ctx->id(main_name.str(ctx) + std::string(str_suffix) + sfx);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<CellInfo> GowinUtils::create_cell(IdString name, IdString type)
|
std::unique_ptr<CellInfo> GowinUtils::create_cell(IdString name, IdString type)
|
||||||
|
Loading…
Reference in New Issue
Block a user