vhdl - Division on the last outputs -


Count the number of input samples count then counter output (N) and I want to check if there is a number of samples, Then n_of_samples = (n * n) and if weird is made ((n * n) -1) something like this would be

 : integer range 0 to 255: = 0; Hint n: Integer range 0 to 255: = 0; If n mod 2 = 1 then n_of samples & lt; = ((N * n) -1); Other n_of_samples & lt; = N * n; end if; Norm_dis & lt; = Dis / n_of_samples;  

as the value of two signals (1,6, 9, 8, ..... 100) and (0, 8, 9, 9, 00) ..... .., 200) and I want to bring two final outputs and split 100/200 with two signals (100,200). I can write it in vhdl and divide it with zero error.

Just make sure you do not divide by zero!

  If n_of_samples / = 0 then norm_dis & lt; = Dis / n_of_samples; end if;  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -