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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

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.