Go to the documentation of this file.
37 #ifndef __DEV_ARM_FLASH_DEVICE_HH__
38 #define __DEV_ARM_FLASH_DEVICE_HH__
43 #include "debug/FlashDevice.hh"
45 #include "enums/DataDistribution.hh"
46 #include "params/FlashDevice.hh"
90 std::function<void()>
function;
116 const std::function<
void()> &
event)
override
123 const std::function<
void()> &
event)
override
198 #endif //__DEV_ARM_FLASH_DEVICE_HH__
Stats::Histogram readLatency
std::vector< struct PageMapEntry > locationTable
address to logic place has a block and a page field
void regStats() override
Stats register function.
@ ActionCopy
A copy involves taking all the used pages from a block and store it in another.
std::vector< uint32_t > unknownPages
when the disk is first started we are unsure of the number of used pages, this variable will help det...
uint32_t pagesPerBlock
Disk dimensions in pages and blocks.
std::vector< uint32_t > blockEmptyEntries
number of empty entries
const Enums::DataDistribution dataDistribution
Flash organization.
void clearUnknownPages(uint32_t index)
Function to indicate that a page is known.
This is an interface between the disk interface (which will handle the disk data transactions) and th...
void unserialize(CheckpointIn &cp) override
Unserialize; needed to restore from checkpoints.
void actionComplete()
Event rescheduler.
uint64_t Tick
Tick count type.
void accessDevice(uint64_t address, uint32_t amount, const std::function< void()> &event, Actions action)
Flash action function.
DrainState drain() override
Checkpoint functions.
const Tick readLatency
Access latencies.
void writeMemory(uint64_t address, uint32_t amount, const std::function< void()> &event) override
DrainState
Object drain/handover states.
This is a simple scalar statistic, like a counter.
FlashDevice(const FlashDeviceParams *)
Initialize functions.
struct FlashDeviceStats stats
RequestHandler stats.
Stats::Histogram writeAccess
Histogram of address accesses.
Tick accessTimes(uint64_t address, Actions accesstype)
Access time calculator.
void initializeMemory(uint64_t disk_size, uint32_t sector_size) override
Device access functions Inherrited from AbstractNVM.
void checkDrain()
Checkdrain; needed to enable checkpoints.
std::vector< uint32_t > blockValidEntries
number of valid entries per block
Stats::Histogram fileSystemAccess
void readMemory(uint64_t address, uint32_t amount, const std::function< void()> &event) override
Access functions Access function to simulate a read/write access to the memory.
Every logical address maps to a physical block and a physical page.
const uint32_t GCActivePercentage
Garbage collection algorithm emulator.
Tick remap(uint64_t logic_page_addr)
FTL functionality.
EventFunctionWrapper planeEvent
Completion event.
Stats::Histogram writeLatency
Histogram of access latencies.
Stats::Histogram readAccess
Actions
Defines the possible actions to the flash.
Flash Device model The Flash Device model is a timing model for a NAND flash device.
std::vector< std::deque< struct CallBackEntry > > planeEventQueue
This vector of queues keeps track of all the callbacks per plane.
std::ostream CheckpointOut
void initializeFlash(uint64_t disk_size, uint32_t sector_size)
Initialization function; called when all disk specifics are known.
bool getUnknownPages(uint32_t index)
Function to test if a page is known.
uint64_t diskSize
Disk sizes in bytes.
void serialize(CheckpointOut &cp) const override
Serialize; needed to create checkpoints.
Stats::Scalar totalGCActivations
Amount of GC activations.
Generated on Wed Sep 30 2020 14:02:10 for gem5 by doxygen 1.8.17