3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-06-22 16:50:29 +00:00

Get rid of normalize_to_width.

This commit is contained in:
nella 2026-06-11 01:12:35 +02:00
parent c44d24d9fd
commit 135c2a4113
3 changed files with 8 additions and 27 deletions

View file

@ -30,8 +30,8 @@ namespace CompressorTree
{
// Width and depth thresholds below which a ripple is preferred over parallel-prefix
constexpr int RIPPLE_PREFIX_THRESHOLD = 16;
constexpr int PREFIX_DEPTH_THRESHOLD = 5;
constexpr int RIPPLE_PREFIX_WIDTH_THRESHOLD = 16;
constexpr int RIPPLE_PREFIX_DEPTH_THRESHOLD = 5;
enum class Strategy {
FA_ONLY, // 3:2 compressors
@ -59,8 +59,6 @@ enum class FinalMode {
std::pair<SigSpec, SigSpec> emit_compressor_32(Module *module, SigSpec a, SigSpec b, SigSpec c, int width);
std::pair<SigSpec, SigSpec> emit_compressor_42(Module *module, SigSpec a, SigSpec b, SigSpec c, SigSpec d, int width);
SigSpec normalize_to_width(SigSpec sig, bool is_signed, int width);
/**
* generate_partial_products() - Generate partial products for FMA concat
* @module:The Yosys module to which the compressors will be added