diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2012-07-12 12:56:13 -0400 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2012-07-12 12:56:13 -0400 |
commit | f00cba34eb8e6bf947721f72de314f4e8bd6a8f8 (patch) | |
tree | 432ab17d82d72d5042758f25066dc64558c9a7f8 /src/mem/simple_mem.hh | |
parent | 55bfe13705a3eccdffb6846dd87df5f190b04c99 (diff) | |
download | gem5-f00cba34eb8e6bf947721f72de314f4e8bd6a8f8.tar.xz |
Mem: Make SimpleMemory single ported
This patch changes the simple memory to have a single slave port
rather than a vector port. The simple memory makes no attempts at
modelling the contention between multiple ports, and any such
multiplexing and demultiplexing could be done in a bus (or crossbar)
outside the memory controller. This scenario also matches with the
ongoing work on a SimpleDRAM model, which will be a single-ported
single-channel controller that can be used in conjunction with a bus
(or crossbar) to create a multi-port multi-channel controller.
There are only very few regressions that make use of the vector port,
and these are all for functional accesses only. To facilitate these
cases, memtest and memtest-ruby have been updated to also have a
"functional" bus to perform the (de)multiplexing of the functional
memory accesses.
Diffstat (limited to 'src/mem/simple_mem.hh')
-rw-r--r-- | src/mem/simple_mem.hh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mem/simple_mem.hh b/src/mem/simple_mem.hh index 5f136ed51..95bfa57ad 100644 --- a/src/mem/simple_mem.hh +++ b/src/mem/simple_mem.hh @@ -54,9 +54,10 @@ #include "params/SimpleMemory.hh" /** - * The simple memory is a basic multi-ported memory with an infinite - * throughput and a fixed latency, potentially with a variance added - * to it. It uses a SimpleTimingPort to implement the timing accesses. + * The simple memory is a basic single-ported memory controller with + * an infinite throughput and a fixed latency, potentially with a + * variance added to it. It uses a SimpleTimingPort to implement the + * timing accesses. */ class SimpleMemory : public AbstractMemory { @@ -81,7 +82,7 @@ class SimpleMemory : public AbstractMemory }; - std::vector<MemoryPort*> ports; + MemoryPort port; Tick lat; Tick lat_var; |