Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Implementing twiddle factor for an radix 2 square fft ??

Status
Not open for further replies.

sandy3129

Member level 3
Member level 3
Joined
Nov 7, 2014
Messages
56
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
445
hello everyone i'm implementing twiddle factors for radix 2 square fft, i have actually created my logic controlled by N and level.where N= 16,64,256..,levels are 1,2,3
Code:
for m = 0:(((N/4)/(4^(level-1))-1)) % Compute twiddle factors
    tw(1:1+(N/(4^level)),1) =1;  
    tw(((((N/4)/(4^(level-1)))) + 1 )+m) = (cos(2*pi*(m*2)*(1/N)) - (1j*(sin(2*pi*(m*2)*1/N)))));
    tw(((((N/2)/(4^(level-1)))) + 1 )+m) = (cos(2*pi*(m)*(1/N)) - (1j*(sin(2*pi*(m)*(1/N)))));
    tw((((((N/2)/(4^(level-1))))+ (((N/4)/(4^(level-1)))) + 1 )+m)) = (cos(2*pi*(m*3)*(1/N)) - (1j*(sin(2*pi*(m*3)*(1/N)))));
end
tw = repmat(tw,(4^(level-1)),1);
im implementing these twiddle factors and stored in an array at a time,
how can we create twiddle factors variably without storing them in an array for an radix 2 square fft.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top