+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 6
    Points: 82, Level: 1

    Join Date
    Nov 2017
    Posts
    13
    Helped
    0 / 0
    Points
    82
    Level
    1

    coding help needed in verilog

    what is moving average filter? how do i get samples of a signal in verilog?

    •   Alt29th November 2017, 05:53

      advertising

        
       

  2. #2
    Advanced Member level 3
    Points: 4,845, Level: 16

    Join Date
    Feb 2015
    Posts
    808
    Helped
    235 / 235
    Points
    4,845
    Level
    16

    Re: coding help needed in verilog

    moving average typically refers to the FIR filter where the previous N samples are added together and then the result is multiplied by 1/N. This filter is common because a recursive implementation requires very little resources.

    It should not be hard to find examples of this filter throughout the internet.

    Getting samples to the filter is up to you. for simulation, you can use readmem or other file functions. For a working design you would need to interface to an ADC or something that can send the FPGA samples.


    1 members found this post helpful.

    •   Alt29th November 2017, 07:24

      advertising

        
       

  3. #3
    Newbie level 6
    Points: 82, Level: 1

    Join Date
    Nov 2017
    Posts
    13
    Helped
    0 / 0
    Points
    82
    Level
    1

    Re: coding help needed in verilog

    how do i get samples of a signal



    •   Alt29th November 2017, 08:11

      advertising

        
       

  4. #4
    Super Moderator
    Points: 53,103, Level: 56
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster

    Join Date
    Apr 2014
    Posts
    10,693
    Helped
    2537 / 2537
    Points
    53,103
    Level
    56

    Re: coding help needed in verilog

    Hi,

    What do you mean?
    Are you asking about how to use an ADC?

    A design usually starts with defining the task:
    * input signal definition
    * output signal definition

    Klaus
    Please don´t contact me via PM, because there is no time to response to them. Thank you.



--[[ ]]--