News for hackers. Stuff that matters.
Re:Why do CPUs have multiple cache levels? by davrosthedalek on Monday August 08, 2016 @06:03AM (#12246542)
That's not really true. You can decode N-bits in one step, for example, via 2^N N-bit compares. For small N, that's totally doable.
Re:Why do CPUs have multiple cache levels? by anjc on Monday August 08, 2016 @07:05AM (#12246769)
You still have to then AND the output of that decoder with the data lines which go to the registers right? OP's friend just mentioned 1 extra gate in the data path, and I presume this would be it.
Re:Why do CPUs have multiple cache levels? by morcheeba on Monday August 08, 2016 @03:17PM (#12250197)
Yep, but a 7-input AND gate will have basically the same delay time as an 8-input AND gate. They don't scale linearly as it would if you stacked 6 or 7 gates in series (although that's typically how you do it in math or programming)

I like examples: 74AHC00 2-input gate has typ 4.5ns propagation delay at 25˚C/15pF/3-3.6v http://www.nxp.com/documents/data_sheet/74AHC_AHCT00.pdf

74AHC30 8-input gate has typ 5.0ns propagation delay at 25˚C/15pF/3-3.6v http://www.nxp.com/documents/data_sheet/74AHC_AHCT30.pdf

Re:Why do CPUs have multiple cache levels? by anjc on Monday August 08, 2016 @03:28PM (#12250282)
Oh of course yeah. I was picturing it as a separate AND when it could be bunged in with the ANDs for individual register selects and write/load enables and so on also. Cool, thanks.
Re:Why do CPUs have multiple cache levels? by Dylan16807 on Monday August 08, 2016 @07:21AM (#12246838)
Fanout isn't instant. If you want to power 2^N gates, you need N time to power them all from a source signal.
Re:Why do CPUs have multiple cache levels? by cfallin on Monday August 08, 2016 @11:19AM (#12248438)
Yep, the long bitlines are a large factor in timing for register files. The timing is something like O(n) for n storage lines because it grows linearly with capacitance.