Changed amba exception
Modified Exception from AXIReadError to AXIProtocolError
Because that exception was raised during writes
and reads
@@ -36,7 +36,7 @@ import binascii
import array
-class AXIReadError(Exception):
+class AXIProtocolError(Exception):
pass
@@ -141,7 +141,7 @@ class AXI4LiteMaster(BusDriver):
yield RisingEdge(self.clock)
if int(result):
- raise AXIReadError("Write to address 0x%08x failed with BRESP: %d"
+ raise AXIProtocolError("Write to address 0x%08x failed with BRESP: %d"
% (address, int(result)))
raise ReturnValue(result)
@@ -175,7 +175,7 @@ class AXI4LiteMaster(BusDriver):
yield RisingEdge(self.clock)
if int(result):
- raise AXIReadError("Read address 0x%08x failed with RRESP: %d" %
+ raise AXIProtocolError("Read address 0x%08x failed with RRESP: %d" %
(address, int(result)))
raise ReturnValue(data)
