command: fix ValueError msg
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 15 Dec 2014 14:34:00 +0000 (15:34 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 15 Dec 2014 14:34:00 +0000 (15:34 +0100)
lib/sata/command/__init__.py

index 26306fa18286a8ddc1fd5f5fe35c55b529fb7939..42104f0cbb0faf0d1bdc2537830ebd6345fcfbf7 100644 (file)
@@ -274,7 +274,7 @@ class SATACommandRX(Module):
 class SATACommand(Module):
        def __init__(self, transport, sector_size=512, max_count=4):
                if max_count*sector_size > 8192:
-                       raise ValueError("sector_size x max_count must be <= 2048")
+                       raise ValueError("sector_size * max_count must be <= 8192")
                self.submodules.tx = SATACommandTX(transport, sector_size)
                self.submodules.rx = SATACommandRX(transport, sector_size, max_count)
                self.comb += [