Use $clog2 to compute widths for cache offset instead of hard coding.