+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Junior Member level 1
    Points: 106, Level: 1

    Join Date
    Nov 2017
    Posts
    15
    Helped
    0 / 0
    Points
    106
    Level
    1

    coding help needed in verilog

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

    •   AltAdvertisment

        
       

  2. #2
    Advanced Member level 3
    Points: 5,356, Level: 17

    Join Date
    Feb 2015
    Posts
    887
    Helped
    256 / 256
    Points
    5,356
    Level
    17

    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.

    •   AltAdvertisment

        
       

  3. #3
    Junior Member level 1
    Points: 106, Level: 1

    Join Date
    Nov 2017
    Posts
    15
    Helped
    0 / 0
    Points
    106
    Level
    1

    Re: coding help needed in verilog

    how do i get samples of a signal



    •   AltAdvertisment

        
       

  4. #4
    Super Moderator
    Points: 61,937, Level: 60
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    12,624
    Helped
    2928 / 2928
    Points
    61,937
    Level
    60

    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 respond to them. No friend requests. Thank you.



--[[ ]]--