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 circular vehicle tracking, circular convolution 2d matlab, linear circular convolution ppt, circular convolution by dft idft, matlab code for design of circular antenna, 2d convolution vhdl code, plotting 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 874 04-07-2016, 04:32 PM
Last Post: visalakshik
  how to interface lm35 with fpga code in verilog 1 1,035 11-06-2016, 04:04 PM
Last Post: dhanabhagya
  bresenham line algorithm verilog 1 725 11-06-2016, 03:53 PM
Last Post: dhanabhagya
  16 bit kogge stone adder verilog code 1 991 08-06-2016, 04:26 PM
Last Post: dhanabhagya
  verilog code for line following robot 1 559 08-06-2016, 04:24 PM
Last Post: dhanabhagya
  verilog source code for elliptic curve cryptography 1 587 03-06-2016, 04:20 PM
Last Post: dhanabhagya
  verilog code for a water level controller 1 742 31-05-2016, 12:33 PM
Last Post: dhanabhagya
  4x4 multiplier using compressor verilog code 1 637 27-05-2016, 11:19 AM
Last Post: dhanabhagya
  elevator control source code verilog 1 713 25-05-2016, 12:12 PM
Last Post: dhanabhagya
  verilog code for montgomery multiplication module 1 632 19-05-2016, 03:21 PM
Last Post: dhanabhagya

Forum Jump: