Posts: 3,229
Threads: 42
Joined: Jul 2006
The CPU in the modern 12c and almost certainly the 15c has exactly 2kb of battery backed RAM. So, no it isn't always easier to have more RAM.
The 15c firmware uses less than this BTW.
- Pauli
Posts: 384
Threads: 18
Joined: Sep 2010
Quote:
So that's the question: Isn't it much easier nowadays to have say, 32k RAM than to have less than 2k?
It depends on the SoC and whatever other functionality is competing
for finite silicon real estate. Most notably the current ARM
SoCs have rather limited RWM capacities. Also the lowest achievable
system power reduction in which RWM data is retained differs
considerably between designs. The power-down-data-retained
leakage current varying in proportion to the RWM size is another
motivation to limit its size.
Unfortunately with present SoCs applicable to this application
area you are limited to on-die ROM/RWM in practical terms for
direct access/execute memory. However for firmware emulator
applications, serial interconnect (eg: SPI) RWM can be
acceptable for firmware (vs. emulator) sourced access without
much of a performance penalty. To a lesser extent this can be
true for ROM (flash) as well but in my experiments I've found
some internal caching was needed to avoid getting bogged
down in SPI addressing overhead as well leverage repetitive
localized instruction fetching. To frustrate matters caching
itself consumes internal SRAM so an application specific
balance needs to be struck.