CS计算机代考程序代写 gui cache CSCI 4203 Lab 3 Fall 2021 Tutorial

CSCI 4203 Lab 3 Fall 2021 Tutorial

CSCI 4203 Fall 2021, Lab 3
Tutorial

Setup

1. Download the files for the lab from Canvas.
2. Import the downloaded files into a two Vivado projects

— A different project can be used for each problem

— The files needed for problem 1 have ‘_1’ in the file name

— The files needed for problem 2 have ‘_2’ in the file name

3. Run the baseline testbenches and get the default scores in the log.

Vivado GUI Screen After Running Problem 1

Vivado GUI Screen After Running Problem 2

Problem 1

Random Replacement Policy

1. Main changes are to be made to one of the stages of the cache controller.
2. The new replacement candidate needs to be chosen ‘randomly’
3. Constraint : No consecutive replacement states should be the same.
4. Changes to the code can be made where the TODO comments are.

Problem 2

LFU Replacement Policy

1. Counters are maintained for each cache line
2. Update the counters whenever cache line is accessed
3. Pick the replacement victim, whose counter has the least value
4. Changes to the code can be made, where the TODO comments are.

Handin

All the verilog files need to be handed in, except for the testbenches.

Questions ?