2015-01-16 17:52:41 -05:00
|
|
|
from litesata.common import *
|
|
|
|
from litesata.core.link import LiteSATALink
|
|
|
|
from litesata.core.transport import LiteSATATransport
|
|
|
|
from litesata.core.command import LiteSATACommand
|
|
|
|
|
|
|
|
class LiteSATACore(Module):
|
2015-01-21 17:11:38 -05:00
|
|
|
def __init__(self, phy, buffer_depth):
|
2015-01-22 10:02:41 -05:00
|
|
|
self.submodules.link = LiteSATALink(phy, buffer_depth)
|
|
|
|
self.submodules.transport = LiteSATATransport(self.link)
|
|
|
|
self.submodules.command = LiteSATACommand(self.transport)
|
2015-01-16 17:52:41 -05:00
|
|
|
self.sink, self.source = self.command.sink, self.command.source
|