Docsity

Memory Controller-Digital System Design-Assignemnt, Exercises of Digital Systems Design

Toggle sidebar
bg1
Spring 2007
HDL Based Digital Design CE3204
Assignment No 5
Due on Monday April 02, 2007 after class
Please make a project comprising the design, test bench and stimulus and compile,
simulate and run it. Submit the project as attachment to the class Grader Mr. Muhammad
Saleem through email on student server.
Q: Design and Implement in Verilog HDL a memory controller that allows cpu,
dma and pci to access memory as discussed in the class. The controller must
have an arbiter that gives cpu the highest priority followed by dma and then pci.
Following are the signals from each requesting devices:
cpu2mem_req, cpu2mem_addr, cpu2mem_data, cpu2mem_rd, cpu2mem_wr,
dma2mem_req, dma2mem_addr, dma2mem_data, dma2mem_rd,
dma2mem_wr,
pci2mem_req, pci2mem_addr, pci2mem_data, pci2mem_rd, pci2mem_wr,
mem2cpu_rdy, mem2cpu_data, mem2cpu_valid,
mem2dma_rdy, mem2dma_data, mem2dma_valid,
mem2pci_rdy, mem2pci_data, mem2pci_valid
Following are the signals between memory and the controller
mem_addr, mem_data_in, mem_data_out, mem_rd, mem_wr, mem_cs
clk and rst are global signals input to the controller and memory. For testing
purpose they will be generated in the test bench and passed to both modules.
Design a comprehensive test bench to verify its behavior. Requests, along with
read/write signals and address and data, must be generated randomly and
remain asserted for multiple cycles for all three devices, i.e. cpu, dma and pci.
They should all appear simultaneously and also individually to test the behavior
of Arbiter.
PS: This assignment will weigh twice compared to other assignments so make
sure you put good effort and performance on this one.
docsity.com

Partial preview of the text

Download Memory Controller-Digital System Design-Assignemnt and more Exercises Digital Systems Design in PDF only on Docsity!

Spring 2007

HDL Based Digital Design CE

Assignment No 5 Due on Monday April 02, 2007 after class Please make a project comprising the design, test bench and stimulus and compile, simulate and run it. Submit the project as attachment to the class Grader Mr. Muhammad Saleem through email on student server.

Q: Design and Implement in Verilog HDL a memory controller that allows cpu, dma and pci to access memory as discussed in the class. The controller must have an arbiter that gives cpu the highest priority followed by dma and then pci.

Following are the signals from each requesting devices:

cpu2mem_req, cpu2mem_addr, cpu2mem_data, cpu2mem_rd, cpu2mem_wr, dma2mem_req, dma2mem_addr, dma2mem_data, dma2mem_rd, dma2mem_wr, pci2mem_req, pci2mem_addr, pci2mem_data, pci2mem_rd, pci2mem_wr, mem2cpu_rdy, mem2cpu_data, mem2cpu_valid, mem2dma_rdy, mem2dma_data, mem2dma_valid, mem2pci_rdy, mem2pci_data, mem2pci_valid

Following are the signals between memory and the controller

mem_addr, mem_data_in, mem_data_out, mem_rd, mem_wr, mem_cs

clk and rst are global signals input to the controller and memory. For testing purpose they will be generated in the test bench and passed to both modules.

Design a comprehensive test bench to verify its behavior. Requests, along with read/write signals and address and data, must be generated randomly and remain asserted for multiple cycles for all three devices, i.e. cpu, dma and pci. They should all appear simultaneously and also individually to test the behavior of Arbiter.

PS: This assignment will weigh twice compared to other assignments so make sure you put good effort and performance on this one.

docsity.com