frontend/crossbar: get_master --> get_port

This commit is contained in:
Florent Kermarrec 2016-04-29 17:42:32 +02:00
parent c8d2850e8c
commit 3dab76514a
1 changed files with 4 additions and 4 deletions

View File

@ -23,13 +23,13 @@ class LiteDRAMCrossbar(Module):
self._masters = []
def get_master(self):
def get_port(self):
if self.finalized:
raise FinalizeError
lasmi_master = Interface(self._rca_bits + self._bank_bits,
port = Interface(self._rca_bits + self._bank_bits,
self._dw, 1, self._req_queue_size, self._read_latency, self._write_latency)
self._masters.append(lasmi_master)
return lasmi_master
self._masters.append(port)
return port
def do_finalize(self):
nmasters = len(self._masters)