SAIFIINDUSTRIES's picture
Add batch 1 (YosysHQ_picorv32, alexforencich_verilog-ethernet, The-OpenROAD-Project_OpenROAD, darklife_darkriscv, corundum_corundum)
f61bac1 verified
Raw History Blame Contribute Delete
536 Bytes
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2019-2025, The OpenROAD Authors
//
// Fmt formatter for sta::Delay (and aliases: ArcDelay, Slew, Arrival,
// Required, Slack) so they can be used with spdlog/fmt formatting.
#pragma once
#include "spdlog/fmt/fmt.h" // IWYU pragma: keep
#include "sta/Delay.hh"
template <>
struct fmt::formatter<sta::Delay> : fmt::formatter<float>
{
auto format(const sta::Delay& d, format_context& ctx) const
{
return fmt::formatter<float>::format(sta::delayAsFloat(d), ctx);
}
};