module ram(clk,rst,in,out);
input clk;
input rst;
input[31:0]in;
output[31:0]out;
endmodule
module ram1(clk,rst,indata,outdata);
input clk;
input rst;
input[31:0]indata;
output[31:0]outdata;
ram u1(
.clk(clk),
.rst(rst),
.in(indata),
.out(outdata)
);
endmodule
最后
以上就是耍酷秀发最近收集整理的关于fpga-第一次在同一个文件中写两个module模块,其中上面一个模块是作为子模块的全部内容,更多相关fpga-第一次在同一个文件中写两个module模块内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复