Fix configuration tests
This commit is contained in:
@@ -71,8 +71,10 @@ public:
|
||||
SC_HAS_PROCESS(DRAMSys);
|
||||
DRAMSys(const sc_core::sc_module_name& name, const Config::Configuration& config);
|
||||
|
||||
const MemSpec& getMemSpec() const { return *memSpec; }
|
||||
const AddressDecoder& getAddressDecoder() const { return *addressDecoder; }
|
||||
const auto& getSimConfig() const { return simConfig; }
|
||||
const auto& getMcConfig() const { return mcConfig; }
|
||||
const auto& getMemSpec() const { return *memSpec; }
|
||||
const auto& getAddressDecoder() const { return *addressDecoder; }
|
||||
|
||||
/**
|
||||
* Returns true if all memory controllers are in idle state.
|
||||
|
||||
@@ -145,8 +145,6 @@
|
||||
"DatabaseRecording": true,
|
||||
"Debug": false,
|
||||
"EnableWindowing": false,
|
||||
"ErrorCSVFile": "error.csv",
|
||||
"ErrorChipSeed": 42,
|
||||
"PowerAnalysis": false,
|
||||
"SimulationName": "ddr5",
|
||||
"SimulationProgressBar": true,
|
||||
@@ -207,4 +205,4 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
"Debug": false,
|
||||
"ECCControllerMode": "Disabled",
|
||||
"EnableWindowing": false,
|
||||
"ErrorCSVFile": "",
|
||||
"ErrorChipSeed": 42,
|
||||
"PowerAnalysis": false,
|
||||
"SimulationName": "ddr5",
|
||||
"SimulationProgressBar": true,
|
||||
|
||||
@@ -166,7 +166,11 @@ DRAMSys::Config::MemSpec ConfigurationTest::createMemSpec()
|
||||
{"clkMhz", 1600},
|
||||
}}};
|
||||
|
||||
return {memArchitectureSpec, "JEDEC_2x8x2Gbx4_DDR5-3200A", "DDR5", memTimingSpec, {}};
|
||||
return {memArchitectureSpec,
|
||||
"JEDEC_2x8x2Gbx4_DDR5-3200A",
|
||||
DRAMSys::Config::MemoryType::DDR5,
|
||||
memTimingSpec,
|
||||
{}};
|
||||
}
|
||||
|
||||
DRAMSys::Config::TracePlayer ConfigurationTest::createTracePlayer()
|
||||
@@ -317,8 +321,6 @@ TEST_F(ConfigurationTest, SimConfig)
|
||||
"DatabaseRecording": true,
|
||||
"Debug": false,
|
||||
"EnableWindowing": false,
|
||||
"ErrorCSVFile": "error.csv",
|
||||
"ErrorChipSeed": 42,
|
||||
"PowerAnalysis": false,
|
||||
"SimulationName": "ddr5",
|
||||
"SimulationProgressBar": true,
|
||||
|
||||
@@ -92,7 +92,7 @@ struct BlockingInitiator : sc_core::sc_module
|
||||
sc_core::sc_time delay = sc_core::SC_ZERO_TIME;
|
||||
iSocket->b_transport(payload, delay);
|
||||
|
||||
EXPECT_EQ(delay, dramSys.getConfig().blockingReadDelay);
|
||||
EXPECT_EQ(delay, dramSys.getMcConfig().blockingReadDelay);
|
||||
}
|
||||
|
||||
void writeAccess()
|
||||
@@ -105,7 +105,7 @@ struct BlockingInitiator : sc_core::sc_module
|
||||
sc_core::sc_time delay = sc_core::SC_ZERO_TIME;
|
||||
iSocket->b_transport(payload, delay);
|
||||
|
||||
EXPECT_EQ(delay, dramSys.getConfig().blockingWriteDelay);
|
||||
EXPECT_EQ(delay, dramSys.getMcConfig().blockingWriteDelay);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -138,8 +138,6 @@
|
||||
"DatabaseRecording": true,
|
||||
"Debug": false,
|
||||
"EnableWindowing": false,
|
||||
"ErrorCSVFile": "",
|
||||
"ErrorChipSeed": 42,
|
||||
"PowerAnalysis": false,
|
||||
"SimulationName": "example",
|
||||
"SimulationProgressBar": true,
|
||||
@@ -150,4 +148,4 @@
|
||||
},
|
||||
"simulationid": "ddr4-example"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,8 +136,6 @@
|
||||
"DatabaseRecording": true,
|
||||
"Debug": false,
|
||||
"EnableWindowing": false,
|
||||
"ErrorCSVFile": "",
|
||||
"ErrorChipSeed": 42,
|
||||
"PowerAnalysis": false,
|
||||
"SimulationName": "example",
|
||||
"SimulationProgressBar": true,
|
||||
@@ -148,4 +146,4 @@
|
||||
},
|
||||
"simulationid": "ddr4-example"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user