From d4cd159c9c329cd8ca234f1bebe46c98389e3982 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 15 Dec 2014 15:34:00 +0100 Subject: [PATCH] command: fix ValueError msg --- lib/sata/command/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sata/command/__init__.py b/lib/sata/command/__init__.py index 26306fa1..42104f0c 100644 --- a/lib/sata/command/__init__.py +++ b/lib/sata/command/__init__.py @@ -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 += [ -- 2.30.2