From c12e832bcb735c9eb379ed3be171cd0c602cf5ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Wed, 31 Mar 2021 15:58:43 +0200 Subject: [PATCH] init: fix python header generation With the previous code lines included python variable names instead of integers, e.g. ("ZQ Calibration start", MPC.ZQC_START, SpecialCmd.MPC, dfii_command_we|dfii_command_cs, 200) which failed as these names were not being imported. --- litedram/init.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/litedram/init.py b/litedram/init.py index 71ac799..6021ed0 100644 --- a/litedram/init.py +++ b/litedram/init.py @@ -827,12 +827,6 @@ def get_sdram_phy_py_header(phy_settings, timing_settings): r += "init_sequence = [\n" for comment, a, ba, cmd, delay in init_sequence: - r += " " - r += "(\"" + comment + "\", " - r += str(a) + ", " - r += str(ba) + ", " - r += cmd.lower() + ", " - r += str(delay) + ")," - r += "\n" + r += f" (\"{comment}\", {a}, {ba}, {cmd.lower()}, {delay}),\n" r += "]\n" return r