verilog fft ip核多通道仿真 10

我在testbench文件中输入如下代码作为多通道FFTip核的输入always@(posedgeclk)begini<=i+1;j<=j+1;if(start)begi... 我在testbench文件中输入如下代码作为多通道FFT ip核的输入
always@(posedge clk) begin
i <= i + 1;
j <= j + 1;
if(start) begin
case(i)
3'b000: xn0_re <= 8'd20;
3'b001: xn0_re <= 8'd30;
3'b010: xn0_re <= 8'd40;
3'b011: xn0_re <= 8'd50;
3'b100: xn0_re <= 8'd60;
3'b101: xn0_re <= 8'd70;
3'b110: xn0_re <= 8'd80;
3'b111: xn0_re <= 8'd000;
default;
endcase
case(j)
3'b000: xn1_re <= 8'd30;
3'b001: xn1_re <= 8'd40;
3'b010: xn1_re <= 8'd50;
3'b011: xn1_re <= 8'd60;
3'b100: xn1_re <= 8'd70;
3'b101: xn1_re <= 8'd80;
3'b110: xn1_re <= 8'd90;
3'b111: xn1_re <= 8'd000;
default;
endcase
end
end
但仿真结果显示只输入了xn1_re,请问如何修改程序,可以使两组数据都输入。
展开
 我来答
1120文子
2015-07-31 · 超过11用户采纳过TA的回答
知道答主
回答量:44
采纳率:0%
帮助的人:20.8万
展开全部
always@(posedge clk) begin
i <= i + 1;
if(start) begin
case(i)
3'b000: xn0_re <= 8'd20;
3'b001: xn0_re <= 8'd30;
3'b010: xn0_re <= 8'd40;
3'b011: xn0_re <= 8'd50;
3'b100: xn0_re <= 8'd60;
3'b101: xn0_re <= 8'd70;
3'b110: xn0_re <= 8'd80;
3'b111: xn0_re <= 8'd000;
default;
endcase
end
end
always@(posedge clk) begin
j <= j + 1;
if(start) begin
case(j)
3'b000: xn1_re <= 8'd30;
3'b001: xn1_re <= 8'd40;
3'b010: xn1_re <= 8'd50;
3'b011: xn1_re <= 8'd60;
3'b100: xn1_re <= 8'd70;
3'b101: xn1_re <= 8'd80;
3'b110: xn1_re <= 8'd90;
3'b111: xn1_re <= 8'd000;
default;
endcase
end
end

这样试试
追问
你说的方法我也试过,效果和我的一样,也只有xn1_re输入
Storm代理
2023-07-25 广告
StormProxies是一家国内优质海外HTTP代理商,拥有一个庞大的IP资源池,覆盖200多个地区,IP数量大且匿名度高。其优点还包括超高并发、稳定高效、技术服务等特点,同时提供HTTP、HTTPS以及SOCKS5协议支持。此外,Sto... 点击进入详情页
本回答由Storm代理提供
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式