maro.pitti
Newbie level 3
Hi guys, I tried to apply the stimuli using modelsim to the sequential adder that I described in vhdl.
1) I tried to generate the clock signal like this: here is the screenshot:
![create_wave.png create_wave.png](https://www.edaboard.com/data/attachments/85/85416-1ac9823f1289db22c7a4d2e6d566f3cd.jpg)
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:
![create_wave2.png create_wave2.png](https://www.edaboard.com/data/attachments/85/85417-b859ccdf68d2965192dfb3be13e7664d.jpg)
2) I generated the clock like this:
![clock1.png clock1.png](https://www.edaboard.com/data/attachments/85/85418-8f5334b420be500a208511157c5e7369.jpg)
Now the result is correct.
![clock.png clock.png](https://www.edaboard.com/data/attachments/85/85419-eed3289a849a580819ef12a9580e5bd7.jpg)
Why in the first case is it wrong? Thanks a lot .
1) I tried to generate the clock signal like this: here is the screenshot:
![create_wave.png create_wave.png](https://www.edaboard.com/data/attachments/85/85416-1ac9823f1289db22c7a4d2e6d566f3cd.jpg)
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:
![create_wave2.png create_wave2.png](https://www.edaboard.com/data/attachments/85/85417-b859ccdf68d2965192dfb3be13e7664d.jpg)
2) I generated the clock like this:
![clock1.png clock1.png](https://www.edaboard.com/data/attachments/85/85418-8f5334b420be500a208511157c5e7369.jpg)
Now the result is correct.
![clock.png clock.png](https://www.edaboard.com/data/attachments/85/85419-eed3289a849a580819ef12a9580e5bd7.jpg)
Why in the first case is it wrong? Thanks a lot .
Last edited: