sdram: move lasmibus to core, rename crossbar to lasmixbar and move it to core, move dfi to phy

This commit is contained in:
Florent Kermarrec 2015-03-03 09:49:57 +01:00
parent 9210272356
commit 905be50451
16 changed files with 16 additions and 16 deletions

View File

@ -4,7 +4,7 @@ from migen.bank.description import *
from misoclib.mem.sdram.phy import dfii
from misoclib.mem.sdram.core import minicon, lasmicon
from misoclib.mem.sdram.core.lasmicon.crossbar import Crossbar
from misoclib.mem.sdram.core import lasmixbar
class SDRAMCore(Module, AutoCSR):
def __init__(self, phy, ramcon_type, sdram_geom, sdram_timing, **kwargs):
@ -18,7 +18,7 @@ class SDRAMCore(Module, AutoCSR):
self.submodules.controller = controller = lasmicon.LASMIcon(phy.settings, sdram_geom, sdram_timing, **kwargs)
self.comb += Record.connect(controller.dfi, self.dfii.slave)
self.submodules.crossbar = crossbar = Crossbar([controller.lasmic], controller.nrowbits)
self.submodules.crossbar = crossbar = lasmixbar.LASMIxbar([controller.lasmic], controller.nrowbits)
# MINICON
elif ramcon_type == "minicon":

View File

@ -1,6 +1,7 @@
from migen.fhdl.std import *
from misoclib.mem.sdram.bus import dfi, lasmibus
from misoclib.mem.sdram.phy import dfi
from misoclib.mem.sdram.core import lasmibus
from misoclib.mem.sdram.core.lasmicon.refresher import *
from misoclib.mem.sdram.core.lasmicon.bankmachine import *
from misoclib.mem.sdram.core.lasmicon.multiplexer import *

View File

@ -3,7 +3,7 @@ from migen.genlib import roundrobin
from migen.genlib.record import *
from migen.genlib.misc import optree
from misoclib.mem.sdram.bus.lasmibus import Interface
from misoclib.mem.sdram.core.lasmibus import Interface
def _getattr_all(l, attr):
it = iter(l)
@ -13,7 +13,7 @@ def _getattr_all(l, attr):
raise ValueError
return r
class Crossbar(Module):
class LASMIxbar(Module):
def __init__(self, controllers, cba_shift):
self._controllers = controllers
self._cba_shift = cba_shift

View File

@ -2,7 +2,7 @@ from migen.fhdl.std import *
from migen.bus import wishbone
from migen.genlib.fsm import FSM, NextState
from misoclib.mem.sdram.bus import dfi as dfibus
from misoclib.mem.sdram.phy import dfi as dfibus
class _AddressSlicer:
def __init__(self, col_a, bank_a, row_a, address_align):

View File

@ -1,7 +1,7 @@
from migen.fhdl.std import *
from migen.bank.description import *
from misoclib.mem.sdram.bus import dfi
from misoclib.mem.sdram.phy import dfi
class PhaseInjector(Module, AutoCSR):
def __init__(self, phase):

View File

@ -25,7 +25,7 @@ from migen.fhdl.std import *
from migen.genlib.record import *
from migen.fhdl.specials import *
from misoclib.mem.sdram.bus.dfi import *
from misoclib.mem.sdram.phy.dfi import *
from misoclib.mem import sdram
class GENSDRPHY(Module):

View File

@ -3,7 +3,7 @@
from migen.fhdl.std import *
from migen.bank.description import *
from misoclib.mem.sdram.bus.dfi import *
from misoclib.mem.sdram.phy.dfi import *
from misoclib.mem import sdram
class K7DDRPHY(Module, AutoCSR):

View File

@ -17,7 +17,7 @@
from migen.fhdl.std import *
from migen.genlib.record import *
from misoclib.mem.sdram.bus.dfi import *
from misoclib.mem.sdram.phy.dfi import *
from misoclib.mem import sdram
class S6DDRPHY(Module):

View File

@ -2,7 +2,7 @@ from migen.fhdl.std import *
from migen.bus.transactions import *
from migen.sim.generic import run_simulation
from misoclib.mem.sdram.bus import lasmibus
from misoclib.mem.sdram.core import lasmibus
def my_generator(n):
bank = n % 4

View File

@ -1,7 +1,7 @@
from migen.fhdl.std import *
from migen.sim.generic import run_simulation
from misoclib.mem.sdram.bus import lasmibus
from misoclib.mem.sdram.code import lasmibus
from misoclib.mem.sdram.core.lasmicon.bankmachine import *
from common import sdram_phy, sdram_geom, sdram_timing, CommandLogger

View File

@ -1,7 +1,7 @@
from migen.fhdl.std import *
from migen.sim.generic import run_simulation
from misoclib.mem.sdram.bus import lasmibus
from misoclib.mem.sdram.core import lasmibus
from misoclib.mem.sdram.core.lasmicon import *
from misoclib.mem.sdram.frontend import dma_lasmi

View File

@ -1,7 +1,7 @@
from migen.fhdl.std import *
from migen.sim.generic import run_simulation
from misoclib.mem.sdram.bus import lasmibus
from misoclib.mem.sdram.core import lasmibus
from misoclib.mem.sdram.core.lasmicon import *
from common import sdram_phy, sdram_geom, sdram_timing, DFILogger

View File

@ -3,7 +3,7 @@ from migen.bus import wishbone
from migen.bus.transactions import *
from migen.sim.generic import run_simulation
from misoclib.mem.sdram.bus import lasmibus
from misoclib.mem.sdram.core import lasmibus
from misoclib.mem.sdram.core.lasmicon import *
from misoclib.mem.sdram.frontend import wishbone2lasmi

View File

@ -2,7 +2,6 @@ from migen.fhdl.std import *
from migen.bus import wishbone, csr
from migen.genlib.record import *
from misoclib.mem.sdram.bus import dfi, lasmibus
from misoclib.mem.sdram.core import SDRAMCore
from misoclib.mem.sdram.frontend import memtest, wishbone2lasmi
from misoclib.soc import SoC, mem_decoder