Still a Beginner: Accumulator has no reset

Jun 28, 2008 3 Replies

Xilinx ISE 9.2 and ISE 10.1 I wanted to design a simple correlator which correlates a 15 bit sequence with another sequence of 15 bytes (8 bit signed values = Sample below). I needed to zero the summation result after 15 samples, so I did. But compiler didn't. There is no warning but even the simulator does not seem to notice ACC


Hi,

In the if-else immediately following your reset of ACC, you assign to ACC again, overriding any previous assignment. Depending on the intended behavior of your circuit you could switch to using variables or reorganize your if's in a way that ACC is assigned only once.

Regards,

-- Hauke D

The clearing of the ACC will most likely be cancelled by the RN(cntr) = '1' IF-block. This block should have been made dependend on the first condition:

if(cntr=0) then Corr

Thanks to Alvin A. and Hauke D. I used a variable and it worked. I will surely remember that it is not a C/pascal program but a circuit description.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required