School of computer science

Georgia Institute of Technology

CS4803/CS8803, Spring 2012

P_Task #4 & P_Task #5 Due: Feb. 17 6 pm.
P_Task #6 Due: Feb 20 6pm


P_Task #4: Multi-switch Light

Extend the example in 8.verlog.pptx lecture file.
You extend the multi-switch light example to include one more key and turn on one more light.

When you push any of the 3 keys(KEY[3], KEY[1], KEY[0]), the LEDG[0] and LEDG[1] are turned on and off at the same time. One push turns both LEDG[0], LEDG[1] "on", another push turns both of them "off".
You don't need to worry about the case when multiple keys are pressed at the same time.

Imagine a living room that has 2 lamps which are turned on and off at the same time. The room have 3 switches for the lamps which have the same functionality.

P_Task #5: Key Counter
As you press KEY[0], the green LED light turns on as 2-bit value. Your counter can count only up to 4 bits. Just like the example in 8.verilog.pptx. you don't need to build your own adder.

Quartus software will generate an adder for you. All you need to is connect KEY button and the outcome of add to the green LEDs.


P_Task #6: Memory Value Reader

Every second, the processor reads a value (2 Bytes) from a memory and displays the value in the 7-segments. To simplify the problem, the memory is operated as a word (2 Bytes). You duplicate the same 2-Byte values into 4 7-Segment Displays.

Initialize the memory with "1,2,3,4,....16, FF". Starting address 0.

KEY[0] resets the memory location. So whenever KEY[0] is pressed, the HEX value starts to display from the memory location 0.
Please see 11.verilog_2.pptx to see examples.