Forum Discussion

MPitt3's avatar
MPitt3
Icon for New Contributor rankNew Contributor
6 years ago
Solved

Hi, I tried to apply the stimuli using modelsim to the sequential adder that I described in vhdl. In particular:

1) I tried to generate the clock signal like this (with create wave): here is the screenshot:

But doing so it does not work,

num1 is the first number to be added

num2 is the second number

s, the result always fixed to zero

rst is the reset active low

here is the result of the simulation:

2) I generated the clock like this :

Now the result is correct.

Why in the first case is it wrong? Thanks a lot .

4 Replies