def METHOD_NAME(self, platform, fragment,
    bootaddr       = 0,
    spimode        = None,
    freq           = None,
    compress       = True,
    **kwargs):
    # Validate options
    ecp5_mclk_freqs = [
        2.4,
        4.8,
        9.7,
        19.4,
        38.8,
        62.0,
    ]
    if freq is not None:
        assert freq in ecp5_mclk_freqs, "Invalid MCLK frequency. Valid frequencies: " + str(ecp5_mclk_freqs)
    # prepare ecppack opts
    self._packer_opts += " --bootaddr {bootaddr} {spimode} {freq} {compress} ".format(
        bootaddr = bootaddr,
        spimode  = "" if spimode is None else f"--spimode {spimode}",
        freq     = "" if freq is None else "--freq {}".format(freq),
        compress = "" if not compress else "--compress"
    )
    return YosysNextPNRToolchain.METHOD_NAME(self, platform, fragment, **kwargs)