CIC filter decimator on VHDL

OP (Company: stc) #3914909
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)
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)
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

A question of your own? This thread is over 11 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.