m序列特征多项式f(x)=x^5+x^2+1,求m序列,自相关函数
展开全部
assign outdata = M_buf[0];
always@(posedge clk)
begin
if(!rst)
begin
M_buf <= 5'b01011;
end
else
begin //5级M序列编码
M_buf[4] <= M_buf[0]^M_buf[3];
M_buf[0] <= M_buf[1];
M_buf[1] <= M_buf[2];
M_buf[2] <= M_buf[3];
M_buf[3] <= M_buf[4];
end
end
always@(posedge clk)
begin
if(!rst)
begin
M_buf <= 5'b01011;
end
else
begin //5级M序列编码
M_buf[4] <= M_buf[0]^M_buf[3];
M_buf[0] <= M_buf[1];
M_buf[1] <= M_buf[2];
M_buf[2] <= M_buf[3];
M_buf[3] <= M_buf[4];
end
end
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询