IMPORTANT:
Though the mechanism to choose the proper metrics according to the bankwise
logic configuraiton is working fine, we need to check if all calculations are
correct. For exmple: check if the calculation of the total time in SREFB is
correct.
Lines which start with '#' will be ignored by trace players.
From IP_GFRBM.pdf:
STL syntax supports only single line comments. A single-line comment is
everything on a line following but not including the first occurrence of the #
character and up to, but not including the end of the line. For example:
# this is a comment
Comments should always begin in a new line.
Created an extra file memUtil.py which contains utilities that can be imported
and used by other script files.
The idea is to improve maintainability by avoiding duplicate code.
The following metrics will be generated:
- time in PDNA in ns
- time in PDNA percent
- time in PDNP in ns
- time in PDNP percent
- time in SREF in ns
- time in SREF percent
- time in power down states in ns
- time in power down states percent
Other changes:
Avoid a crash that was generated for channels which no accesses performed by
trace players. Now a message will be displayed explained that no metrics were
generated due to the lack of accesses.
These changes are a step forward in the direction of the PEP8 style guide for
python code. They do not affect functionality itself.
See also:
https://www.python.org/dev/peps/pep-0008/
These changes are a step forward in the direction of the PEP8 style guide for
python code. They do not affect functionality itself.
See also:
https://www.python.org/dev/peps/pep-0008/
Created classes to get easily memory specifications and memory configurations.
Each class handles the peculiarities of the related XML file.
Other changes:
- git ignore file updated.
In order to avoid the gcc warning" 'will be initialized after' we need to make
sure the members appear in the initializer list in the same order as they
appear in the class.
Other improvements:
- Added option to save changes to databases (e.g., save comments).
- When a database file changes on disk (overwritten by a rerun of DRAMSys or
changed by any external agent) the action save changes to DB is disabled,
since it is not safe anymore.
- Implemented menu options coherence. All actions except for "Open" (reload,
close, save, test and metrics) remain disabled until some database file is
open.
- Created a shortcut to close all: CTRL+Q
- Status messages containing a timestamp are displayed in the lower left
corner of the traceAnalyzer window when:
- User reloads the databases.
- User saves changes to the databases.
- Any of the open database files has changed on disk.
Phases are recorded by the TlmRecorder by calling the following method:
recordPhase(payload, phase, recordingTime)
In the current design we can find calls to this method in Dram.h, Controller.h
and Arbiter.h.
Inside the TlmRecorder (TlmRecorder.cpp) some phases are terminating phases.
Terminating phases recorded by the controller:
END_RESP (end response)
END_REFA (refresh all)
END_REFB (refresh Bank)
Example:
The DRAM receives transaction with phase BEGIN_REFA and sends to the
controller transaction with phase END_REFA.
IMPORTANT: the DRAM adds the execution time of the related command
(Command::AutoRefresh) to the delay.
The controller calls recordPhase() and the phase this triggers the termination
of the related phase in the TlmRecorder.
Terminating phases recorded by the DRAM:
END_PDNA (end power down active)
END_PDNP (end precharge powerdown)
END_SREF (end self-refresh)
END_PDNAB (end power down active bank)
END_PDNPB (end precharge powerdown bank)
END_SREFB (end self-refresh bank)
These phases were being recorded without taking into consideration the
execution time of the associated command (Command::PDNAX, Command::PDNPX and
Command::SREFX). All of them take one clock cycle to execute.
As result the phases were reduced by 1 clock cycle in the traceAnalyzer
output.
The data structure that stores last commands is initialized with NOPs. So it
is possible to get a NOP as return of state.getLastScheduledCommand(bank).
Increment of 1 clock cycle is necessary when recording end of powerdown
related phases.
This is necessary due to our current TLM recorder design. The TLM recorder is
based on phases, but the commands PDNAX, PDNPX and SREFX do not have
corresponding pahses. These commands take one clock cycle to execute and this
clock cycle was being ignored in the traceAnalyzer output.
Now it is possible to know exactly which module has generated a message. Some examples:
at 1716840 ps in sim.controller0: Entering PowerDownManagerTimeoutown BEGIN_PDNAB on bank 4
at 1820 ns in sim.tracePlayer0: Sending tracePlayer0ansaction number: 18
at 1831296 ps in sim.controller0: Payload enters system on bank 2. Total number of payloads in Controller: 0
at 1831296 ps in sim.controller0.core.pdnManagerBw: Waking up on bank 2 at 1831296 ps current power down state is Awake
at 1831296 ps in sim.controller0.core.pdnManagerBw: Awaken on bank 2 at 1831296 ps current power down state is Awake
at 1831296 ps in sim.controller0.core: Scheduling coremmand ACT on 2
at 1831296 ps in sim.controller0.core: Row buffer for bank 2 is now open
at 1831296 ps in sim.controller0: -> Next payload was scheduled by core
at 1849368 ps in sim.controller0: Received END_ACT on bank 2 from DRAM
at 2391528 ps in sim.controller3.core.pdnManagerBw: Is now in state PDN Active on Bank 0
at 2391528 ps in sim.controller3.core.pdnManagerBw: Schedulingending power down command PDNA on bank 0 start time 2397552 ps end time 2415624 ps
at 2397552 ps in sim.controller3: Entering PowerDown BEGIN_PDNABN_PDNAB on bank 0
at 2455 ns in sim.tracePlayer0: Sending transaction number: 24
The number of bits reserved to describe the channel within the address
determines the maximum number of memory channels allowed.
The program will be aborted if the number of memory channels in the
configuration exceeds the maximum number of memory channels supported based on
the number of bits reserved in the address mapping configuration file.