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, KEY, KEY), the LEDG
and LEDG are turned on and off at the same time.
One push turns both LEDG, LEDG "on", another push turns both of
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
P_Task #5: Key Counter
As you press KEY, 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 resets the memory location. So whenever KEY is pressed, the HEX value starts to display from the memory location 0.
Please see 11.verilog_2.pptx to see examples.