Question: Keypad Consider the telephone style keypad shown below. This keypad supports numerical buttons 0-9 and has 7 output signals a-g. When no buttons are being

 Keypad Consider the telephone style keypad shown below. This keypad supports

Keypad Consider the telephone style keypad shown below. This keypad supports numerical buttons 0-9 and has 7 output signals a-g. When no buttons are being pressed all of these signals output a 0. When a button is pressed a 1 is output on both the row and the column of the button pressed (e.g., if 6 was pressed cand e would be 1 and all of the other signals would be zero). 2 3 6 7 HOH What you need to do: Write Verilog code for a circuit that that indicates numerically which button is being pressed (you may assume a single button is pressed at a time). Your circuit will take the 7 signals (a-g) as inputs and produce two outputs: the l-bit signal valid indicating that a numbered button was pressed, and the 4-bit signal number specifying which number button was pressed (encoded as a 4-bit unsigned binary number). For example, if button 4 is pressed the output should be valid = 1 and number = 0100. It may be helpful to first write boolean expressions for the signals: valid = number[3] = number[2] = number[1] = number[0] Keypad Consider the telephone style keypad shown below. This keypad supports numerical buttons 0-9 and has 7 output signals a-g. When no buttons are being pressed all of these signals output a 0. When a button is pressed a 1 is output on both the row and the column of the button pressed (e.g., if 6 was pressed cand e would be 1 and all of the other signals would be zero). 2 3 6 7 HOH What you need to do: Write Verilog code for a circuit that that indicates numerically which button is being pressed (you may assume a single button is pressed at a time). Your circuit will take the 7 signals (a-g) as inputs and produce two outputs: the l-bit signal valid indicating that a numbered button was pressed, and the 4-bit signal number specifying which number button was pressed (encoded as a 4-bit unsigned binary number). For example, if button 4 is pressed the output should be valid = 1 and number = 0100. It may be helpful to first write boolean expressions for the signals: valid = number[3] = number[2] = number[1] = number[0]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!