Program load adaptive voltage generator for flash memories