示例#1
0
    def __init__(self):
        self.write_user_port = LiteDRAMWritePort(aw=32, dw=32)
        self.write_crossbar_port = LiteDRAMWritePort(aw=32, dw=128)
        self.submodules.write_converter = LiteDRAMPortConverter(self.write_user_port,
                                                                self.write_crossbar_port)

        self.read_user_port = LiteDRAMReadPort(aw=32, dw=32)
        self.read_crossbar_port = LiteDRAMReadPort(aw=32, dw=128)
        self.submodules.read_converter = LiteDRAMPortConverter(self.read_user_port,
                                                               self.read_crossbar_port)

        self.memory = DRAMMemory(128, 128)
示例#2
0
 def __init__(self):
     self.write_port = LiteDRAMWritePort(aw=32, dw=32)
     self.read_port = LiteDRAMReadPort(aw=32, dw=32)
     self.submodules.generator = LiteDRAMBISTGenerator(self.write_port,
                                                       random=True)
     self.submodules.checker = LiteDRAMBISTChecker(self.read_port,
                                                   random=True)
示例#3
0
    def __init__(self):
        # write port and converter
        self.write_user_port = LiteDRAMWritePort(aw=32, dw=32)
        self.write_crossbar_port = LiteDRAMWritePort(aw=32, dw=128)
        write_converter = LiteDRAMPortConverter(self.write_user_port,
                                                self.write_crossbar_port)
        self.submodules += write_converter

        # read port and converter
        self.read_user_port = LiteDRAMReadPort(aw=32, dw=32)
        self.read_crossbar_port = LiteDRAMReadPort(aw=32, dw=128)
        read_converter = LiteDRAMPortConverter(self.read_user_port,
                                               self.read_crossbar_port)
        self.submodules += read_converter

        # memory
        self.memory = DRAMMemory(128, 128)