Question: Write a VHDL program to describe a two-digit decimal counter that can count from 00 to 99 or from 99 down to zero and then

Write a VHDL program to describe a two-digit decimal counter that can count from 00 to 99 or from 99 down to zero and then repeat depending whether the dir input is 0 or 1. The counter has the following input and output: Clk: clock input (assigned to KEY[0]). Dir: count direction (0: count up, 1: count down; assign to SW[0]). Seg1[6:0]: counter tens digit (using seven-segment display HEX1[0~6]). Seg0[6:0]: counter ones digit (using seven-segment display HEX0[0~6]) .By pressing KEY[0], the counter will count up from 00 to 99, rolls over to 00 and count up again.

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!