ddr3_mr_gen: Display RZQ/x with --list (Useful for comparison with MIG's settings expressed in RZQ/x).

This commit is contained in:
Florent Kermarrec 2022-02-24 14:44:02 +01:00
parent e48471ea43
commit 70c1491d1c
1 changed files with 9 additions and 3 deletions

View File

@ -70,17 +70,23 @@ z_to_ron = {
"34ohm" : 0b1,
}
def r2rzq(r):
r = r.replace("ohm", "")
if r == "disabled":
return ""
return f"(RZQ/{240//int(r)})"
if args.list:
print("Supported DDR3 Electrical settings:")
print("rtt_nom:")
for v in z_to_rtt_nom.keys():
print(f" - {v}")
print(f" - {v} {' '*(8-len(v))} {r2rzq(v)}")
print("rtt_wr:")
for v in z_to_rtt_wr.keys():
print(f" - {v}")
print(f" - {v} {' '*(8-len(v))} {r2rzq(v)}")
print("ron:")
for v in z_to_ron.keys():
print(f" - {v}")
print(f" - {v} {' '*(8-len(v))} {r2rzq(v)}")
# DDR4 Mode Register formating ---------------------------------------------------------------------