soc/core: simplify/cleanup HyperRAM core
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 16 Aug 2019 11:56:56 +0000 (13:56 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 16 Aug 2019 12:04:58 +0000 (14:04 +0200)
commit4990bf33c0f921d870d08d5633ff5921e1d0d2e6
tree1c826b0956dca75fb3f4a2cad9752270e17b5d28
parentd1502d4195f116d217f35c928900ce490e324005
soc/core: simplify/cleanup HyperRAM core
- rename core to hyperbus.
- change layout (cs_n with variable length instead of cs0_n, cs1_n).
- use DifferentialOutput when differential clock is used.
- add test (python3 -m unittest test.test_hyperbus).

Usage example:
from litex.soc.cores.hyperbus import HyperRAM
self.submodules.hyperram = HyperRAM(platform.request("hyperram"))
self.add_wb_slave(mem_decoder(self.mem_map["hyperram"]), self.hyperram.bus)
self.add_memory_region("hyperram", self.mem_map["hyperram"], 8*1024*1024)
litex/soc/cores/hyper_memory.py [deleted file]
litex/soc/cores/hyperbus.py [new file with mode: 0644]
test/test_hyperbus.py [new file with mode: 0644]