Forum Discussion
Altera_Forum
Honored Contributor
10 years agoComparison between old value and new value
Hi All, Its a very simple question but I am unable to do that. Below is my code. I want to store signal data_o_new to signal data_o_old and then compare these signals with each other and do inc...
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- thanks tricky... I dont understand what is initial value of output_ref?? So how it can be compared --- Quote End --- Sorry, I should have initialised it - you could do it like this: signal output_ref : unsigned(Nbits-1 downto 0) := (others => '0'); --or whatever value you want or with a reset.