![]() |
| | #1 |
| essence of digital Join Date: Sep 2003
Posts: 577
| cache tag calculation is there a way to break a binary address into it's separate parts? i know that we the block address is calculated by dividing the byte address by the block size. i know the set index is calculated by modulating the block address by the total number of sets. but how do you calculate the cache tag?
__________________ "Hence to fight and conquer in all your battles is not supreme excellence; supreme excellence consists in breaking the enemy's resistance without fighting." Art of War Sun Tzu |
| xddxogm3 is offline | |
| | #2 |
| and the hat of Jobseeking Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,657
| Treat the address as an unsigned long say, then use bitwise operators to mask off certain groups of bits. |
| Salem is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help with cache simulator! | dtogers123 | C Programming | 3 | 04-30-2008 06:18 PM |
| ideas requested for a CACHE. | bean66 | C Programming | 2 | 02-21-2008 11:01 AM |
| Resource manager tree | Bubba | Game Programming | 23 | 09-07-2007 10:27 PM |
| added start menu crashes game | avgprogamerjoe | Game Programming | 6 | 08-29-2007 01:30 PM |
| cache miss/hit | xddxogm3 | C++ Programming | 3 | 05-07-2007 06:51 PM |