mirror of
https://github.com/alexforencich/verilog-axi.git
synced 2025-01-14 06:42:55 +08:00
Check for disconnected ports
This commit is contained in:
parent
0cb456e047
commit
e29114fe04
@ -251,6 +251,10 @@ class AXIMaster(object):
|
||||
if not self.write_command_queue:
|
||||
yield self.write_command_sync
|
||||
|
||||
if m_axi_awaddr is None:
|
||||
print("Error: attempted write on read-only interface")
|
||||
raise StopSimulation
|
||||
|
||||
addr, data, burst, size, lock, cache, prot, qos, region, user = self.write_command_queue.pop(0)
|
||||
self.in_flight_operations += 1
|
||||
|
||||
@ -410,6 +414,10 @@ class AXIMaster(object):
|
||||
if not self.read_command_queue:
|
||||
yield self.read_command_sync
|
||||
|
||||
if m_axi_araddr is None:
|
||||
print("Error: attempted read on write-only interface")
|
||||
raise StopSimulation
|
||||
|
||||
addr, length, burst, size, lock, cache, prot, qos, region, user = self.read_command_queue.pop(0)
|
||||
self.in_flight_operations += 1
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user