mem: Factor out DRAM interface
authorWendy Elsasser <wendy.elsasser@arm.com>
Mon, 18 Nov 2019 22:56:13 +0000 (16:56 -0600)
committerJason Lowe-Power <power.jg@gmail.com>
Tue, 8 Sep 2020 16:38:47 +0000 (16:38 +0000)
commit518e79ad2df51c6abe0af15259c5477ec0c1425c
treecb64af4884b15f91c5ea58939e80654e89df163b
parentbf380db1a1a501ade7ae517d88aaa41d8ca2db24
mem: Factor out DRAM interface

Separate out the DRAM specific functions into a new class:
- DRAMInterface

Move the Rank class to DRAMInterface since rank functions are
specific to the media.

Move DRAMPacket and Bank class definitions outside of DRAMCtrl.

This is patch 1 within a set of patches that separate the
memory controller and media interface. These changes enable
future incorporation of new media interfaces into the model.

Change-Id: Ief632d73ec27176a61f16b4f642c10d56630f376
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28967
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/dram_ctrl.cc
src/mem/dram_ctrl.hh