SYSC 4310 Computer systems Architecture Lab 2 Cache The purpose of this lab is to make sure you’ve understood how a direct mapped cache works, and that you can implement it in Verilog. Implement a...

1 answer below »
See file


SYSC 4310 Computer systems Architecture Lab 2 Cache The purpose of this lab is to make sure you’ve understood how a direct mapped cache works, and that you can implement it in Verilog. Implement a direct mapped cache. The cache has one interface (input/output ports) on the processor side, and one on the memory side. On the processor side, signals are: PRead_request (input), PWrite_request (input), PWrite_data (input), PRead_data (output), PRead_ready (output), PWrite_done (output), PAddress (input) On the memory side, signals are: MRead_request (output), MWrite_request (output), MWrite_data (output), MRead_data (input), MRead_ready (input), MWrite_done (input), MAddress (output) Apart from these, cache also has clock (input) and reset (input) signals. Data from processor side is 8 bits (read and write). Data written to memory is 8 bits, but data read from memory is 32 bits (one cache block). Assume an 8 bit address space, and that cache is 8 blocks. Assume that, whenever a processor requests something, cache responds in the following clock cycle (if it is a hit), or whenever data has arrived from memory if it is a miss. Assume read_request and write_request signals (from both processor and cache) must always go back down to “0” before the next access can begin. Notice that: you will need to implement blocks and tags, plus a valid bit for each tag. Use a state machine to drive cache behavior. If processor writes and it’s a cache hit, both cache and memory must be updated (write-through). If processor writes and it’s a cache miss, only memory is updated (no allocate-on-miss).
Answered 8 days AfterSep 27, 2021

Answer To: SYSC 4310 Computer systems Architecture Lab 2 Cache The purpose of this lab is to make sure you’ve...

Sathishkumar answered on Oct 06 2021
141 Votes
`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////
////
// Company:
// Engineer:
//
// Create Date: 14:08:11 10/04/2021
// Design Name:
// Module Name: processor
// Project Name:
// Target Devices:
// Tool versions:
// Description:
//
// Dependencies:...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here