pdn bankwise change

This commit is contained in:
Janik Schlemminger
2014-04-05 12:53:07 +02:00
parent 2145f3b18c
commit c206e604d8
4 changed files with 7 additions and 6 deletions

View File

@@ -30,8 +30,8 @@
<listOptionValue builtIn="false" value="TIXML_USE_STL"/>
</option>
<option id="gnu.cpp.compiler.option.other.other.1339801369" name="Other flags" superClass="gnu.cpp.compiler.option.other.other" value="-c -fmessage-length=0 -std=c++11 -fprofile-arcs -ftest-coverage" valueType="string"/>
<option id="gnu.cpp.compiler.option.debugging.prof.523954048" name="Generate prof information (-p)" superClass="gnu.cpp.compiler.option.debugging.prof" value="true" valueType="boolean"/>
<option id="gnu.cpp.compiler.option.debugging.gprof.1932984572" name="Generate gprof information (-pg)" superClass="gnu.cpp.compiler.option.debugging.gprof" value="true" valueType="boolean"/>
<option id="gnu.cpp.compiler.option.debugging.prof.523954048" name="Generate prof information (-p)" superClass="gnu.cpp.compiler.option.debugging.prof" value="false" valueType="boolean"/>
<option id="gnu.cpp.compiler.option.debugging.gprof.1932984572" name="Generate gprof information (-pg)" superClass="gnu.cpp.compiler.option.debugging.gprof" value="false" valueType="boolean"/>
<option id="gnu.cpp.compiler.option.dialect.std.739859284" name="Language standard" superClass="gnu.cpp.compiler.option.dialect.std" value="gnu.cpp.compiler.dialect.default" valueType="enumerated"/>
<inputType id="cdt.managedbuild.tool.gnu.cpp.compiler.input.1847876781" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.input"/>
</tool>

3
dram/.gitignore vendored
View File

@@ -1,3 +1,4 @@
/build-simulation
*.tdb
*.tdb-journal
*.tdb-journal
*.out

Binary file not shown.

View File

@@ -13,7 +13,7 @@ using namespace tlm;
namespace core {
std::string PowerDownManager::senderName = "Powerdown Manager";
std::string PowerDownManager::senderName = "pdn manager";
PowerDownManager::PowerDownManager(ControllerCore& controller) :
controller(controller)
{
@@ -37,8 +37,8 @@ void PowerDownManager::sleep(Bank bank, sc_time time)
{
sc_assert(!controller.state.bankStates.rowBufferIsOpen(bank));
if (controller.state.getLastCommand(Command::PDNA).getStart()
> controller.state.getLastCommand(Command::PDNP).getStart())
if (controller.state.getLastCommand(Command::PDNA, bank).getStart()
> controller.state.getLastCommand(Command::PDNP, bank).getStart())
setState(PowerDownState::PDNPrecharge, bank);
else
setState(PowerDownState::PDNSelfRefresh, bank);