annoying typo
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 15 Apr 2022 10:02:35 +0000 (11:02 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 15 Apr 2022 10:02:35 +0000 (11:02 +0100)
nmigen/lib/io.py

index acff790fb740026965adc52960fa471fda22286d..b307b3cdbf516cacdd019401cdc6c96023c6fbdd 100644 (file)
@@ -26,7 +26,7 @@ def pin_layout(width, dir, xdr=0):
     if dir in ("i", "io"):
         if xdr > 0:
             fields.append(("i_clk", 1))
-        if xdf >= 2:
+        if xdr >= 2:
             fields.append(("i_prst", 1))
         if xdr > 2:
             fields.append(("i_fclk", 1))