litesata: move file and modify import to misoclib.mem.litesata
|
@ -1,3 +0,0 @@
|
||||||
__pycache__
|
|
||||||
*.pyc
|
|
||||||
*.vcd
|
|
|
@ -1,7 +1,7 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.phy import *
|
from misoclib.mem.litesata.phy import *
|
||||||
from litesata.core import *
|
from misoclib.mem.litesata.core import *
|
||||||
from litesata.frontend import *
|
from misoclib.mem.litesata.frontend import *
|
||||||
|
|
||||||
from migen.bank.description import *
|
from migen.bank.description import *
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.core.link import LiteSATALink
|
from misoclib.mem.litesata.core.link import LiteSATALink
|
||||||
from litesata.core.transport import LiteSATATransport
|
from misoclib.mem.litesata.core.transport import LiteSATATransport
|
||||||
from litesata.core.command import LiteSATACommand
|
from misoclib.mem.litesata.core.command import LiteSATACommand
|
||||||
|
|
||||||
class LiteSATACore(Module):
|
class LiteSATACore(Module):
|
||||||
def __init__(self, phy, buffer_depth):
|
def __init__(self, phy, buffer_depth):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
|
|
||||||
tx_to_rx = [
|
tx_to_rx = [
|
||||||
("write", 1),
|
("write", 1),
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.core.link.crc import LiteSATACRCInserter, LiteSATACRCChecker
|
from misoclib.mem.litesata.core.link.crc import LiteSATACRCInserter, LiteSATACRCChecker
|
||||||
from litesata.core.link.scrambler import LiteSATAScrambler
|
from misoclib.mem.litesata.core.link.scrambler import LiteSATAScrambler
|
||||||
from litesata.core.link.cont import LiteSATACONTInserter, LiteSATACONTRemover
|
from misoclib.mem.litesata.core.link.cont import LiteSATACONTInserter, LiteSATACONTRemover
|
||||||
|
|
||||||
from_rx = [
|
from_rx = [
|
||||||
("idle", 1),
|
("idle", 1),
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.core.link.scrambler import Scrambler
|
from misoclib.mem.litesata.core.link.scrambler import Scrambler
|
||||||
|
|
||||||
class LiteSATACONTInserter(Module):
|
class LiteSATACONTInserter(Module):
|
||||||
def __init__(self, description):
|
def __init__(self, description):
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
|
|
||||||
from migen.actorlib.crc import CRCInserter, CRCChecker
|
from migen.actorlib.crc import CRCInserter, CRCChecker
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
|
|
||||||
@DecorateModule(InsertCE)
|
@DecorateModule(InsertCE)
|
||||||
class Scrambler(Module):
|
class Scrambler(Module):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
|
|
||||||
def _get_item(obj, name, width):
|
def _get_item(obj, name, width):
|
||||||
if "_lsb" in name:
|
if "_lsb" in name:
|
||||||
|
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 197 KiB After Width: | Height: | Size: 197 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
|
@ -8,9 +8,10 @@ from migen.fhdl import verilog, edif
|
||||||
from migen.fhdl.structure import _Fragment
|
from migen.fhdl.structure import _Fragment
|
||||||
from migen.bank.description import CSRStatus
|
from migen.bank.description import CSRStatus
|
||||||
from mibuild import tools
|
from mibuild import tools
|
||||||
from mibuild.xilinx_common import *
|
from mibuild.xilinx.common import *
|
||||||
|
|
||||||
from litesata.common import *
|
sys.path.append("../../../../") # Temporary
|
||||||
|
from misoclib.mem.litesata.common import *
|
||||||
|
|
||||||
def get_csr_csv(regions):
|
def get_csr_csv(regions):
|
||||||
r = ""
|
r = ""
|
|
@ -1,6 +1,6 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from migen.bank import csrgen
|
from migen.bank import csrgen
|
||||||
from migen.bus import wishbone, csr
|
from migen.bus import wishbone, csr
|
||||||
from migen.bus import wishbone2csr
|
from migen.bus import wishbone2csr
|
||||||
|
@ -15,9 +15,9 @@ from litescope.bridge.uart2wb import LiteScopeUART2WB
|
||||||
from litescope.frontend.la import LiteScopeLA
|
from litescope.frontend.la import LiteScopeLA
|
||||||
from litescope.core.port import LiteScopeTerm
|
from litescope.core.port import LiteScopeTerm
|
||||||
|
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.phy import LiteSATAPHY
|
from misoclib.mem.litesata.phy import LiteSATAPHY
|
||||||
from litesata import LiteSATA
|
from misoclib.mem.litesata import LiteSATA
|
||||||
|
|
||||||
class _CRG(Module):
|
class _CRG(Module):
|
||||||
def __init__(self, platform):
|
def __init__(self, platform):
|
|
@ -2,9 +2,9 @@ from migen.genlib.resetsync import AsyncResetSynchronizer
|
||||||
|
|
||||||
from targets import *
|
from targets import *
|
||||||
|
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.phy import LiteSATAPHY
|
from misoclib.mem.litesata.phy import LiteSATAPHY
|
||||||
from litesata import LiteSATA
|
from misoclib.mem.litesata import LiteSATA
|
||||||
|
|
||||||
class LiteSATACore(Module):
|
class LiteSATACore(Module):
|
||||||
default_platform = "verilog_backend"
|
default_platform = "verilog_backend"
|
|
@ -1,4 +1,4 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.frontend.crossbar import LiteSATACrossbar
|
from misoclib.mem.litesata.frontend.crossbar import LiteSATACrossbar
|
||||||
from litesata.frontend.arbiter import LiteSATAArbiter
|
from misoclib.mem.litesata.frontend.arbiter import LiteSATAArbiter
|
||||||
from litesata.frontend.bist import LiteSATABIST
|
from misoclib.mem.litesata.frontend.bist import LiteSATABIST
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.frontend.common import *
|
from misoclib.mem.litesata.frontend.common import *
|
||||||
|
|
||||||
from migen.genlib.roundrobin import *
|
from migen.genlib.roundrobin import *
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.core.link.scrambler import Scrambler
|
from misoclib.mem.litesata.core.link.scrambler import Scrambler
|
||||||
|
|
||||||
from migen.fhdl.decorators import ModuleDecorator
|
from migen.fhdl.decorators import ModuleDecorator
|
||||||
from migen.bank.description import *
|
from migen.bank.description import *
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
|
|
||||||
class LiteSATAMasterPort:
|
class LiteSATAMasterPort:
|
||||||
def __init__(self, dw):
|
def __init__(self, dw):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.frontend.common import *
|
from misoclib.mem.litesata.frontend.common import *
|
||||||
from litesata.frontend.arbiter import LiteSATAArbiter
|
from misoclib.mem.litesata.frontend.arbiter import LiteSATAArbiter
|
||||||
|
|
||||||
class LiteSATACrossbar(Module):
|
class LiteSATACrossbar(Module):
|
||||||
def __init__(self, core):
|
def __init__(self, core):
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.phy.ctrl import *
|
from misoclib.mem.litesata.phy.ctrl import *
|
||||||
from litesata.phy.datapath import *
|
from misoclib.mem.litesata.phy.datapath import *
|
||||||
|
|
||||||
class LiteSATAPHY(Module):
|
class LiteSATAPHY(Module):
|
||||||
def __init__(self, device, pads, revision, clk_freq):
|
def __init__(self, device, pads, revision, clk_freq):
|
||||||
|
@ -8,8 +8,8 @@ class LiteSATAPHY(Module):
|
||||||
self.revision = revision
|
self.revision = revision
|
||||||
# Transceiver / Clocks
|
# Transceiver / Clocks
|
||||||
if device[:3] == "xc7": # Kintex 7
|
if device[:3] == "xc7": # Kintex 7
|
||||||
from litesata.phy.k7.trx import K7LiteSATAPHYTRX
|
from misoclib.mem.litesata.phy.k7.trx import K7LiteSATAPHYTRX
|
||||||
from litesata.phy.k7.crg import K7LiteSATAPHYCRG
|
from misoclib.mem.litesata.phy.k7.crg import K7LiteSATAPHYCRG
|
||||||
self.submodules.trx = K7LiteSATAPHYTRX(pads, revision)
|
self.submodules.trx = K7LiteSATAPHYTRX(pads, revision)
|
||||||
self.submodules.crg = K7LiteSATAPHYCRG(pads, self.trx, revision, clk_freq)
|
self.submodules.crg = K7LiteSATAPHYCRG(pads, self.trx, revision, clk_freq)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
|
|
||||||
def us(t, clk_freq):
|
def us(t, clk_freq):
|
||||||
clk_period_us = 1000000/clk_freq
|
clk_period_us = 1000000/clk_freq
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
|
|
||||||
class LiteSATAPHYDatapathRX(Module):
|
class LiteSATAPHYDatapathRX(Module):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
|
|
||||||
class K7LiteSATAPHYCRG(Module):
|
class K7LiteSATAPHYCRG(Module):
|
||||||
def __init__(self, pads, gtx, revision, clk_freq):
|
def __init__(self, pads, gtx, revision, clk_freq):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
|
|
||||||
def ones(width):
|
def ones(width):
|
||||||
return 2**width-1
|
return 2**width-1
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata import LiteSATA
|
from misoclib.mem.litesata import LiteSATA
|
||||||
from litesata.frontend.bist import LiteSATABISTGenerator, LiteSATABISTChecker
|
from misoclib.mem.litesata.frontend.bist import LiteSATABISTGenerator, LiteSATABISTChecker
|
||||||
|
|
||||||
from litesata.test.hdd import *
|
from misoclib.mem.litesata.test.hdd import *
|
||||||
from litesata.test.common import *
|
from misoclib.mem.litesata.test.common import *
|
||||||
|
|
||||||
class TB(Module):
|
class TB(Module):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.core import LiteSATACore
|
from misoclib.mem.litesata.core import LiteSATACore
|
||||||
|
|
||||||
from litesata.test.hdd import *
|
from misoclib.mem.litesata.test.hdd import *
|
||||||
from litesata.test.common import *
|
from misoclib.mem.litesata.test.common import *
|
||||||
|
|
||||||
class CommandTXPacket(list):
|
class CommandTXPacket(list):
|
||||||
def __init__(self, write=0, read=0, sector=0, count=0, data=[]):
|
def __init__(self, write=0, read=0, sector=0, count=0, data=[]):
|
||||||
|
|
|
@ -2,7 +2,7 @@ import random, copy
|
||||||
|
|
||||||
from migen.sim.generic import run_simulation
|
from migen.sim.generic import run_simulation
|
||||||
|
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
|
|
||||||
def seed_to_data(seed, random=True):
|
def seed_to_data(seed, random=True):
|
||||||
if random:
|
if random:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.core.link.cont import LiteSATACONTInserter, LiteSATACONTRemover
|
from misoclib.mem.litesata.core.link.cont import LiteSATACONTInserter, LiteSATACONTRemover
|
||||||
|
|
||||||
from litesata.test.common import *
|
from misoclib.mem.litesata.test.common import *
|
||||||
|
|
||||||
class ContPacket(list):
|
class ContPacket(list):
|
||||||
def __init__(self, data=[]):
|
def __init__(self, data=[]):
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.core.link.crc import *
|
from misoclib.mem.litesata.core.link.crc import *
|
||||||
|
|
||||||
from litesata.test.common import *
|
from misoclib.mem.litesata.test.common import *
|
||||||
|
|
||||||
class TB(Module):
|
class TB(Module):
|
||||||
def __init__(self, length, random):
|
def __init__(self, length, random):
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import subprocess
|
import subprocess
|
||||||
import math
|
import math
|
||||||
|
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.test.common import *
|
from misoclib.mem.litesata.test.common import *
|
||||||
|
|
||||||
def print_with_prefix(s, prefix=""):
|
def print_with_prefix(s, prefix=""):
|
||||||
if not isinstance(s, str):
|
if not isinstance(s, str):
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.core.link import LiteSATALink
|
from misoclib.mem.litesata.core.link import LiteSATALink
|
||||||
|
|
||||||
from litesata.test.common import *
|
from misoclib.mem.litesata.test.common import *
|
||||||
from litesata.test.hdd import *
|
from misoclib.mem.litesata.test.hdd import *
|
||||||
|
|
||||||
class LinkStreamer(PacketStreamer):
|
class LinkStreamer(PacketStreamer):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.phy.datapath import LiteSATAPHYDatapath
|
from misoclib.mem.litesata.phy.datapath import LiteSATAPHYDatapath
|
||||||
|
|
||||||
from litesata.test.common import *
|
from misoclib.mem.litesata.test.common import *
|
||||||
|
|
||||||
class DataPacket(list):
|
class DataPacket(list):
|
||||||
def __init__(self, data=[]):
|
def __init__(self, data=[]):
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from litesata.common import *
|
from misoclib.mem.litesata.common import *
|
||||||
from litesata.core.link.scrambler import *
|
from misoclib.mem.litesata.core.link.scrambler import *
|
||||||
|
|
||||||
from litesata.test.common import *
|
from misoclib.mem.litesata.test.common import *
|
||||||
|
|
||||||
class TB(Module):
|
class TB(Module):
|
||||||
def __init__(self, length):
|
def __init__(self, length):
|
||||||
|
|