From b4bddc68e758699d1da184b36b714e7c3625f5f3 Mon Sep 17 00:00:00 2001 From: Mateusz Karlic Date: Mon, 17 Oct 2022 08:43:52 +0200 Subject: [PATCH] json2renode: Add LiteX MMCM --- litex/tools/litex_json2renode.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/litex/tools/litex_json2renode.py b/litex/tools/litex_json2renode.py index 1cfe82e3d..0dafeeb16 100755 --- a/litex/tools/litex_json2renode.py +++ b/litex/tools/litex_json2renode.py @@ -645,6 +645,12 @@ peripherals_handlers = { 'switches': { 'handler': generate_switches, }, + 'mmcm': { + 'handler': generate_peripheral, + 'model': 'Miscellaneous.LiteX_MMCM', + 'model_CSR32': 'Miscellaneous.LiteX_MMCM_CSR32', + 'ignored_constants': ['lock_timeout', 'drdy_timeout'], + }, 'ethphy': { 'handler': handled_peripheral # by generate_ethmac },