up‐down*counter code # 2 !!!!!

Status
Not open for further replies.

mirkK

Newbie level 1
Joined
Dec 15, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
6
i tried to write anather code for up‐down*counter .....
when i simulate it i got the same value it does not change
module UpDown( reset,up_down,clk,a2g,digits);

what is the problem ?
 

Attachments

  • co.PNG
    23.9 KB · Views: 72

It makes no sense to guess about simulation results without seeing the testbench or a complete simulation waveform.

The code as shown has several oddities, e.g. reg [4:0] count can't hold a value of 91. Mixing blocking and non-blocking assignments for the same variable.

The code in a previous, now deleted parallel thread also showed the modules that are missing here.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…