Question: setAssociative.v: A digital circuit that implements the read - hit logic of a set associative cache ( hard ) ( 2 5 points ) Your
setAssociative.v: A digital circuit that implements the readhit logic of a set associative cache hard points
Your task
Your task in this assignment part is to create a digital circuit that decides whether a read address given to a cache is a readhit, and if it is provides the singlebyte data block as output. The cache in question is a E way setassociative cache, with m bit addresses, t bit tags, s bit set indices for S sets, b bit block offsets such that data blocks are two bytes to support data locality. The total capacity of the cache is SEB bytes.
Input format
The interface to the cache logic is given in setAssociativeprovided.v The address to be read from is given to the cache in readaddress. The state of the cache stored in SRAM sequential logic is recorded in the rest of the inputs.
Output format
The circuit has two outputs. The output "readhit" is true if and only if the address to be read matches the tag in either line of the correct set, and that said line is valid. The output "readbyte" contains the bit block data of the line if the address is a readhit, otherwise its value is ignored.
Test cases and expected answers
The inputs for each test case are recorded in the tests directory. Corresponding expected answers are recorded in the answers directory.
Hints
The bit comparator from part should be useful. The demonstration code for the digital logic for a directMapped cache in the directMapped directory should also be useful. The logic for this part can be completed in under lines of code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
