litesata: move file and modify import to misoclib.mem.litesata

This commit is contained in:
Florent Kermarrec 2015-02-28 10:53:51 +01:00
parent b6358be0a1
commit 0dfca49e68
93 changed files with 77 additions and 79 deletions

View File

@ -1,3 +0,0 @@
__pycache__
*.pyc
*.vcd

View File

@ -1,7 +1,7 @@
from litesata.common import *
from litesata.phy import *
from litesata.core import *
from litesata.frontend import *
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.phy import *
from misoclib.mem.litesata.core import *
from misoclib.mem.litesata.frontend import *
from migen.bank.description import *

View File

@ -1,7 +1,7 @@
from litesata.common import *
from litesata.core.link import LiteSATALink
from litesata.core.transport import LiteSATATransport
from litesata.core.command import LiteSATACommand
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.core.link import LiteSATALink
from misoclib.mem.litesata.core.transport import LiteSATATransport
from misoclib.mem.litesata.core.command import LiteSATACommand
class LiteSATACore(Module):
def __init__(self, phy, buffer_depth):

View File

@ -1,4 +1,4 @@
from litesata.common import *
from misoclib.mem.litesata.common import *
tx_to_rx = [
("write", 1),

View File

@ -1,7 +1,7 @@
from litesata.common import *
from litesata.core.link.crc import LiteSATACRCInserter, LiteSATACRCChecker
from litesata.core.link.scrambler import LiteSATAScrambler
from litesata.core.link.cont import LiteSATACONTInserter, LiteSATACONTRemover
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.core.link.crc import LiteSATACRCInserter, LiteSATACRCChecker
from misoclib.mem.litesata.core.link.scrambler import LiteSATAScrambler
from misoclib.mem.litesata.core.link.cont import LiteSATACONTInserter, LiteSATACONTRemover
from_rx = [
("idle", 1),

View File

@ -1,5 +1,5 @@
from litesata.common import *
from litesata.core.link.scrambler import Scrambler
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.core.link.scrambler import Scrambler
class LiteSATACONTInserter(Module):
def __init__(self, description):

View File

@ -1,5 +1,5 @@
from collections import OrderedDict
from litesata.common import *
from misoclib.mem.litesata.common import *
from migen.actorlib.crc import CRCInserter, CRCChecker

View File

@ -1,4 +1,4 @@
from litesata.common import *
from misoclib.mem.litesata.common import *
@DecorateModule(InsertCE)
class Scrambler(Module):

View File

@ -1,4 +1,4 @@
from litesata.common import *
from misoclib.mem.litesata.common import *
def _get_item(obj, name, width):
if "_lsb" in name:

View File

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

View File

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 94 KiB

View File

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@ -8,9 +8,10 @@ from migen.fhdl import verilog, edif
from migen.fhdl.structure import _Fragment
from migen.bank.description import CSRStatus
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):
r = ""

View File

@ -1,6 +1,6 @@
import os
from litesata.common import *
from misoclib.mem.litesata.common import *
from migen.bank import csrgen
from migen.bus import wishbone, csr
from migen.bus import wishbone2csr
@ -15,9 +15,9 @@ from litescope.bridge.uart2wb import LiteScopeUART2WB
from litescope.frontend.la import LiteScopeLA
from litescope.core.port import LiteScopeTerm
from litesata.common import *
from litesata.phy import LiteSATAPHY
from litesata import LiteSATA
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.phy import LiteSATAPHY
from misoclib.mem.litesata import LiteSATA
class _CRG(Module):
def __init__(self, platform):

View File

@ -2,9 +2,9 @@ from migen.genlib.resetsync import AsyncResetSynchronizer
from targets import *
from litesata.common import *
from litesata.phy import LiteSATAPHY
from litesata import LiteSATA
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.phy import LiteSATAPHY
from misoclib.mem.litesata import LiteSATA
class LiteSATACore(Module):
default_platform = "verilog_backend"

View File

@ -1,4 +1,4 @@
from litesata.common import *
from litesata.frontend.crossbar import LiteSATACrossbar
from litesata.frontend.arbiter import LiteSATAArbiter
from litesata.frontend.bist import LiteSATABIST
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.frontend.crossbar import LiteSATACrossbar
from misoclib.mem.litesata.frontend.arbiter import LiteSATAArbiter
from misoclib.mem.litesata.frontend.bist import LiteSATABIST

View File

@ -1,5 +1,5 @@
from litesata.common import *
from litesata.frontend.common import *
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.frontend.common import *
from migen.genlib.roundrobin import *

View File

@ -1,5 +1,5 @@
from litesata.common import *
from litesata.core.link.scrambler import Scrambler
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.core.link.scrambler import Scrambler
from migen.fhdl.decorators import ModuleDecorator
from migen.bank.description import *

View File

@ -1,4 +1,4 @@
from litesata.common import *
from misoclib.mem.litesata.common import *
class LiteSATAMasterPort:
def __init__(self, dw):

View File

@ -1,6 +1,6 @@
from litesata.common import *
from litesata.frontend.common import *
from litesata.frontend.arbiter import LiteSATAArbiter
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.frontend.common import *
from misoclib.mem.litesata.frontend.arbiter import LiteSATAArbiter
class LiteSATACrossbar(Module):
def __init__(self, core):

View File

@ -1,6 +1,6 @@
from litesata.common import *
from litesata.phy.ctrl import *
from litesata.phy.datapath import *
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.phy.ctrl import *
from misoclib.mem.litesata.phy.datapath import *
class LiteSATAPHY(Module):
def __init__(self, device, pads, revision, clk_freq):
@ -8,8 +8,8 @@ class LiteSATAPHY(Module):
self.revision = revision
# Transceiver / Clocks
if device[:3] == "xc7": # Kintex 7
from litesata.phy.k7.trx import K7LiteSATAPHYTRX
from litesata.phy.k7.crg import K7LiteSATAPHYCRG
from misoclib.mem.litesata.phy.k7.trx import K7LiteSATAPHYTRX
from misoclib.mem.litesata.phy.k7.crg import K7LiteSATAPHYCRG
self.submodules.trx = K7LiteSATAPHYTRX(pads, revision)
self.submodules.crg = K7LiteSATAPHYCRG(pads, self.trx, revision, clk_freq)
else:

View File

@ -1,4 +1,4 @@
from litesata.common import *
from misoclib.mem.litesata.common import *
def us(t, clk_freq):
clk_period_us = 1000000/clk_freq

View File

@ -1,4 +1,4 @@
from litesata.common import *
from misoclib.mem.litesata.common import *
class LiteSATAPHYDatapathRX(Module):
def __init__(self):

View File

@ -1,4 +1,4 @@
from litesata.common import *
from misoclib.mem.litesata.common import *
class K7LiteSATAPHYCRG(Module):
def __init__(self, pads, gtx, revision, clk_freq):

View File

@ -1,4 +1,4 @@
from litesata.common import *
from misoclib.mem.litesata.common import *
def ones(width):
return 2**width-1

View File

@ -1,9 +1,9 @@
from litesata.common import *
from litesata import LiteSATA
from litesata.frontend.bist import LiteSATABISTGenerator, LiteSATABISTChecker
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata import LiteSATA
from misoclib.mem.litesata.frontend.bist import LiteSATABISTGenerator, LiteSATABISTChecker
from litesata.test.hdd import *
from litesata.test.common import *
from misoclib.mem.litesata.test.hdd import *
from misoclib.mem.litesata.test.common import *
class TB(Module):
def __init__(self):

View File

@ -1,8 +1,8 @@
from litesata.common import *
from litesata.core import LiteSATACore
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.core import LiteSATACore
from litesata.test.hdd import *
from litesata.test.common import *
from misoclib.mem.litesata.test.hdd import *
from misoclib.mem.litesata.test.common import *
class CommandTXPacket(list):
def __init__(self, write=0, read=0, sector=0, count=0, data=[]):

View File

@ -2,7 +2,7 @@ import random, copy
from migen.sim.generic import run_simulation
from litesata.common import *
from misoclib.mem.litesata.common import *
def seed_to_data(seed, random=True):
if random:

View File

@ -1,7 +1,7 @@
from litesata.common import *
from litesata.core.link.cont import LiteSATACONTInserter, LiteSATACONTRemover
from misoclib.mem.litesata.common import *
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):
def __init__(self, data=[]):

View File

@ -1,9 +1,9 @@
import subprocess
from litesata.common import *
from litesata.core.link.crc import *
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.core.link.crc import *
from litesata.test.common import *
from misoclib.mem.litesata.test.common import *
class TB(Module):
def __init__(self, length, random):

View File

@ -1,8 +1,8 @@
import subprocess
import math
from litesata.common import *
from litesata.test.common import *
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.test.common import *
def print_with_prefix(s, prefix=""):
if not isinstance(s, str):

View File

@ -1,8 +1,8 @@
from litesata.common import *
from litesata.core.link import LiteSATALink
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.core.link import LiteSATALink
from litesata.test.common import *
from litesata.test.hdd import *
from misoclib.mem.litesata.test.common import *
from misoclib.mem.litesata.test.hdd import *
class LinkStreamer(PacketStreamer):
def __init__(self):

View File

@ -1,7 +1,7 @@
from litesata.common import *
from litesata.phy.datapath import LiteSATAPHYDatapath
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.phy.datapath import LiteSATAPHYDatapath
from litesata.test.common import *
from misoclib.mem.litesata.test.common import *
class DataPacket(list):
def __init__(self, data=[]):

View File

@ -1,9 +1,9 @@
import subprocess
from litesata.common import *
from litesata.core.link.scrambler import *
from misoclib.mem.litesata.common import *
from misoclib.mem.litesata.core.link.scrambler import *
from litesata.test.common import *
from misoclib.mem.litesata.test.common import *
class TB(Module):
def __init__(self, length):