litex/litesata/core/__init__.py

12 lines
456 B
Python
Raw Normal View History

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):
def __init__(self, phy, buffer_depth):
self.link = LiteSATALink(phy, buffer_depth)
2015-01-16 17:52:41 -05:00
self.transport = LiteSATATransport(self.link)
self.command = LiteSATACommand(self.transport)
self.sink, self.source = self.command.sink, self.command.source