szakharo
Newbie level 3
- Joined
- Sep 14, 2006
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,312
Downsampling on multi word bus. Verilog experts, please help!
Hello guys,
I am trying to design a downsampler in Verilog which would take 5 samples and output average value at fCLK/5.
Each sample is 8 bit long, however input bus is 4 words long (32 bits). So every clock cycle I am getting 4 new values!
It would be an easy task to create a pipeline if I would be getting only 1 value per clock. But this really drives me crazy, especially considering that I have 4 bytes per clock and they need to be down sampled by 5, so some samples need to come from the next clock cycle.
Any help is greatly appreciated!
Hello guys,
I am trying to design a downsampler in Verilog which would take 5 samples and output average value at fCLK/5.
Each sample is 8 bit long, however input bus is 4 words long (32 bits). So every clock cycle I am getting 4 new values!
It would be an easy task to create a pipeline if I would be getting only 1 value per clock. But this really drives me crazy, especially considering that I have 4 bytes per clock and they need to be down sampled by 5, so some samples need to come from the next clock cycle.
Any help is greatly appreciated!