In numerous questions for calculating average access times, in some cases I am provided with the Hit Ratio(H), Miss Penalty(M) and Cache access time(C).
The formula therefore is
T = HC + (1-H)M
But on some other cases instead of miss penalty the main memory access time (say X) is provided.
According to my logic, the data has to be searched in cache before proceeding to Main Memory, so technically, M = C + X
But in many sources, I can see that the cache access time is ignored and the formula is directly written as
T = HC + (1-H)X instead of T =HC + (1-H)(X+C)
Is this logic right or am I the one who's correct?