2012-03-14 13:26:05 -04:00
|
|
|
from migen.fhdl.structure import *
|
|
|
|
|
2012-03-15 15:29:26 -04:00
|
|
|
class CommandRequest:
|
2012-03-17 19:12:03 -04:00
|
|
|
def __init__(self, a, ba):
|
|
|
|
self.a = Signal(BV(a))
|
|
|
|
self.ba = Signal(BV(ba))
|
2012-03-15 15:29:26 -04:00
|
|
|
self.cas_n = Signal(reset=1)
|
|
|
|
self.ras_n = Signal(reset=1)
|
|
|
|
self.we_n = Signal(reset=1)
|
|
|
|
|
|
|
|
class CommandRequestRW(CommandRequest):
|
2012-03-17 19:12:03 -04:00
|
|
|
def __init__(self, a, ba, tagbits):
|
|
|
|
CommandRequest.__init__(self, a, ba)
|
2012-03-15 15:29:26 -04:00
|
|
|
self.stb = Signal()
|
|
|
|
self.ack = Signal()
|
|
|
|
self.is_read = Signal()
|
|
|
|
self.is_write = Signal()
|
|
|
|
self.tag = Signal(BV(tagbits))
|
|
|
|
|
2012-03-14 13:26:05 -04:00
|
|
|
class Multiplexer:
|
|
|
|
def __init__(self, phy_settings, geom_settings, timing_settings, bank_machines, refresher, dfi, hub):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def get_fragment(self):
|
|
|
|
return Fragment()
|