Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
4ce62de58This file is pinned to the selected release. Download the original to open it in your design tool.
from amaranth import *
from amaranth.lib.cdc import FFSynchronizer
from amaranth.cli import main
i, o = Signal(name="i"), Signal(name="o")
m = Module()
m.submodules += FFSynchronizer(i, o)
if __name__ == "__main__":
main(m, ports=[i, o])