Forum Discussion
2 Replies
- Altera_Forum
Honored Contributor
There is no "else" for a register, it only changes its value at the rising_edge of clock (or on an asynchronous reset)!
You should have an signal that is fed by logic (also known as "cloud") that is stored in a register at rising_edge(clk). Actually your register is only '1' for one delta cylce in which we have a rising_edge else it is '0'. In other words it is always '0'. you can actually (theoretically) change registers on falling_edge(clk) too, but I don't know what it synthizes: if rising_edge(clk) or falling_edge(clk) ..... endif; I recommend reading VHDL tutorials and lecture notes. But go ahead, it's fun! - Altera_Forum
Honored Contributor
Thanks for your fast answer, It helped.
i managed to keep the system working with a square signal instead of those deltas, and now qurtus is ok. have a good day Pini Sberro