litex/lib/sata/__init__.py

15 lines
524 B
Python
Raw Normal View History

2014-12-15 13:13:32 -05:00
from migen.fhdl.std import *
from lib.sata.common import *
from lib.sata.link import SATALink
from lib.sata.transport import SATATransport
from lib.sata.command import SATACommand
class SATACON(Module):
2014-12-15 13:48:22 -05:00
def __init__(self, phy, sector_size=512, max_count=8):
2014-12-15 13:13:32 -05:00
self.submodules.link = SATALink(phy)
self.submodules.transport = SATATransport(self.link)
2014-12-15 13:48:22 -05:00
self.submodules.command = SATACommand(self.transport, sector_size=sector_size, max_count=max_count)
2014-12-15 13:13:32 -05:00
self.sink, self.source = self.command.sink, self.command.source