EmbDev.net

Forum: FPGA, VHDL & Verilog CIC filter decimator on VHDL


von Dmtry K. (Company: stc) (desmond_breezey)


Attached files:

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?

von Lothar M. (Company: Titel) (lkmiller) (Moderator)


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...

von Dmtry K. (Company: stc) (desmond_breezey)


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.

von Dmtry K. (Company: stc) (desmond_breezey)


Rate this post
useful
not useful
Oh, i understood.

I think you mean somethink like this:
1
signal filter_in : std_logic_vector(7 downto 0):= (others =>'0');

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.