litex/litesata/core/__init__.py
Florent Kermarrec 6de7e15a0c refactor code
2015-01-17 13:22:52 +01:00

11 lines
428 B
Python

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):
self.link = LiteSATALink(phy)
self.transport = LiteSATATransport(self.link)
self.command = LiteSATACommand(self.transport)
self.sink, self.source = self.command.sink, self.command.source