Thank you!

On Tue, Jun 13, 2023 at 9:39 AM Eliot Moss <m...@cs.umass.edu> wrote:

> On 6/13/2023 9:07 AM, Vincent Abraham wrote:
> > Sure, I'm using the 22.1.0.0 version and the memory controller files
> (MemCtrl.py, mem_ctrl.cc,
> > mem_ctrl.hh) are located in src/mem/.
> >
> > On Tue, Jun 13, 2023 at 8:32 AM Eliot Moss <m...@cs.umass.edu <mailto:
> m...@cs.umass.edu>> wrote:
> >
> >     On 6/13/2023 7:10 AM, Vincent Abraham wrote:
> >      > Hi,
> >      > I'm afraid just changing the parameters doesn't do the job for
> me. I want to add a delay at the
> >      > memory controller level, when it sends the requests to the
> memory. Could anyone point me to a
> >      > function where I should do the changes? Also, how should I add
> the delay?
>
> Ok.  I'm sure there are multiple strategies, but on reflection here's a
> simple
> one: Insert a bridge just before each memory controller.  A bridge has a
> delay
> parameter that you can set, and it also has queues in each direction whose
> size you can set.  If you don't want to delay responses as well, you will
> need
> to modify bridge to have a response delay separate from the current delay
> that
> gets applied in both directions.  You add the python parameter to Bridge.py
> and the corresponding C++ field in bridge.hh.  Initialize it in
> Bridge::Bridge(...) and then use it in
> Bridge::BridgeRequestPort::recvTimingResp.
>
> This method avoids getting into the rather complex internals of the memory
> controller module.  The down side is that it does not affect the
> controller's
> stats.
>
> EM
>
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to