Question: I have designed this counter in Verlilog code using ModelSim, but the output of the counter doesn't work, and I don't know why. Can anyone

I have designed this counter in Verlilog code using ModelSim, but the output of the counter doesn't work, and I don't know why. Can anyone help me fix the code so the code works properly?

This is my assignement:

Counter In sequential circuits, counter is one of most widely used function blocks. They may be utilized to count the number of occurrences of the events, generate control signal at the certain time, and so on. Specifcation In this lab, a pre-load increment counter is required to be designed and tested based upon DE10-Lite FPGA board. A counter can be implemented by using if else or a FSM. The specications of the counter are listed as below: Synchronized reset. The counter is activated by an enable signal 6 bits pre-load value set by 6 switches to determine the termination condition of the counter. End-flag signal reected through a LED. Pre-load value converted to the decimal number is mapped to 7- segments display.

I have designed this counter in Verlilog code using ModelSim, but the

Pre_ld= 110101

and complete this Table.

output of the counter doesn't work, and I don't know why. Can

I am mostly done, my my code isn't working properly, please help me fix it.

anyone help me fix the code so the code works properly? This

this is my Testbench file:

is my assignement: Counter In sequential circuits, counter is one of most

and this is the waveform:

widely used function blocks. They may be utilized to count the number

rst n [7:0] DISP1 ena [5:0] pre_ld |counter! [70] DISPO ed Figure 23: Block diagram of the counter

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!