Which are the spec bits in this cache?
In a direct-mapped cache, each location in memory has exactly one place in which it can be stored in the cache. So, assuming S is given in bytes, this means that the lower log2S bits of the address are used to locate the data in the cache. The rest of the address bits become the tag.