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: matlab code for design of circular antenna, verilog source code for convolution, matlab code for circular convolution using dft idft, circular convolution 2d matlab, circular convolution using dft and idft type, circular convolution using dft and idft theory, convolution code matlab,

[-]
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 901 04-07-2016, 04:32 PM
Last Post: visalakshik
  how to interface lm35 with fpga code in verilog 1 1,079 11-06-2016, 04:04 PM
Last Post: dhanabhagya
  bresenham line algorithm verilog 1 755 11-06-2016, 03:53 PM
Last Post: dhanabhagya
  16 bit kogge stone adder verilog code 1 1,011 08-06-2016, 04:26 PM
Last Post: dhanabhagya
  verilog code for line following robot 1 590 08-06-2016, 04:24 PM
Last Post: dhanabhagya
  verilog source code for elliptic curve cryptography 1 607 03-06-2016, 04:20 PM
Last Post: dhanabhagya
  verilog code for a water level controller 1 755 31-05-2016, 12:33 PM
Last Post: dhanabhagya
  4x4 multiplier using compressor verilog code 1 653 27-05-2016, 11:19 AM
Last Post: dhanabhagya
  elevator control source code verilog 1 734 25-05-2016, 12:12 PM
Last Post: dhanabhagya
  verilog code for montgomery multiplication module 1 657 19-05-2016, 03:21 PM
Last Post: dhanabhagya

Forum Jump: