Question: This problem must be completed using Verilog. It is different from the other questions on Chegg. The numbers / parameters are different if you read
This problem must be completed using Verilog.
It is different from the other questions on Chegg. The numbersparameters are different if you read closely. In addition, other answers that are posted do not work.
Here is the problem:
setAssociative.v: A digital circuit that implements the readhit logic of a set associative cache
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.
Here is setAssociativeprovided.v:
input : readaddress;
input setlinevalid;
input setlinetag;
input : setlineblock;
input setlinevalid;
input setlinetag;
input : setlineblock;
input setlinevalid;
input setlinetag;
input : setlineblock;
input setlinevalid;
input setlinetag;
input : setlineblock;
output readhit;
output : readbyte;
Here is testtxt:
Here is answertxt:
readhit
readbyte
Here is testtxt:
Here is answertxt:
readhit
readbyte
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
