verilog code for circular convolution
#1

I need code for circular convolution in verilog
Reply
#2
verilog code for circular convolution

MATLAB CODE:-
clc
close all
clear all
x=input('Enter the sequence x:');
h=input('Enter the sequence h:');
subplot(3,1,1);
stem(x);
xlabel('--->n');
ylabel('Amp');
legend('Input Sequence');


subplot(3,1,2);
stem(h);
xlabel('--->');
ylabel('Amp');
legend('Impulse Responce');

lx=length(x);
lh=length(h);
l=max(lx,lh);
x=[x,zeros(1,l-lx)];
h=[h,zeros(1,l-lh)];
H=zeros(l,l);
H(1:lh,1)=h;
for j=1:l-1
for i=1:l-1
H(i+1,j+1)=H(i,j);
end
H(1,j+1)=H(l,j);
end
y=H*x';
subplot(3,1,3);
stem(y);
title('Circular Convulation');

INPUT & OUTPUT:-
Enter the sequence x:[1 -1 2 3]
Enter the sequence h:[1 -2 3 1]
>> y

y =

0
8
10
-3
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: circular convolution using matlab by for loop, circular convolution of two sequences of unequal length, circular convolution using dft and idft in matlab, advantage and disadvantage of circular convolution, circular convolution c programm, circular convolution using dft and idft using matlab, c code for circular convolution,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  circular water tank design excel sheet 1 896 04-07-2016, 04:32 PM
Last Post: visalakshik
  how to interface lm35 with fpga code in verilog 1 1,071 11-06-2016, 04:04 PM
Last Post: dhanabhagya
  bresenham line algorithm verilog 1 744 11-06-2016, 03:53 PM
Last Post: dhanabhagya
  16 bit kogge stone adder verilog code 1 1,006 08-06-2016, 04:26 PM
Last Post: dhanabhagya
  verilog code for line following robot 1 581 08-06-2016, 04:24 PM
Last Post: dhanabhagya
  verilog source code for elliptic curve cryptography 1 600 03-06-2016, 04:20 PM
Last Post: dhanabhagya
  verilog code for a water level controller 1 751 31-05-2016, 12:33 PM
Last Post: dhanabhagya
  4x4 multiplier using compressor verilog code 1 647 27-05-2016, 11:19 AM
Last Post: dhanabhagya
  elevator control source code verilog 1 728 25-05-2016, 12:12 PM
Last Post: dhanabhagya
  verilog code for montgomery multiplication module 1 653 19-05-2016, 03:21 PM
Last Post: dhanabhagya

Forum Jump: