CIC filter decimator on VHDL

OP (Company: stc) #3914909
Rate this post
useful
not useful
Hi to all again.
It is a structure with 2 steps : CIC filter decimator and FIR after CIC.

A simulation shows nothing signals on out bus of the structure. I have 
no some ideas why. Can someone say what happening?
Attached files:
Moderator (Company: Titel) #3914965
Rate this post
useful
not useful
Dmtry Karlin wrote:
> A simulation shows nothing signals on out bus of the structure
Of course it schows something! What? A 'U' known as "uninitialized"?

> I have no some ideas why.
When you use a reset signal to assign start values (instead of 
initilizing them at the declaration), then you must assert this reset 
signal at the beginning of your test bench...

> I have no some ideas why.
With the simulator you can dig into each signal of each module. Then 
you can easily see, whats going on and whats going wrong...
OP (Company: stc) #3915419
Rate this post
useful
not useful
Lothar Miller wrote:
> then you must assert this reset
> signal at the beginning of your test bench...

I did it so:

1
  signal reset : std_logic :='1' ;
2

3
  res: process
4
  begin
5
  for i in 0 to 100 loop
6
  wait until clk='1' and clk'event;
7
  end loop;
8
  reset <='0';wait;
9
  end process res;

Also, i created a new output signal (it is called trans).
1
 trans <= transfer
,
transfer - a signal with information from output bus of CIC. In the 
simulator i saw that trans have status "U", and on output bus i have 
nulls. What is it mean? Is the CIC wrong? But i took an example from the 
book, and FIR filter also must be done correctly, because i did FIR some 
times ago and it was done correctly, and i just have taken my previous 
code with the necessary changes.

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now