Skip to content

Commit

Permalink
sdram: revert use of scalar values for DFIInjector
Browse files Browse the repository at this point in the history
  • Loading branch information
enjoy-digital committed Mar 3, 2015
1 parent 9df60bf commit 2f7206b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion misoclib/mem/sdram/core/__init__.py
Expand Up @@ -9,7 +9,8 @@
class SDRAMCore(Module, AutoCSR):
def __init__(self, phy, ramcon_type, sdram_geom, sdram_timing, **kwargs):
# DFI
self.submodules.dfii = dfii.DFIInjector(phy, sdram_geom.mux_a, sdram_geom.bank_a)
self.submodules.dfii = dfii.DFIInjector(sdram_geom.mux_a, sdram_geom.bank_a,
phy.settings.dfi_d, phy.settings.nphases)
self.comb += Record.connect(self.dfii.master, phy.dfi)

# LASMICON
Expand Down
4 changes: 1 addition & 3 deletions misoclib/mem/sdram/phy/dfii.py
Expand Up @@ -36,9 +36,7 @@ def __init__(self, phase):
self.sync += If(phase.rddata_valid, self._rddata.status.eq(phase.rddata))

class DFIInjector(Module, AutoCSR):
def __init__(self, phy, a, ba):
d = phy.settings.dfi_d
nphases = phy.settings.nphases
def __init__(self, a, ba, d, nphases=1):
inti = dfi.Interface(a, ba, d, nphases)
self.slave = dfi.Interface(a, ba, d, nphases)
self.master = dfi.Interface(a, ba, d, nphases)
Expand Down

0 comments on commit 2f7206b

Please sign in to comment.