cordic算法verilog实现(复杂版)
x1<=x0+y0;
y1<=y0-x0;
z1<=z0+8'h20; //45deg
end
end
//level 2
always@(posedge clk or negedge rst_n)
begin
if(!rst_n)
begin
x2<=8'b0000_0000;
y2<=8'b0000_0000;
z2<=8'b0000_0000;
end
else
if(ena)
if(z1[7]==1'b0)
begin
x2<=x1-{y1[DATA_WIDTH-1],y1[DATA_WIDTH-1:1]};
y2<=y1+{x1[DATA_WIDTH-1],x1[DATA_WIDTH-1:1]};
z2<=z1-8'h12; //26deg
end
else
begin
x2<=x1+{y1[DATA_WIDTH-1],y1[DATA_WIDTH-1:1]};
y2<=y1-{x1[DATA_WIDTH-1],x1[DATA_WIDTH-1:1]};
z2<=z1+8'h12;
end
- 利用FFT IP Core实现FFT算法(02-16)
- cordic算法verilog实现(简单版)(02-11)
- 用CORDIC IP产生SINE波形(02-11)
- FPGA基于CORDIC算法的求平方实现(02-11)
- 基于MC8051 IP核和FPGA的频率计设计(11-24)
- 赛灵思FPGA DIY系列(2):数字存储扫频仪(11-06)