Experiment 2
Experiment 2
1. IP Cataloge(predefined module)
Create a Verilog file that instantiates the ram32x4 module and that includes the
required input and output pins on your DE-series board. Use slide switches SW3:0 to
provide input data for the RAM, and use switches switches SW8:4 to specify the
address. Use SW9 as the Write signal and use KEY0 as the Clock input. Show the
address value on the 7-segment displays HEX5:4, show the data being input to the
memory on HEX2, and show the data read out of the memory on HEX0.
part1.v
Part2:
Instead of creating a memory module subcircuit by using the IP Catalog, you should
implement the required memory by specifying its structure in Verilog code by defining
the memory as a multidimensional array. A 32 x 4 array.
CLOCK_50 Signal
Design and implement a circuit that successively flashes digits 0 through 9 on the 7-
segment display HEX0. Each digit should be displayed for about one second. Use a
counter to determine the one second intervals. The counter should be incremented by
the 50-MHz clock signal provided on the DE2-series board. Do not derive any other
clock signals in your design–make sure that all flip-flops in your circuit are clocked
directly by the 50-MHz clock signal.
Your output should be….