mirror of https://github.com/YosysHQ/yosys.git
fmt: function name typo
This commit is contained in:
parent
2d7b8f71cc
commit
1a222cb163
|
@ -214,7 +214,7 @@ void Fmt::emit_rtlil(RTLIL::Cell *cell) const {
|
||||||
cell->setPort(ID(ARGS), args);
|
cell->setPort(ID(ARGS), args);
|
||||||
}
|
}
|
||||||
|
|
||||||
static size_t compute_requried_decimal_places(size_t size, bool signed_)
|
static size_t compute_required_decimal_places(size_t size, bool signed_)
|
||||||
{
|
{
|
||||||
BigUnsigned max;
|
BigUnsigned max;
|
||||||
if (!signed_)
|
if (!signed_)
|
||||||
|
@ -234,7 +234,7 @@ static size_t compute_requried_decimal_places(size_t size, bool signed_)
|
||||||
static void apply_verilog_automatic_sizing(FmtPart &part)
|
static void apply_verilog_automatic_sizing(FmtPart &part)
|
||||||
{
|
{
|
||||||
if (part.base == 10) {
|
if (part.base == 10) {
|
||||||
size_t places = compute_requried_decimal_places(part.sig.size(), part.signed_);
|
size_t places = compute_required_decimal_places(part.sig.size(), part.signed_);
|
||||||
part.padding = ' ';
|
part.padding = ' ';
|
||||||
part.width = std::max(part.width, places);
|
part.width = std::max(part.width, places);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue